aboutsummaryrefslogtreecommitdiff
path: root/lang/rust
Commit message (Collapse)AuthorAgeFilesLines
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
|
* lang/rust-nightly: Update to 1.53.0.20210329Tobias Kortkamp2021-03-291-3/+0
| | | | | | | | | Enable the SOURCES option again. They seem to install fine again. Changes: https://github.com/rust-lang/rust/compare/5d04957a4b...4a20eb6a9d Notes: svn path=/head/; revision=569508
* lang/rust: Update to 1.51.0Tobias Kortkamp2021-03-296-982/+75
| | | | | | | | | | | | | | - Update devel/racer to 2.1.44 Changes: https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html PR: 254578 Reviewed by: mikael, pkubaj Exp-run by: antoine With hat: rust Differential Revision: https://reviews.freebsd.org/D29425 Notes: svn path=/head/; revision=569489
* lang/rust: Fix DOCS build, unbreak RUST_BACKTRACETobias Kortkamp2021-03-233-4/+947
| | | | | | | | | | | | | | | | | | | | | - Fix DOCS build by disabling deny-warnings (rustc equivalent to -Werror). Let's not fail the entire build just because a handful of docs fail to build due to -D broken-intra-doc-links [0] - Only install the host target docs. We otherwise waste time with a rust-docs install-uninstall-install cycle for each additional target during stage. - Backport FreeBSD support for gimli, unbreak RUST_BACKTRACE, and have useful stack traces with actual content again [1] - While here also strip binaries under libexec/ and ack reading of src/bootstrap/CHANGELOG.md (changelog-seen=2) [0] https://github.com/rust-lang/rust/issues/76526 PR: 253557 [1] Submitted by: jbeich [1] Notes: svn path=/head/; revision=569007
* lang/rust: Update to 1.50.0Mikael Urankar2021-02-142-64/+59
| | | | | | | | | | | | | | | - Use bundled libgit/libssh, the versions in ports are too old - Update lang/rust-nightly to 2021-02-12 - Update devel/racer to 2.1.41 - Import upstream patch to fix build issue for Firefox and related ports (https://bugzilla.mozilla.org/show_bug.cgi?id=1684261) Changes: https://github.com/rust-lang/rust/releases/tag/1.50.0 Tested by: mikael, pkubaj Differential Revision: https://reviews.freebsd.org/D28616 Notes: svn path=/head/; revision=565245
* lang/rust: remove disable-ldconfig it's not an option for quite some timeMikael Urankar2021-02-041-1/+1
| | | | Notes: svn path=/head/; revision=564052
* lang/rust: reroll the armv7 bootstrapMikael Urankar2021-01-301-6/+6
| | | | | | | | | | The current one fails to build Rust. PR: 251254 Reported by: mmel Notes: svn path=/head/; revision=563425
* lang/rust: revert part of r563191Mikael Urankar2021-01-291-39/+8
| | | | | | | It contains unrelated changes Notes: svn path=/head/; revision=563192
* lang/rust: reroll the aarch64 bootstrap.Mikael Urankar2021-01-292-14/+45
| | | | | | | | | | | This new bootstrap is based on rust 1.49.0 built with a 12.1 sysroot. PR: 251254 Reported by: dch, mmel Tested by: dch, mikael Notes: svn path=/head/; revision=563191
* lang/rust: fix build on powerpc64lePiotr Kubaj2021-01-071-15/+9
| | | | Notes: svn path=/head/; revision=560736
* lang/rust: Update to 1.49.0Mikael Urankar2021-01-064-76/+65
| | | | | | | | | | Changes: https://github.com/rust-lang/rust/releases/tag/1.49.0 Tested by: mikael, pkubaj Differential Revision: https://reviews.freebsd.org/D27940 Notes: svn path=/head/; revision=560492
* lang/rust: Fix build with libressl 3.2.3Mikael Urankar2020-12-121-4/+4
| | | | | | | | PR: 251766 Submitted by: John Kennedy Notes: svn path=/head/; revision=557858
* lang/rust: fix build on powerpc64lePiotr Kubaj2020-11-241-1/+1
| | | | Notes: svn path=/head/; revision=556183
* lang/rust: Update to 1.48.0Mikael Urankar2020-11-248-71/+69
| | | | | | | | | | | Changes: https://github.com/rust-lang/rust/releases/tag/1.48.0 Reviewed by: jbeich Tested by: bdragon, jbeich, mikael Differential Revision: https://reviews.freebsd.org/D27293 Notes: svn path=/head/; revision=556157
* lang/rust: exclude SOURCES in nightly buildMikael Urankar2020-11-221-0/+3
| | | | | | | | Exclude SOURCES in nightly build as it tries to download cargo crates in install phase and it causes build breakage Notes: svn path=/head/; revision=556053
* lang/rust: fix build with libressl-3.2.2Mikael Urankar2020-10-281-0/+19
| | | | | | | | PR: 250589 Submitted by: John Kennedy <warlock@phouka.net> Notes: svn path=/head/; revision=553543
* lang/rust: restore REINPLACE_CMD for ppc64-elfv1Mikael Urankar2020-10-141-0/+6
| | | | | | | | | This patch is needed for ppc64-elfv1 and we don't build rust-nightly on tier2 arch Reported by: ashish Notes: svn path=/head/; revision=552346
* lang/rust-nightly: Update to 1.49.0.20201014Mikael Urankar2020-10-141-1/+0
| | | | Notes: svn path=/head/; revision=552319
* lang/rust: Update to 1.47.0Mikael Urankar2020-10-138-83/+115
| | | | | | | | | | | | | | | | | | | | - Add powerpc64le arch (submitted by bdragon in D26711) - Disable DOCS, same problem fixed in r546048 - Update devel/racer to 2.1.36 - Import upstream patch to fix www/firefox (https://hg.mozilla.org/integration/autoland/rev/e2cede25c027) - Import gentoo patches to fix www/firefox-esr, www/cliqz and mail/thunderbird (https://dev.gentoo.org/~whissi/mozilla/patchsets/firefox-esr-78-patches-03.tar.xz : 0036, 0037 and 0038) - Force rebuild all consumers to catch regressions Changelog: https://github.com/rust-lang/rust/releases/tag/1.47.0 Differential Revision: https://reviews.freebsd.org/D26721 Notes: svn path=/head/; revision=552221
* lang/rust: Update to 1.46.0Tobias Kortkamp2020-08-303-52/+53
| | | | | | | | | | | - Force rebuild all consumers to catch regressions early Changes: https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html With hat: rust Differential Revision: https://reviews.freebsd.org/D26176 Notes: svn path=/head/; revision=547071
* lang/rust*: Bring back the llvm-config-wrapper patches after r543251Tobias Kortkamp2020-08-051-1/+28
| | | | | | | | | | | | Apparently they are still needed: http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p543836_s363720/logs/errors/rust-1.45.1.log http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p543836_s363720/logs/errors/rust-nightly-1.47.0.20200724.log http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p544005_s363784/logs/errors/rust-1.45.1.log Reported by: antoine Notes: svn path=/head/; revision=544224
* lang/rust: Update to 1.45.2Tobias Kortkamp2020-08-033-9/+34
| | | | | | | Changes: https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html Notes: svn path=/head/; revision=544073
* lang/rust: Update to 1.45.1Tobias Kortkamp2020-07-304-38/+32
| | | | | | | | | | | | | - Apply the "hard links break `env::current_exe()`" workaround from r543251 to lang/rust too - Force rebuild all consumers for the soundness bug in 1.45.0 Changes: https://blog.rust-lang.org/2020/07/30/Rust-1.45.1.html With hat: rust Differential Revision: https://reviews.freebsd.org/D25835 Notes: svn path=/head/; revision=543815
* lang/rust: Add back to static.rust-lang.orgTobias Kortkamp2020-07-171-1/+2
| | | | Notes: svn path=/head/; revision=542413
* lang/rust: Update to 1.45.0Tobias Kortkamp2020-07-179-371/+75
| | | | | | | | | | | | | | | | | - This Rust release comes with LLVM 10. Drop the LLVM patches we no longer need. - On FreeBSD 13.0 powerpc64 set the elfv2 ABI explicitly in the Rust target instead of patching LLVM. - Build LLVM with Ninja. It can shorten the build time slightly. - Force rebuild all consumers to catch regressions early Changes: https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html Tested by: mikael, pkubaj, tobik With hat: rust Differential Revision: https://reviews.freebsd.org/D25658 Notes: svn path=/head/; revision=542412
* lang/rust: build with Clang on powerpc64 elfv2Piotr Kubaj2020-06-183-29/+2
| | | | | | | | | | | | It looks like the LLVM bug that made Rust fail to build is gone (or Rust just doesn't trigger it anymore). I tested that Rust itself and Firefox build. Bump PORTREVISION because of dependency change. PR: 247388 Approved by: tobik (maintainer) Notes: svn path=/head/; revision=539571
* lang/rust: Update to 1.44.1Tobias Kortkamp2020-06-185-164/+160
| | | | | | | | | | | | | | - Properly fix powerpc64 builds [1] Changes: https://blog.rust-lang.org/2020/06/18/Rust.1.44.1.html PR: 247307 [1] Submitted by: pkubaj [1] Reviewed by: mikael, pkubaj, tobik With hat: rust Differential Revision: https://reviews.freebsd.org/D25297 Notes: svn path=/head/; revision=539541
* lang/rust-nightly: Update to 1.46.0.20200615Tobias Kortkamp2020-06-151-0/+10
| | | | | | | | | | - Try building LLVM with Ninja - Move post-configure to lang/rust Changes: https://github.com/rust-lang/rust/compare/826cb062a6...4fb54ed484 Notes: svn path=/head/; revision=539297
* lang/rust: fix build on powerpc64Piotr Kubaj2020-06-072-0/+156
| | | | Notes: svn path=/head/; revision=538194
* lang/rust: Update to 1.44.0Tobias Kortkamp2020-06-047-345/+74
| | | | | | | | | | | | | | | - Remove devel/cargo-tree since it is now integrated into cargo - Add patch to fix build with LibreSSL 3.1.x and 3.2.0 [1] - Force rebuild all consumers to catch regressions early Changes: https://blog.rust-lang.org/2020/06/04/Rust-1.44.0.html PR: 246332 [1] Tested by: mikael, tobik With hat: rust Differential Revision: https://reviews.freebsd.org/D25099 Notes: svn path=/head/; revision=537917
* lang/rust-nightly: enable the Rust profilerAlan Somers2020-05-181-0/+3
| | | | | | | | | | | | | | | | Enable the rust profiler on rust-nightly (as an unstable feature, it's not allowed on the stable toolchain). This allows it to generate code coverage reports. https://doc.rust-lang.org/unstable-book/compiler-flags/profile.html https://crates.io/crates/grcov Reviewed by: tobik Approved by: tobik (maintainer) Differential Revision: https://reviews.freebsd.org/D24765 Notes: svn path=/head/; revision=535771
* lang/rust: Update to 1.43.1Tobias Kortkamp2020-05-076-44/+166
| | | | | | | | | | | | - Remove upstreamed patches - On ppc64 revert e82ec2315e5adb1c291c3702cd2ac1f46ecd0fcf to fix segfaults Changes: https://blog.rust-lang.org/2020/05/07/Rust.1.43.1.html With hat: rust Differential Revision: https://reviews.freebsd.org/D24734 Notes: svn path=/head/; revision=534269
* lang/rust: Let the framework extract the bootstrapsTobias Kortkamp2020-04-281-22/+10
| | | | | | | | | | | | | | | | | | | It is possible for lang/python37 to be built in such a way that it installs an unloadable lzma module which then causes Rust to fallback to trying to fetch/extract the tar.gz bootstraps instead. As a workaround and since it also simplifies some things, let the ports framework extract the bootstraps and "install" them under WRKDIR. We point the build to them in config.toml. This is similar to how things are hooked up in lang/rust-bootstrap and Rust will then not try to fetch and extract the bootstraps on its own. PR: 243766 Reviewed by: mikael Differential Revision: https://reviews.freebsd.org/D24582 Notes: svn path=/head/; revision=533234
* lang/rust: Go back to static.rust-lang.orgTobias Kortkamp2020-04-231-1/+1
| | | | Notes: svn path=/head/; revision=532686
* lang/rust: Update to 1.43.0Tobias Kortkamp2020-04-234-60/+119
| | | | | | | | | | | | | | | | - Add workaround to fix build when CC/CXX have "clang" in them [1] - Respect AR to fix build with external toolchains [2] - Force rebuild all consumers to catch regressions early Changes: https://blog.rust-lang.org/2020/04/23/Rust-1.43.0.html PR: 238556 [1], 245583 [2] Reported by: Matthias Apitz <guru@unixarea.de> [1], Greg V <greg@unrelenting.technology> [2] Tested by: mikael, pkubaj, tobik With hat: rust Differential Revision: https://reviews.freebsd.org/D24521 Notes: svn path=/head/; revision=532685
* devel/libgit2: Update to 1.0.0Tobias Kortkamp2020-04-191-1/+1
| | | | | | | | | | Changes: https://github.com/libgit2/libgit2/releases/tag/v1.0.0 ABI: https://abi-laboratory.pro/tracker/timeline/libgit2 Approved by: mfechner (maintainer) Differential Revision: https://reviews.freebsd.org/D24471 Notes: svn path=/head/; revision=532068
* lang/rust-nightly: Update to 1.44.0.20200319Tobias Kortkamp2020-03-191-9/+5
| | | | | | | | | Go back to system libgit2 now that it was updated to 0.99.0. Changes: https://github.com/rust-lang/rust/compare/96bb8b31c8...f509b26a77 Notes: svn path=/head/; revision=528690
* devel/libgit2: Update to 0.99.0Tobias Kortkamp2020-03-192-37/+1
| | | | | | | | | | | | | | - Switch to the release tarballs libgit2 now publishes - Drop CURL option since it is no longer used - Use system libpcre instead of the bundled one - Hook up tests - Bump consumers for ABI changes Changes: https://github.com/libgit2/libgit2/releases/tag/v0.99.0 ABI: https://abi-laboratory.pro/tracker/timeline/libgit2/ Notes: svn path=/head/; revision=528684
* lang/rust-bootstrap: Unbreak powerpc64_elfv2 flavor after r528599Tobias Kortkamp2020-03-171-8/+4
| | | | | | | | | | | | | error: could not find native static library `stdc++`, perhaps an -L flag is missing? error: aborting due to previous error error: could not compile `rustc_llvm`. PR: 244813 Notes: svn path=/head/; revision=528606
* lang/rust: fix build on powerpc64 elfv2Piotr Kubaj2020-03-173-1/+32
| | | | | | | | | | | | | After upgrade to LLVM 10, core in stage 1 fails to compile (no clear reason, rustc crashes): pid 26828 (rustc), jid 0, uid 0: exited on signal 11 (core dumped) Compilation with GCC works fine, so switch to GCC for the time being. PR: 244813 Approved by: mikael Notes: svn path=/head/; revision=528599
* lang/rust: Update to 1.42.0Tobias Kortkamp2020-03-125-72/+65
| | | | | | | | | | | | - Force rebuild all consumers to catch regressions early Changes: https://blog.rust-lang.org/2020/03/12/Rust-1.42.html Tested by: mikael, tobik With hat: rust Differential Revision: https://reviews.freebsd.org/D24020 Notes: svn path=/head/; revision=528318
* lang/rust-nightly: Update to 1.43.0.20200306Tobias Kortkamp2020-03-061-5/+9
| | | | | | | | | | | | | | libgit2-sys is now based on libgit2 0.99.0. While 0.99.0 is supposed to be API compatible with 0.28, it has not yet been updated in the ports tree and the git2 crate now make use of some of the new function return values. Stop relying on system libgit2 and use the bundled one. Upstream does not make any guarantees about system libgit2 support in the first place. Changes: https://github.com/rust-lang/rust/compare/6d69caba11...96bb8b31c8 Notes: svn path=/head/; revision=527877
* lang/rust: Attempt to address unreliable rust-lld buildTobias Kortkamp2020-03-011-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It sometimes fails [0,1] and sometimes succeeds [2,3]. When it fails it fails with running: "cmake" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.41.1-src/src/llvm-project/lld" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER=cc" "-DCMAKE_CXX_COMPILER=c++" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 -pipe -fstack-protector-strong -fno-strict-aliasing" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 -pipe -fstack-protector-strong -fno-strict-aliasing" "-DLLVM_CONFIG_PATH=/wrkdirs/usr/ports/lang/rust/work/rustc-1.41.1-src/build/bootstrap/debug/deps/llvm-config-wrapper" "-DLLVM_INCLUDE_TESTS=OFF" "-DCMAKE_INSTALL_PREFIX=/wrkdirs/usr/ports/lang/rust/work/rustc-1.41.1-src/build/x86_64-unknown-freebsd/lld" "-DCMAKE_BUILD_TYPE=Release" -- The C compiler identification is Clang 9.0.1 -- The CXX compiler identification is Clang 9.0.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:23 (message): llvm-config failed with status No such file or directory -- Configuring incomplete, errors occurred! There seems to be some kind of race when using llvm-config-wrapper, but at the point where LLD is built, both llvm-config and llvm-config-wrapper should definitely be available. Both are built successfully much earlier in the build. Attempt to improve reliability by not using the wrapper. It is a hack in the first place that is only really needed on Windows. This is a shot in the dark. I am unable to reproduce this myself. [0] http://beefy18.nyi.freebsd.org/data/head-amd64-default/p527397_s358451/logs/errors/rust-1.41.1.log [1] http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p527486_s358478/logs/errors/rust-1.41.1.log [2] http://beefy18.nyi.freebsd.org/data/head-amd64-default/p527397_s358451/logs/rust-nightly-1.43.0.20200228.log [3] http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p527313_s358414/logs/rust-1.41.1.log Notes: svn path=/head/; revision=527545
* lang/rust: Update to 1.41.1Tobias Kortkamp2020-02-274-83/+142
| | | | | | | | | | | | | | | | | | | | | - Force rebuild all consumers to fix potential miscompilations with 1.41.0 - Enable SOURCES by default. The sources are indexed by RLS and required for it to function properly, so they should be available by default. This also makes sure we test the option properly. - Remove implied --config=config.toml from x.py args - Switch to the upstreamed backtrace crate patches like rust-nightly - Enable WASM by default [0] - Strip libraries (D23650) [1] - Simplify plist generation (D23735) [2] Changes: https://blog.rust-lang.org/2020/02/27/Rust-1.41.1.html Submitted by: mikael [0,1,2] With hat: rust Differential Revision: https://reviews.freebsd.org/D23835 Notes: svn path=/head/; revision=527260
* lang/rust: add the WASM optionMikael Urankar2020-02-161-1/+8
| | | | | | | | | | | Add the WASM (WebAssembly) option to build the wasm32-unknown-unknown target, off by default. Reviewed by: tobik Approved by: tobik, manu (mentor) Differential Revision: https://reviews.freebsd.org/D23653 Notes: svn path=/head/; revision=526265
* Trim whitespaceMikael Urankar2020-02-121-3/+3
| | | | | | | | | Reviewed by: tobik, manu Approved by: manu (mentor) Differential Revision: https://reviews.freebsd.org/D23649 Notes: svn path=/head/; revision=525920
* lang/rust: Silence stage-qa warnings when building with SOURCES=onTobias Kortkamp2020-02-061-0/+5
| | | | | | | PR: 243850 Notes: svn path=/head/; revision=525449
* lang/rust-nightly: Update to 1.43.0.20200205Tobias Kortkamp2020-02-051-2/+2
| | | | | | | | | Remove some cruft while here. Changes: https://github.com/rust-lang/rust/compare/41f41b2354...c9290dceee Notes: svn path=/head/; revision=525257
* lang/rust: Update to 1.41.0Tobias Kortkamp2020-01-3012-375/+91
| | | | | | | | | | | | | | | | | | | - Force rebuild all consumers to catch regressions early - Switch to cross-compiled (from amd64) bootstraps for all architectures generated with the incoming lang/rust-bootstrap - Update cargo-c to 0.5.2 to unbreak librav1e build - Make use of regular MAKE_ENV/TEST_ENV in lang/rust - Turn on RUST_BACKTRACE in lang/rust and USES=cargo to hopefully produce more useful failure logs when something panics during builds Changes: https://blog.rust-lang.org/2020/01/30/Rust-1.41.0.html Tested by: mikael, tobik With hat: rust Differential Revision: https://reviews.freebsd.org/D23385 Notes: svn path=/head/; revision=524658
* Unbreak lang/rust-nightly after r524013Tobias Kortkamp2020-01-271-5/+6
| | | | Notes: svn path=/head/; revision=524242