From 8f44ee1d4d34d94e82a7e578ee4b8465cb8dadc3 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Tue, 25 Feb 2025 00:03:32 +0800 Subject: rust: added libressl patch --- repos/extra/rust/.checksum | 2 ++ repos/extra/rust/.files | 2 +- repos/extra/rust/abuild | 13 ++++++++----- repos/extra/rust/fix-curl.patch | 21 +++++++++++++++++---- repos/extra/rust/fix-linux_musl_base.patch | 0 repos/extra/rust/libressl.patch | 10 ++++++++++ 6 files changed, 38 insertions(+), 10 deletions(-) mode change 100644 => 100755 repos/extra/rust/.checksum mode change 100644 => 100755 repos/extra/rust/.files mode change 100755 => 100644 repos/extra/rust/abuild mode change 100644 => 100755 repos/extra/rust/fix-linux_musl_base.patch create mode 100755 repos/extra/rust/libressl.patch (limited to 'repos') diff --git a/repos/extra/rust/.checksum b/repos/extra/rust/.checksum old mode 100644 new mode 100755 index 515c619c..26cca43c --- a/repos/extra/rust/.checksum +++ b/repos/extra/rust/.checksum @@ -1,6 +1,8 @@ e532c42d7eb325d75c298596b6865636bc88ea0df21ee7d092b0e9ada65a301f cargo-1.83.0-x86_64-unknown-linux-musl.tar.xz 879b657d8928ddb722e1e5447d3d26aa5e5df8b31e55bf037348388b3005bb5e fix-bootstrap.patch +c03ac16dbb7aecb143e7cd701feb480862af63dbb044e0f0637eaff93758937f fix-curl.patch fb0fef39b363d51813605394a68ba775dc6c9cc295bd9f9e718d0e13376bbdfc fix-linux_musl_base.patch +cfe8a050a1acc17c735c5af1b86989b38f99c14bbff509739523ede8768c2eab libressl.patch 0421a2eb37e34e28fea9318b0771e79cd2f7c8da56272e40e41b5ee1e20b7b07 rust-std-1.83.0-x86_64-unknown-linux-musl.tar.xz 34ef847a906f161bad351fa173d9c44f58cda6db3213717cd43b08c53b706eef rustc-1.83.0-x86_64-unknown-linux-musl.tar.xz ec87dbce94022019aeecf269e58bba8bc4face7d5ac8745f301a74683c065a51 rustc-1.84.1-src.tar.xz diff --git a/repos/extra/rust/.files b/repos/extra/rust/.files old mode 100644 new mode 100755 index 88dea9b3..0c1f74a3 --- a/repos/extra/rust/.files +++ b/repos/extra/rust/.files @@ -11,7 +11,7 @@ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/rustc -rwxr-xr-x root/root usr/bin/rustfmt drwxr-xr-x root/root usr/lib/ --rw-r--r-- root/root usr/lib/librustc_driver-65b9b6b98ba223b6.so +-rw-r--r-- root/root usr/lib/librustc_driver-ce439f79e4196a4c.so drwxr-xr-x root/root usr/lib/rustlib/ -rw-r--r-- root/root usr/lib/rustlib/components drwxr-xr-x root/root usr/lib/rustlib/etc/ diff --git a/repos/extra/rust/abuild b/repos/extra/rust/abuild old mode 100755 new mode 100644 index e3c94ade..f0e7d4fb --- a/repos/extra/rust/abuild +++ b/repos/extra/rust/abuild @@ -13,8 +13,9 @@ source="https://static.rust-lang.org/dist/${name}c-$version-src.tar.xz https://static.rust-lang.org/dist/$_date/rustc-$_rustc-x86_64-unknown-linux-musl.tar.xz::noextract https://static.rust-lang.org/dist/$_date/cargo-$_cargo-x86_64-unknown-linux-musl.tar.xz::noextract fix-linux_musl_base.patch - fix-bootstrap.patch" - #fix-curl.patch" + fix-bootstrap.patch + libressl.patch + fix-curl.patch" build_dir=${name}c-$version-src keep_static=1 no_strip=1 @@ -27,9 +28,11 @@ build() { cp $SRC/rustc-$_rustc-x86_64-unknown-linux-musl.tar.xz build/cache/$_date/ cp $SRC/cargo-$_cargo-x86_64-unknown-linux-musl.tar.xz build/cache/$_date/ - #sed -i 's/\(crt_static_default = \)true/\1false/' compiler/rustc_target/src/spec/base/linux_musl.rs - #sed -i 's/\("files":{\)[^}]*/\1/' vendor/curl-sys-0.4.72+curl-8.6.0/.cargo-checksum.json - + sed -i 's/\(crt_static_default = \)true/\1false/' compiler/rustc_target/src/spec/base/linux_musl.rs + sed -i 's/\("files":{\)[^}]*/\1/' vendor/curl-sys-0.4.52+curl-7.81.0/.cargo-checksum.json + sed -i 's/\("files":{\)[^}]*/\1/' vendor/curl-sys-0.4.74+curl-8.9.0/.cargo-checksum.json + sed -i 's/\("files":{\)[^}]*/\1/' vendor/openssl-sys-0.9.92/.cargo-checksum.json + cat > config.toml < ('3', '7', '1'), + (3, 7, _) => ('3', '7', 'x'), + (3, 8, 0) => ('3', '8', '0'), ++ (4, 0, _) => ('4', '0', 'x'), + _ => version_error(), + }; + \ No newline at end of file -- cgit v1.2.3