Skip to content

Commit 98f9374

Browse files
committed
Rust 1.87.0 + enable build also for Solaris CBE 11.4.81
1 parent c1964ca commit 98f9374

File tree

6 files changed

+50
-12
lines changed

6 files changed

+50
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Note that to build Rust version X you need to have version X or X-1 versoin.
77
Usage example:
88

99
```
10-
RUST_BOOTSTRAP=~/.rust_solaris/rustc-1.85.0/bin ./build.sh
10+
RUST_BOOTSTRAP=~/.rust_solaris/rustc-1.86.0/bin ./build.sh
1111
```
1212

1313
Ultimately Rust should install in standard manner (rustup). But we are not there yet..

build.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
set -xe
66

7-
VERSION=1.86.0
7+
VERSION=1.87.0
88

99
PATH=$RUST_BOOTSTRAP:/usr/gnu/bin:/usr/bin
1010

@@ -21,8 +21,14 @@ SRC_ARCHIVE=${SRC_DIR}.tar.xz
2121
BUILD_HOME="$BUILD_DIR"/rustc-${VERSION}-home
2222
PROTO_DIR="$BUILD_DIR"/rustc-${VERSION}-proto
2323

24-
GCC=/usr/gcc/11/bin/gcc
25-
GXX=/usr/gcc/11/bin/g++
24+
SRU=$(uname -v | cut -d . -f 3)
25+
if [ $SRU -ge 78 ]; then
26+
GCC=/usr/gcc/14/bin/gcc
27+
GXX=/usr/gcc/14/bin/g++
28+
else
29+
GCC=/usr/gcc/11/bin/gcc
30+
GXX=/usr/gcc/11/bin/g++
31+
fi
2632

2733
mkdir -p "$BUILD_DIR"
2834

@@ -61,4 +67,4 @@ PATH="$PATH" CC=$GCC CXX=$GXX bash ./configure ${CONFIGURE_OPTIONS}
6167
PATH=$PATH PKG_CONFIG_PATH=/usr/lib/64/pkgconfig HOME=$BUILD_HOME gmake install DESTDIR=$PROTO_DIR
6268

6369
# Create Rust distribution archive
64-
( cd $PROTO_DIR/usr && mv local rustc-${VERSION} && gtar cfJ $BUILD_DIR/rust-${VERSION}-Solaris-11.4.42-CBE-`mach`.tar.xz rustc-${VERSION} )
70+
( cd $PROTO_DIR/usr && mv local rustc-${VERSION} && gtar cfJ $BUILD_DIR/rust-${VERSION}-Solaris-11.4.$SRU-CBE-`mach`.tar.xz rustc-${VERSION} )

patches/curl.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
https://github.com/rust-lang/cargo/pull/15532
2+
3+
--- rustc-1.87.0-src/src/tools/cargo/src/cargo/util/context/mod.rs
4+
+++ rustc-1.87.0-src/src/tools/cargo/src/cargo/util/context/mod.rs
5+
@@ -3111,7 +3111,7 @@
6+
use crate::util::network;
7+
8+
if network::proxy::http_proxy_exists(http, gctx) && http.multiplexing.is_none() {
9+
- let bad_curl_versions = ["7.87.0", "7.88.0", "7.88.1"];
10+
+ let bad_curl_versions = ["7.79.0", "7.87.0", "7.88.0", "7.88.1"];
11+
if bad_curl_versions
12+
.iter()
13+
.any(|v| curl_version.starts_with(v))

patches/no-fd-lock.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ diff --git a/src/bootstrap/Cargo.toml b/src/bootstrap/Cargo.toml
66
index fcd97b7b589..ff404a80825 100644
77
--- a/src/bootstrap/Cargo.toml
88
+++ b/src/bootstrap/Cargo.toml
9-
@@ -43,7 +43,6 @@ cmake = "=0.1.48"
9+
@@ -38,7 +38,6 @@
1010
build_helper = { path = "../build_helper" }
1111
clap = { version = "4.4", default-features = false, features = ["std", "usage", "help", "derive", "error-context"] }
1212
clap_complete = "4.4"
@@ -38,9 +38,9 @@ index 409a644b9be..d331411f230 100644
3838
+use std::{env};
3939

4040
use bootstrap::{
41-
Build, CONFIG_CHANGE_HISTORY, Config, Flags, Subcommand, find_recent_config_change_ids,
42-
@@ -36,41 +36,6 @@ fn main() {
43-
let flags = Flags::parse(&args);
41+
Build, CONFIG_CHANGE_HISTORY, ChangeId, Config, Flags, Subcommand, debug,
42+
@@ -33,41 +33,6 @@
43+
debug!("parsing config based on flags");
4444
let config = Config::parse(flags);
4545

4646
- let mut build_lock;
@@ -79,5 +79,5 @@ index 409a644b9be..d331411f230 100644
7979
- }
8080
-
8181
// check_version warnings are not printed during setup, or during CI
82-
let changelog_suggestion = if matches!(config.cmd, Subcommand::Setup { .. }) || CiEnv::is_ci() {
83-
None
82+
let changelog_suggestion = if matches!(config.cmd, Subcommand::Setup { .. })
83+
|| config.is_running_on_ci

0 commit comments

Comments
 (0)