diff options
author | Sam James <sam@gentoo.org> | 2024-03-28 05:16:44 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-28 05:18:01 +0000 |
commit | bbd22fe32571d5c4c1d97256917a0bf322518b9f (patch) | |
tree | e828dedaabeb8ca99e2fe34a7e945bdc258e7201 | |
parent | dev-util/ccache: drop 4.9 (diff) | |
download | gentoo-bbd22fe32571d5c4c1d97256917a0bf322518b9f.tar.gz gentoo-bbd22fe32571d5c4c1d97256917a0bf322518b9f.tar.bz2 gentoo-bbd22fe32571d5c4c1d97256917a0bf322518b9f.zip |
Revert "net-libs/rustls-ffi: drop nightly Rust flag"
This reverts commit 5f34085acefc46c97581d47817157fc8ce3762af.
Closes: https://bugs.gentoo.org/928002
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | net-libs/rustls-ffi/files/rustls-ffi-0.12.1-no-rust-nightly.patch | 48 | ||||
-rw-r--r-- | net-libs/rustls-ffi/rustls-ffi-0.12.1-r1.ebuild (renamed from net-libs/rustls-ffi/rustls-ffi-0.12.1.ebuild) | 7 |
2 files changed, 3 insertions, 52 deletions
diff --git a/net-libs/rustls-ffi/files/rustls-ffi-0.12.1-no-rust-nightly.patch b/net-libs/rustls-ffi/files/rustls-ffi-0.12.1-no-rust-nightly.patch deleted file mode 100644 index dd8d582d4a84..000000000000 --- a/net-libs/rustls-ffi/files/rustls-ffi-0.12.1-no-rust-nightly.patch +++ /dev/null @@ -1,48 +0,0 @@ -https://github.com/rustls/rustls-ffi/issues/397 -https://github.com/rustls/rustls-ffi/pull/398 - -From 68b7153018647baec43ea950f28b2f84e87f5296 Mon Sep 17 00:00:00 2001 -From: Daniel McCarney <daniel@binaryparadox.net> -Date: Wed, 27 Mar 2024 21:08:16 -0400 -Subject: [PATCH] Cargo: configure cargo-c to use vendored .h - -Presently we pre-generate the rustls.h header file using `cbindgen`, -commit the result to `src/rustls.h`, and check that the generated result -matches the checked-in result in CI. - -The new experimental cargo-c build regenerates its own header file using -`cbindgen` by default unless told to do otherwise. We'd prefer it didn't -do this because we're using a `cbindgen` feature that requires nightly -rust. - -This commit updates the `Cargo.toml` capi metadata to tell cargo-c to -skip generation of its own header file. We then configure the -pre-generated checked-in header file as an asset to be copied into the -install include directory. - -This better matches how the `Makefile` build allowed building the static -lib without needing nightly rust or `cbindgen`. ---- - Cargo.toml | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/Cargo.toml b/Cargo.toml -index 7a910a9d..4c2b2e94 100644 ---- a/Cargo.toml -+++ b/Cargo.toml -@@ -41,6 +41,7 @@ regex = "1.9.6" - [package.metadata.capi.header] - name = "rustls" - subdirectory = false -+generation = false # Prefer a vendored .h - - [package.metadata.capi.library] - name = "rustls" -@@ -50,3 +51,6 @@ rustflags = "-Cmetadata=rustls-ffi" - [package.metadata.capi.pkg_config] - name = "rustls" - filename = "rustls" -+ -+[package.metadata.capi.install] -+asset = [{ from = "src/rustls.h", to = "include" }] - diff --git a/net-libs/rustls-ffi/rustls-ffi-0.12.1.ebuild b/net-libs/rustls-ffi/rustls-ffi-0.12.1-r1.ebuild index b9e9e999f6a9..999355fd18f4 100644 --- a/net-libs/rustls-ffi/rustls-ffi-0.12.1.ebuild +++ b/net-libs/rustls-ffi/rustls-ffi-0.12.1-r1.ebuild @@ -56,10 +56,6 @@ BDEPEND="dev-util/cargo-c" QA_FLAGS_IGNORED="usr/lib.*/librustls.*" -PATCHES=( - "${FILESDIR}"/rustls-ffi-0.12.1-no-rust-nightly.patch -) - src_prepare() { default @@ -74,6 +70,9 @@ src_configure() { # Hopefully fixed with https://github.com/rustls/rustls-ffi/pull/389 export RUSTFLAGS="${RUSTFLAGS} -C link-arg=-Wl,-z,notext" + # https://github.com/rustls/rustls-ffi/issues/397 + export RUSTC_BOOTSTRAP=1 + multilib-minimal_src_configure } |