80 Commits

Author SHA1 Message Date
landry
e6a33d4d24 Update to rust 1.27.2, from semarie@
Cf https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1272-2018-07-20
2018-07-23 06:56:43 +00:00
ajacoutot
274560225d Add a comment to not forget to sync with x11/gnome/librsvg. 2018-07-12 08:48:47 +00:00
landry
ef33d3cf24 devel/gdb now builds on aarch64, so remove conditionals. from semarie@ 2018-07-11 09:16:53 +00:00
ajacoutot
53ecf84de5 Update to rust to 1.27.1:
https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1271-2018-07-10

It contains also a fix that changes the way libcompiler_rt.a is included by
rustc in order to avoid duplicated symbols in a static library (some symbols
from system libcompiler_rt.a, others from Rust itself).

from semarie, thank you :-)
2018-07-11 08:35:59 +00:00
landry
fff520c06f gdb is a BDEP, not only a TDEP. 2018-06-29 06:25:55 +00:00
landry
f6abf52cb3 Update to rust 1.27.0, from semarie@
ok kn@
2018-06-29 05:19:47 +00:00
landry
a9b8e30c8a Bugfix update to rust 1.26.1, from semarie@ 2018-06-01 06:02:10 +00:00
landry
de1828313e Remove patches that were meant to be removed.. reminded by semarie@. 2018-05-22 17:07:52 +00:00
landry
89983c31ea Update to rust 1.26, from semarie@
Cf https://blog.rust-lang.org/2018/05/10/Rust-1.26.html

- add arm64 support, tested by phessler@
- respect MAKE_JOBS again
- use lld on i386 to support 128 bits integers
- cleanup old patches
- only build what we actually package
2018-05-22 06:04:33 +00:00
ajacoutot
8c4f93277d Adapt to new LLVM.
from Brad
2018-04-07 14:56:24 +00:00
sthen
038dcb3cc2 remove BROKEN marker for i386, there's kernel work in progress to get this
building more easily
2018-04-06 07:15:14 +00:00
sthen
0dff1ce088 sync plists for i386 2018-04-06 07:12:28 +00:00
landry
2fddfb733a Update to rust 1.25.0, from semarie@
- to keep RUST_BACKTRACE=1 enabled during build, properly separate
  MAKE_ENV and TEST_ENV, by introducing a TEST_BIN variable used to
launch rustbuild with TEST_ENV (some tests are failing if RUST_BACKTRACE
is enabled).

- remove llvm-6 backported patches. this version of rustc has full
  support of it. Hashes in library names will change when ports llvm
is upgraded, so PLIST will have to be regenerated.

- backport #49140 to be able to run "make test" without installing rustc
2018-04-02 07:21:50 +00:00
landry
9b095d4328 New i386 bootstrap, still BROKEN sadly.. 2018-03-16 07:36:40 +00:00
landry
b49cdf51b4 Fix rust with MAP_STACK, all from semarie@:
- regen amd64 bootstrap (i386 will come later and is marked BROKEN
  anyway)
- add MAP_STACK flag for use with sigaltstack() (only used for signal
  handler used for stack overflow detection)
- change a bit the way stack overflow is detected
2018-03-13 08:08:03 +00:00
sthen
432e1bb430 add a native_bootstrap flavour to lang/rust, as done in several other ports
with bootstraps: allows easier building if the bootstraps don't run but the
last version from packages works.  ok semarie@
2018-03-08 20:39:29 +00:00
landry
a568dde054 Mark BROKEN-i386 for now, i didnt manage to build it on an otherwise
idle i386 VM. Discussed with sthen@ and semarie@, but semarie@ has ideas
on how to work around things hoping for a brighter future...
2018-02-24 18:04:08 +00:00
landry
87781971db Update to rust 1.24, from semarie@ (MAINTAINER)
Backports some patches for LLVM6 compatibility.

Note that this is likely to be BROKEN-i386 soonish, i'm giving it a last
chance locally but i never managed to build it here. That also means we
can say goodbye to firefox on i386.
2018-02-23 16:38:16 +00:00
landry
e98d55d6d6 Set DPB_PROPERTIES=parallel only on amd64, so that only one make job is
used on i386. Set DPB_PROPERTIES=lonesome on i386 so that no new jobs
are sent to the worker building rust.
Fixes rust packaging on i386 within dpb.
same diff/ok sthen@
2018-01-29 18:45:39 +00:00
landry
ba4a54473a Remove BROKEN-i386 for now to give it a chance on i386, where it builds
fine for me with ulimit -d maxed out.
discussed with sthen@
2018-01-27 09:23:05 +00:00
landry
13eb53520f Update to rust 1.23, from semarie@ (MAINTAINER)
Tested on amd64 & i386, building firefox 59 betas.
2018-01-27 09:22:00 +00:00
ajacoutot
78f1a017b5 Unbreak, input from semarie 2017-12-10 13:27:03 +00:00
sthen
883dbd02f7 Don't try to build on i386, no success after 6 attempts in a bulk build.
Even if it can be made to build eventually after multiple tries (we
occasionally got lucky with chromium before that was disabled, but it
was rare), this isn't sustainable.

In short: you'll need to use amd64 if you want to use one of the more
common web browsers on OpenBSD.
2017-12-09 23:04:51 +00:00
landry
97894fe4c9 Update to rust 1.22.1.
full changelog at https://blog.rust-lang.org/2017/11/22/Rust-1.22.html

port changes:
- switch to clang and libc++ (instead of egcc and estdc++)
- use devel/llvm instead of the embedded llvm version
- make i386 produce code for 'pentiumpro' instead of 'pentium4' so that
ppl can use ripgrep on pentium II's (yay!)
- use a hack (codegen-units=16) to fix memory pressure issues on i386.
  Might not work forever.....

tested on i386 & amd64, went into an i386 bulk.
all the hard work from semarie@
2017-12-04 17:31:49 +00:00
sthen
b9064dc0ff Handle pthread-stubs removal. 2017-10-23 17:10:49 +00:00
danj
0888a63c75 Update to rust-1.21.0
From semarie (maintainer)
2017-10-17 17:19:24 +00:00
danj
9353488b77 Update to rust-1.20.0
From semarie (devoted maintainer)
2017-09-03 14:08:36 +00:00
danj
50e54a10a1 Swtich to embedded llvm, needed to update devel/llvm to 5.0rc
fron semarie (maintainer)
2017-08-29 11:36:19 +00:00
naddy
e4b9ecde19 bump for plist changes 6.1 -> 6.2 2017-08-22 11:10:01 +00:00
danj
366f786478 I forgot to cvs add, thanks semarie for reviewing my commits! 2017-07-31 13:38:58 +00:00
danj
5057038dd9 Update to rust-1.19.0
It now includes cargo

From semarie (maintainer)
2017-07-31 13:19:13 +00:00
sthen
4379f4f563 As reported by semarie, lang/rust is special, it requires ports gcc to
build itself, and LLVM (not clang). So COMPILER_LIBCXX is wrong in this
case. Switch to MODGCC4_CPPWANTLIB and bump.
2017-07-28 09:54:12 +00:00
sthen
48dbc605b1 add COMPILER_LIBCXX to WANTLIB and bump 2017-07-27 09:55:44 +00:00
danj
53aebe2b67 Update to rust-1.18.0
From semarie (maintainer)
2017-06-17 02:06:53 +00:00
krw
8a5b5a8e81 Bump LIBESTDC_VERSION to 17.1.
ok espie@
2017-06-09 12:03:35 +00:00
landry
8684e41af8 Add a symlink to base libgcc.a in rust libraries subdir, so that
clang/rust finds it when linking some rust code - somewhat needed by
stylo (the css engine written in rust within mozilla). Modeled after
what is done in lang/g77.

From semarie@, who discussed it with espie@.
2017-05-18 06:39:49 +00:00
landry
085fe34c6a Update to rust 1.17.0, from semarie@
Use ports llvm instead of building the bundled copy (yay!)
More work needed to actually build with clang ...
2017-05-05 11:40:29 +00:00
naddy
a53cf608f8 mark for parallel building by dpb 2017-04-15 19:41:36 +00:00
naddy
a7b6edec81 fix a build race: patch rustbuild to ensure that the documentation
requires rustdoc as dependency; from Sebastien Marie
2017-03-30 18:46:20 +00:00
danj
3b17884ba7 Appease portcheck (and some reviewers) and remove some trailing tabs
between command lines inside target rules.

They were added intentionally due to some old habit acquired on
obscure make version which followed POSIX a bit too strictly (POSIX
stands that an empty or blank line *may* begin a new entry).

(Diff from me, commit message from semarie after discussion)
2017-03-27 23:43:07 +00:00
danj
5b02af3d3d Update to rust-1.16.0
From semarie, discussed with edd@ and landry@
ok edd@ landry@
2017-03-27 12:35:31 +00:00
landry
531b5386c3 Divide build time by at least three and various fixes, all from semarie@
- stop pruning optimizations coming from the environment (ie OpenBSD's
  default -O2 -pipe) when building llvm - this resulted in a very slow
llvm, and in a veeery slow rust build, and an awfully slow rust
compiler. Yay. See https://github.com/rust-lang/rust/issues/39900
- only add cmake to BDEP when rustc is compiled with bundled llvm
- propagate verbose cmake flag to bundled llvm build

tested on i386 and amd64
2017-02-18 13:15:48 +00:00
landry
ba61ea94c0 Update to rust 1.15.1.
- switch to rustbuild build system instead of configure (the world
  definitely needed one more build system!)
- the build still takes +INF hours, this is being investigated

Note that rust will be a hard-requirement for gecko 54... sigh.

Tested by semarie@ and myself on i386 & amd64.

All the hard work and countless build hours by semarie@, thanks!
2017-02-15 12:52:35 +00:00
landry
da554e47cc Temporarly switch rust to build with embedded llvm.
rust doesnt build yet with llvm 4.0, which should be soon updated in the
portstree. Upstream rust support for llvm 4.0 is in the pipe.

From semarie@
2017-02-02 08:02:50 +00:00
landry
8847458053 Apply some black magic (shoplifted from lang/ghc) to fix
DISTFILES/SUPDISTFILES handling so that non-supported archs dont error
out in dpb with cryptic messages such as 'Incomplete info for
rust/rustc-bootstrap-sparc64-.tar.gz'

Reminder: DISTFILES is supposed to contain the list of files needed *on
the current arch* while SUPDISTFILES should have the list *of all files
that port might use* (think about make makesum)

discussed with semarie@
2017-01-06 17:32:22 +00:00
landry
67092985c1 update rust to 1.14.0, from MAINTAINER semarie@
for details, please see https://blog.rust-lang.org/2016/12/22/Rust-1.14.html

tested on i386 w/ llvm 3.9.0 here, and sebastien tested both amd64 & i386.
2016-12-26 13:52:46 +00:00
juanfra
5ef55a2e76 Add support for i386 to rust. From semarie (MAINTAINER). 2016-12-06 22:39:49 +00:00
danj
e1c2d8f71b Update to rust-1.13.0, from semarie who takes maintainership again
ok aja@
2016-11-12 16:42:24 +00:00
danj
90c749b360 Update to rust-1.12.1
For release note see https://blog.rust-lang.org/2016/10/20/Rust-1.12.1.html

Please note, semarie rebuilded the bootstrap due to a bug in rustc: 1.12.0
wasn't able to rebuild 1.12.1 without intrusive patches in the build system

From semarie, ok ajacoutot
2016-10-25 17:08:07 +00:00
danj
e0210e3221 Update to rust-1.12.0
From semarie (maintainer), ok ajacoutot
2016-10-05 16:48:10 +00:00