Commit Graph

254 Commits

Author SHA1 Message Date
Bernhard Froehlich
1bcf990c4e lang/rust: Add CPE information
Approved by:    portmgr (blanket)
2021-10-08 11:22:09 +00:00
Tobias Kortkamp
15d61162f7 lang/rust-nightly: Update to 1.57.0.20211005
Changes:	f586d79d18...25ec827385
2021-10-06 14:01:52 +02:00
Jan Beich
852b05a49a lang/rust: unbreak on armv6 after 620968a43a
error: linking with `/wrkdirs/usr/ports/lang/rust/work/cc-wrapper` failed: exit status: 127

Pointy hat to:	jbeich
2021-10-01 00:14:58 +00:00
Rene Ladan
620968a43a cleanup: drop support for EOL FreeBSD 11.X
Search criteria used:
- 11.4
- OSREL*
- OSVER*
- *_FreeBSD_11

Input from:
- adridg: devel/qca-legacy
- jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds
- sunpoet: security/p5-*OpenSSL*

Reviewed by:	doceng, kde, multimedia, perl, python, ruby, rust
Differential Revision: https://reviews.freebsd.org/D32008
Test Plan: make index
2021-09-30 23:23:30 +02:00
Tobias Kortkamp
6f1fefb50e lang/rust: Update to 1.55.0
- Set codegen-units=1 [1]
- Add hack to skip cargo update on git sources as a step towards solving [2]
- Fix 'capacity overflow' panics on armv* [3]

Changes:	https://blog.rust-lang.org/2021-09-09/Rust-1.55.0.html
PR:		258337
PR:		256099 [1]
PR:		256581 [2]
PR:		257419 [3]
Reviewed by:	mikael, pkubaj
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D31872
With hat:	rust
2021-09-19 11:03:21 +02:00
Mikael Urankar
473a0e375e lang/rust: don't overwrite hwcap with the return value of elf_aux_info(3)
Reported by:	jbeich
2021-09-06 22:04:22 +02:00
Tobias Kortkamp
b1670e2c3d lang/rust*: Mk/Uses/cargo.mk: Move TMPDIR to WRKDIR
rustc stashes intermediary files in TMPDIR (default /tmp) which
might cause issues for users that for some reason space limit their
/tmp.  WRKDIR should have plenty of space.

Other ports that use rustc might be affected too, but set it only
in USES=cargo and lang/rust* ports for now.

PR:		258126
With hat:	rust
2021-09-06 21:28:28 +02:00
Mikael Urankar
74c66d50fd lang/rust: Fix for missing getauxval function on FreeBSD
Use FreeBSD's elf_aux_info for detecting ARM HW features

PR:		258198
Tested by:	Bob Prohaska <fbsd@www.zefox.net>
2021-09-06 15:53:04 +02:00
Mikael Urankar
bab764bbd2 lang/rust: Add missing patches for powerpc
Differential Revision:	https://reviews.freebsd.org/D31723
2021-09-02 13:30:39 +02:00
pouet
55dbddeb07 lang/rust: Update to 1.54.0
- Update lang/rust to 1.54.0
 - Update devel/racer to 2.1.48
 - Fix various consumers

Changes:	https://blog.rust-lang.org/2021/07/29/Rust-1.54.0.html
Reviewed by:	tobik, pkubaj
Differential Revision:        https://reviews.freebsd.org/D31617
With hat:	rust
2021-08-28 15:38:37 +02:00
Tobias Kortkamp
f897ded31e lang/rust: Update to 1.53.0
Changes:	https://blog.rust-lang.org/2021/06/17/Rust-1.53.0.html
PR:		256653
Reviewed by:	mikael, pkubaj
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D30790
With hat:	rust
2021-06-27 07:39:50 +02:00
Tobias Kortkamp
294f0c5c20 lang/rust-nightly: Try to reduce memory usage/pressure
Try to reduce memory usage/pressure by only using one code generation
unit.

"This flag [codegen-units] controls how many code generation units
the crate is split into.  It takes an integer greater than 0.

When a crate is split into multiple codegen units, LLVM is able to
process them in parallel.  Increasing parallelism may speed up
compile times, but may also produce slower code.  Setting this to
1 may improve the performance of generated code, but may be slower
to compile."

https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units

PR:		256099
Suggested by:	Daniel Engberg
2021-06-14 22:51:11 +02:00
Brad Davis
eea42d68b7 lang/rust: Disable DOCS to fix build on armv6/7
PR:		256135
Approved by:	mikael
2021-06-10 10:35:22 -06:00
Tobias Kortkamp
882badb35a lang/rust*: Only subst %CC% and %WRKDIR% on ppc64-elfv1
It's unused elsewhere.  Also move it to post-patch.
2021-05-14 18:44:58 +02:00
Tobias Kortkamp
d50822c34f lang/rust, lang/rust-bootstrap: Simplify makesum 2021-05-11 19:29:32 +02:00
Tobias Kortkamp
d8837418ea lang/rust: Update to 1.52.1
- Add 32-bit powerpc support from bdragon@
- Unbreak build with LibreSSL 3.3.x [1]
- Add an update script

Changes:	https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html
Changes:	https://blog.rust-lang.org/2021/05/10/Rust-1.52.1.html
PR:		255608, 255652 [1]
Reviewed by:	mikael, pkubaj
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D30099
2021-05-11 19:29:27 +02:00
Tobias Kortkamp
a7da23da6e lang/rust: Add TRYBROKEN to makesum 2021-05-06 07:54:33 +02:00
Tobias Kortkamp
a91d65363f Mk/Uses/ninja.mk: Add support for devel/samurai (D29353)
Samurai is a Ninja-compatible build tool with fewer dependencies
than Ninja.  Hook it to the framework via a new NINJA_DEFAULT.

This also adds %p to NINJA_STATUS to make Ninja or Samurai print
the percentage of completed jobs to make it easier to eyeball how
much of the build is done.

PR:		254678
Exp-run	by:	antoine
2021-04-20 08:57:34 +02:00
Mathieu Arnold
305f148f48 Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Tobias Kortkamp
65e66f1195 lang/rust-nightly: Update to 1.53.0.20210329
Enable the SOURCES option again.  They seem to install fine again.

Changes:	5d04957a4b...4a20eb6a9d
2021-03-29 20:31:34 +00:00
Tobias Kortkamp
db4578b35a lang/rust: Update to 1.51.0
- 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
2021-03-29 18:07:32 +00:00
Tobias Kortkamp
20d8683141 lang/rust: Fix DOCS build, unbreak RUST_BACKTRACE
- 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]
2021-03-23 06:39:47 +00:00
Mikael Urankar
6bebfaa8a0 lang/rust: Update to 1.50.0
- 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
2021-02-14 15:45:10 +00:00
Mikael Urankar
06a556fb49 lang/rust: remove disable-ldconfig it's not an option for quite some time 2021-02-04 17:21:27 +00:00
Mikael Urankar
13c484cc67 lang/rust: reroll the armv7 bootstrap
The current one fails to build Rust.

PR:		251254
Reported by:	mmel
2021-01-30 17:21:47 +00:00
Mikael Urankar
6c562c69e9 lang/rust: revert part of r563191
It contains unrelated changes
2021-01-29 10:52:10 +00:00
Mikael Urankar
650775e0fa lang/rust: reroll the aarch64 bootstrap.
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
2021-01-29 10:49:01 +00:00
Piotr Kubaj
39a7835690 lang/rust: fix build on powerpc64le 2021-01-07 21:17:22 +00:00
Mikael Urankar
a798515415 lang/rust: Update to 1.49.0
Changes: https://github.com/rust-lang/rust/releases/tag/1.49.0

Tested by:	mikael, pkubaj
Differential Revision:	https://reviews.freebsd.org/D27940
2021-01-06 10:13:58 +00:00
Mikael Urankar
19066be21b lang/rust: Fix build with libressl 3.2.3
PR:		251766
Submitted by:	John Kennedy
2020-12-12 18:51:33 +00:00
Piotr Kubaj
e376b15e56 lang/rust: fix build on powerpc64le 2020-11-24 20:22:41 +00:00
Mikael Urankar
4e449e031e lang/rust: Update to 1.48.0
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
2020-11-24 12:48:53 +00:00
Mikael Urankar
0d9ade169a lang/rust: exclude SOURCES in nightly build
Exclude SOURCES in nightly build as it tries to download cargo crates in
install phase and it causes build breakage
2020-11-22 13:51:14 +00:00
Mikael Urankar
d7c44bd243 lang/rust: fix build with libressl-3.2.2
PR:		250589
Submitted by:	John Kennedy <warlock@phouka.net>
2020-10-28 13:41:33 +00:00
Mikael Urankar
9afa07826e lang/rust: restore REINPLACE_CMD for ppc64-elfv1
This patch is needed for ppc64-elfv1 and we don't build rust-nightly on tier2 arch

Reported by:	ashish
2020-10-14 16:58:48 +00:00
Mikael Urankar
3cf8e92eef lang/rust-nightly: Update to 1.49.0.20201014 2020-10-14 09:25:31 +00:00
Mikael Urankar
d9b97de179 lang/rust: Update to 1.47.0
- 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
2020-10-13 08:36:35 +00:00
Tobias Kortkamp
c9a06251c5 lang/rust: Update to 1.46.0
- 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
2020-08-30 18:36:07 +00:00
Tobias Kortkamp
1c843dbb6a lang/rust*: Bring back the llvm-config-wrapper patches after r543251
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
2020-08-05 14:46:18 +00:00
Tobias Kortkamp
8b057d47a9 lang/rust: Update to 1.45.2
Changes:	https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html
2020-08-03 15:18:49 +00:00
Tobias Kortkamp
9137d53fe2 lang/rust: Update to 1.45.1
- 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
2020-07-30 18:26:53 +00:00
Tobias Kortkamp
ec25a08615 lang/rust: Add back to static.rust-lang.org 2020-07-17 06:48:00 +00:00
Tobias Kortkamp
b0f1d6430e lang/rust: Update to 1.45.0
- 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
2020-07-17 06:44:04 +00:00
Piotr Kubaj
3a6db341d9 lang/rust: build with Clang on powerpc64 elfv2
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)
2020-06-18 20:36:08 +00:00
Tobias Kortkamp
75b6e79ccf lang/rust: Update to 1.44.1
- 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
2020-06-18 14:13:38 +00:00
Tobias Kortkamp
d85c40b711 lang/rust-nightly: Update to 1.46.0.20200615
- Try building LLVM with Ninja
- Move post-configure to lang/rust

Changes:	826cb062a6...4fb54ed484
2020-06-15 22:26:47 +00:00
Piotr Kubaj
cf570d9f85 lang/rust: fix build on powerpc64 2020-06-07 23:37:30 +00:00
Tobias Kortkamp
a48473296f lang/rust: Update to 1.44.0
- 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
2020-06-04 18:08:00 +00:00
Alan Somers
a91e9355f1 lang/rust-nightly: enable the Rust profiler
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
2020-05-18 18:40:41 +00:00
Tobias Kortkamp
9cab4e16c4 lang/rust: Update to 1.43.1
- 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
2020-05-07 15:58:38 +00:00