Commit Graph

366 Commits

Author SHA1 Message Date
Dmitry Marakasov
1fba2c3046 lang/rust-nightly: update 1.90.0.20250709 → 1.90.0.20250727
Approved by:	rust (implicit)
2025-08-01 17:10:01 +03:00
Mikael Urankar
a93cbed8b0 lang/rust: bump PORT_LLVM minimum version to 18
Source:
12167d7064

Reported by:	Mark Millard <marklmi@yahoo.com>
2025-07-07 10:50:07 +02:00
Mikael Urankar
096f1677e0 lang/rust: Update to 1.88.0
Announce:	https://blog.rust-lang.org/2025/06/26/Rust-1.88.0/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.88.0

PR:		287766
Tested by:	mikael,pkubaj
2025-07-03 10:45:31 +02:00
Piotr Kubaj
4f7bdec82e lang/rust: add missing __ suffix to __powerpc macro 2025-06-26 12:19:01 +02:00
Piotr Kubaj
609c0dc555 lang/rust: fix powerpc bootstrap 2025-06-26 11:23:07 +02:00
Mikael Urankar
2add7bc03f lang/rust: Update to 1.87.0
Announce:	https://blog.rust-lang.org/2025/05/15/Rust-1.87.0/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.87.0

PR:		286829
Tested by:	mikael,pkubaj,Herbert J. Skuhra
2025-06-05 09:51:32 +02:00
Charlie Li
2924b2c5b8 lang/rust: remove max LLVM version restriction for PORT_LLVM
LLVM 20 now supported
2025-04-08 19:22:45 -04:00
Mikael Urankar
11e425bbfd lang/rust: Update to 1.86.0
Announce:	https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.86.0

Put back rustdoc in _RUST_TOOLS, rustdoc is an integral part of cargo
and has no connection with DOCS.

PR:		285381,285840
Tested by:	mikael,pkubaj
2025-04-08 10:41:10 +02:00
Charlie Li
10b9f3f22d lang/rust: limit PORT_LLVM max to 19
LLVM 20 support currently only exists in trunk.
2025-03-27 03:45:59 -04:00
Mikael Urankar
d617602f66 lang/rust: Update to 1.85.1
While here:
 - remove rustdoc from _RUST_TOOLS, it has to be added only when
   DOCS option is enabled
 - add DOCS to OPTIONS_DEFAULT [1]
 - building docs on armv7 is fixed

PR:		285381 [1]
2025-03-21 09:39:35 +01:00
Mikael Urankar
3a627a5c54 lang/rust: do not build the documentation on armv7
A bug [1] prevents documentation from being compiled on this
platform, disable it until it's fixed in a release branch.

[1] https://github.com/rust-lang/rust/pull/137632

Reported by:	mmel
2025-03-13 08:26:12 +01:00
Michael Osipov
0780826603 lang/rust: Make OpenSSL use the system default truststore in Cargo
Cargo uses curl-rust and git2-rs (which uses curl-rest as well).
Unfortunately, git2-rs calls openssl_probe::init_ssl_cert_env_vars()
unconditionally which breaks the process environment by setting an invalid
value for SSL_CERT_DIR and then the system default truststore is circumvented,
resulting in certificate validation errors even if certctl(8) manages
everything nicely.

Upstream issues:
* https://github.com/alexcrichton/openssl-probe/issues/37
* https://github.com/rust-lang/git2-rs/pull/1130

Reviewed by:	jrm (mentor), mikael (rust)
MFH:		2025Q1
Differential Revision:	https://reviews.freebsd.org/D49120
2025-03-07 18:44:16 +01:00
Mikael Urankar
0bd1fd4d88 lang/rust: Update to 1.85.0
Announce: https://blog.rust-lang.org/2025/02/20/Rust-1.85.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.85.0

PR:		284884
Tested by:	mikael,pkubaj
2025-02-24 08:55:52 +01:00
Jan Beich
917563d82e lang/rust182: remove port after 182ff2d0ad 2025-01-30 03:06:43 +01:00
Mikael Urankar
5c45325650 lang/rust: lang/rust: Update to 1.84.0
Announce:	https://blog.rust-lang.org/2025/01/09/Rust-1.84.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.84.0

PR:		283962
Tested by:	mikael,pkubaj
2025-01-20 12:04:35 +01:00
Mikael Urankar
237a71fe2c lang/rust: Fix distinfo for armv7
PR:		283000
Reported by:	Robert Clausecker <fuz@fuz.su>
2024-12-01 19:43:31 +01:00
Mikael Urankar
9474c17fbe lang/rust: Update to 1.83.0
Announce:	https://blog.rust-lang.org/2024/11/28/Rust-1.83.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.83.0

PR:		283000
Tested by:	mikael,pkubaj,vishwin
2024-12-01 10:23:26 +01:00
Jan Beich
c3e06e3173 lang/rust: fork 1.82 into a pinned port
A temporary workaround for games/veloren-weekly.

PR:		283039
2024-12-01 01:52:16 +01:00
Mikael Urankar
c348a54792 lang/rust: Fix build on armv7
PR:		282663
2024-11-22 09:40:03 +01:00
Mikael Urankar
560fd669d2 lang/rust: Regen bootstrap for armv7
PR:		282663
2024-11-14 16:30:31 +01:00
Alan Somers
b039f2e46b lang/rust: enable SSE2 by default on i386
Upstream Rust always requires SSE2 for x86.  But back in 2017[^1][^2] we
patched lang/rust to disable SSE2 for i386.  At the time, it was
reported that some people were still using non-SSE2 capable hardware.
More recently, LLVM bugs have been discovered[^3][^4] that can result in
rounding bugs and reduced accuracy when using f64 on non-SSE hardware.
In weird cases, they can even cause wilder unpredictable behavior, like
segfaults.

Revert our change for the sake of Pentium 4 (and later) users.  But add
an SSE2 option.  Disabling it will allow the port to be used on Pentium
3 and older CPUs.

[^1]: d65b2886b1
[^2]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223415
[^3]: https://github.com/rust-lang/rust/issues/114479
[^4]: https://github.com/llvm/llvm-project/issues/44218

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D47227
2024-11-09 15:45:49 -07:00
Charlie Li
98cb8991b6 lang/rust: remove max LLVM version restriction for PORT_LLVM 2024-11-08 10:09:42 -05:00
Mikael Urankar
29120ed40f lang/rust: Update to 1.82.0
Announce:	https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.82.0

PR:		282516
Tested by:	mikael,pkubaj
2024-11-08 09:24:19 +01:00
Mikael Urankar
05961664b7 lang/rust: drop "gnu" in the target env for armv6/7
PR:		282518
2024-11-08 09:24:19 +01:00
Charlie Li
2501f5298c lang/rust: limit PORT_LLVM max to 18
LLVM 19 support only starts in Rust 1.82; this restriction will be
removed once the update is committed.
2024-10-17 23:18:44 -04:00
Mikael Urankar
9e25c683b8 lang/rust-nightly: Update to 1.83.0 2024-10-03 15:05:35 +02:00
Yuri Victorovich
da2f3f630c devel/RStudio: Revert "feat(create-turbo): apply official-starter transform"
This reverts commit 52c0456dd5.

I have no idea what lead to this commit into devel/RStudio and
lang/rust-nightly to be made.
2024-10-02 12:38:44 -07:00
Turbobot
52c0456dd5 feat(create-turbo): apply official-starter transform 2024-10-02 12:12:31 -07:00
Mikael Urankar
26df8c65a2 lang/rust: Update to 1.81.0
Announce:	https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.81.0

PR:		281300
Tested by:	mikael,pkubaj,Herbert J. Skuhra
2024-09-10 12:54:49 +02:00
Mikael Urankar
bc4fedc1fe lang/rust: Update to 1.80.1
Announce:	https://blog.rust-lang.org/2024/07/25/Rust-1.80.0.html
		https://blog.rust-lang.org/2024/08/08/Rust-1.80.1.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.80.0

PR:		280490,246993
Tested by:	mikael,pkubaj
2024-08-26 10:07:42 +02:00
Piotr Kubaj
923194c2b0 lang/rust: enable rls on powerpc
Builds fine on 13.3-RELEASE and newer.
2024-07-02 08:44:28 +02:00
Mikael Urankar
2f482fb4b1 lang/rust: Attempt to fix build on armv7
Reported by:	mandree,mmel
2024-06-23 16:51:30 +02:00
Mikael Urankar
0f41de8c96 lang/rust: reintroduce EXTRA_PATCHES for specific ARCH
It was dropped in 988dc66236 but it's
still needed.

Reported by:	mandree,mmel
2024-06-23 16:45:44 +02:00
Charlie Li
dbc2286b18 lang/rust: bump PORT_LLVM minimum version to 17
Source: 1ac0239bd2
2024-06-18 08:56:04 -04:00
Mikael Urankar
f709c74213 lang/rust: Update to 1.79.0
Announce:	https://blog.rust-lang.org/2024/06/13/Rust-1.79.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.79.0

PR:		279707
Tested by:	pkubaj,mikael
2024-06-18 12:59:01 +02:00
Mikael Urankar
dcf699af6b lang/rust-nightly: Update to 2024-05-07 2024-05-13 13:04:10 +02:00
Mikael Urankar
7e86fe10e4 lang/rust: Update to 1.78.0
While here, disable RUST_BACKTRACE on ppc64le only

Announce:	https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.78.0

PR:		278834
Tested by:	pkubaj,mikael
2024-05-13 13:03:21 +02:00
Dan McGregor
2a1d35b12b lang/rust: remap debuginfo
Prior to this update, when the rust compiler generates warnings
or errors that refer to source code for the standard library, its
messaging use the build time path, rather than the installed path.

It's probably more useful for most users of rust to not have to
mentally rename files to find the files in question.

PR:			278133
Differential Revision:	https://reviews.freebsd.org/D44547
2024-05-13 13:03:21 +02:00
Piotr Kubaj
54f7b9d654 lang/rust: enable RUST_BACKTRACE on powerpc since it seems it works now 2024-04-27 16:14:35 +02:00
Piotr Kubaj
033129624c lang/rust: drop bfd on powerpc 2024-04-27 16:14:34 +02:00
Max Brazhnikov
43d9a1336d */*: convert to cmake:indirect
Convert bunch of ports to USES=cmake:indirect
2024-04-11 12:16:53 +03:00
Mikael Urankar
6f156f501c lang/rust: Update bootstrap for aarch64
The previous one did not work.

PR:		277921
2024-03-26 13:43:32 +01:00
Mikael Urankar
73941e6741 lang/rust: Update to 1.77.0
Announce:	https://blog.rust-lang.org/2024/03/21/Rust-1.77.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.77.0

PR:		277786
Tested by:	mikael
2024-03-23 10:41:45 +01:00
Mikael Urankar
06fa1fe217 lang/rust: Update bootstrap for powerpc
The previous one did not work.

Reported by:	pkubaj
2024-02-25 19:57:19 +01:00
Mikael Urankar
5f41aae86e lang/rust: Update bootstrap for aarch64
The previous one did not work.

PR:		277220
2024-02-24 14:07:29 +01:00
Charlie Li
d2fc4ce57d lang/rust: bump PORT_LLVM minimum version to 16
Source: 7de6d04bc8
2024-02-19 09:10:01 -05:00
Mikael Urankar
2252f9df9d lang/rust: Update to 1.76.0
Announce:	https://blog.rust-lang.org/2024/02/08/Rust-1.76.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.76.0

PR:		276920
Tested by:	mikael,pkubaj
2024-02-19 12:59:01 +01:00
Piotr Kubaj
ddce67e0d0 lang/rust: remove not necessary patch 2024-01-10 10:47:12 +01:00
Mikael Urankar
f5538d2b59 lang/rust: Fix REINPLACE_CMD with PORT_LLVM option on
PR:		276033
Reported by:	Ale <discipline@tiscali.it>
2024-01-09 15:22:25 +01:00
Mikael Urankar
ba388fc3bb lang/rust: Update to 1.75.0
Announce:	https://blog.rust-lang.org/
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.75.0

PR:		276033
Tested by:	mikael,pkubaj
2024-01-09 13:13:49 +01:00