* [gentoo-commits] repo/gentoo:master commit in: app-shells/fish/files/
@ 2025-04-05 11:51 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-04-05 11:51 UTC (permalink / raw
To: gentoo-commits
commit: b43d6b775ecc15a036d51c987efbf546c4f84b30
Author: idealseal <realidealseal <AT> protonmail <DOT> com>
AuthorDate: Sat Apr 5 10:46:49 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 5 11:50:17 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b43d6b77
app-shells/fish: adjust patches to find right target dir
Closes: https://bugs.gentoo.org/953010
Closes: https://bugs.gentoo.org/953027
Signed-off-by: idealseal <realidealseal <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/41465
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../fish-4.0.1-use-cargo-eclass-for-build.patch | 14 ++++++++------
.../fish-9999-use-cargo-eclass-for-build.patch | 22 ++++++++++++----------
2 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/app-shells/fish/files/fish-4.0.1-use-cargo-eclass-for-build.patch b/app-shells/fish/files/fish-4.0.1-use-cargo-eclass-for-build.patch
index 3f2bf9c6ec40..0091d08fed86 100644
--- a/app-shells/fish/files/fish-4.0.1-use-cargo-eclass-for-build.patch
+++ b/app-shells/fish/files/fish-4.0.1-use-cargo-eclass-for-build.patch
@@ -1,12 +1,11 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 496226e89..cb032d6d5 100644
+index 496226e89..69bdf037d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -51,17 +51,6 @@ function(CREATE_TARGET target)
- add_custom_target(
+@@ -52,18 +52,7 @@ function(CREATE_TARGET target)
${target} ALL
COMMAND
-- "${CMAKE_COMMAND}" -E
+ "${CMAKE_COMMAND}" -E
- env ${VARS_FOR_CARGO}
- ${Rust_CARGO}
- build --bin ${target}
@@ -17,9 +16,12 @@ index 496226e89..cb032d6d5 100644
- ${CARGO_FLAGS}
- ${FEATURES_ARG}
- &&
- "${CMAKE_COMMAND}" -E
- copy "${rust_target_dir}/${rust_profile}/${target}" "${CMAKE_CURRENT_BINARY_DIR}"
+- "${CMAKE_COMMAND}" -E
+- copy "${rust_target_dir}/${rust_profile}/${target}" "${CMAKE_CURRENT_BINARY_DIR}"
++ copy "${FISH_RUST_BUILD_DIR}/${rust_profile}/${target}" "${CMAKE_CURRENT_BINARY_DIR}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+ USES_TERMINAL
+ )
diff --git a/cmake/Rust.cmake b/cmake/Rust.cmake
index 40887be45..fa0f7ab6f 100644
--- a/cmake/Rust.cmake
diff --git a/app-shells/fish/files/fish-9999-use-cargo-eclass-for-build.patch b/app-shells/fish/files/fish-9999-use-cargo-eclass-for-build.patch
index f20510a54bd8..964c7435d4ca 100644
--- a/app-shells/fish/files/fish-9999-use-cargo-eclass-for-build.patch
+++ b/app-shells/fish/files/fish-9999-use-cargo-eclass-for-build.patch
@@ -1,12 +1,11 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 0510cd2d7..c49f80d69 100644
+index 0510cd2d7..84fa35e2e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -41,17 +41,6 @@ function(CREATE_TARGET target)
- add_custom_target(
+@@ -42,18 +42,7 @@ function(CREATE_TARGET target)
${target} ALL
COMMAND
-- "${CMAKE_COMMAND}" -E
+ "${CMAKE_COMMAND}" -E
- env ${VARS_FOR_CARGO}
- ${Rust_CARGO}
- build --bin ${target}
@@ -17,23 +16,26 @@ index 0510cd2d7..c49f80d69 100644
- ${CARGO_FLAGS}
- ${FEATURES_ARG}
- &&
- "${CMAKE_COMMAND}" -E
- copy "${rust_target_dir}/${rust_profile}/${target}" "${CMAKE_CURRENT_BINARY_DIR}"
+- "${CMAKE_COMMAND}" -E
+- copy "${rust_target_dir}/${rust_profile}/${target}" "${CMAKE_CURRENT_BINARY_DIR}"
++ copy "${FISH_RUST_BUILD_DIR}/${rust_profile}/${target}" "${CMAKE_CURRENT_BINARY_DIR}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+ USES_TERMINAL
+ )
diff --git a/cmake/Rust.cmake b/cmake/Rust.cmake
-index c5bb1b1b3..618b47183 100644
+index 9cdd01c30..5c554dd2d 100644
--- a/cmake/Rust.cmake
+++ b/cmake/Rust.cmake
-@@ -5,7 +5,7 @@ set(Rust_RESOLVE_RUSTUP_TOOLCHAINS Off)
+@@ -1,7 +1,7 @@
include(FindRust)
- find_package(Rust 1.70 REQUIRED)
+ find_package(Rust REQUIRED)
-set(FISH_RUST_BUILD_DIR "${CMAKE_BINARY_DIR}/cargo/build")
+set(FISH_RUST_BUILD_DIR "${CMAKE_SOURCE_DIR}/target")
if(DEFINED ASAN)
list(APPEND CARGO_FLAGS "-Z" "build-std")
-@@ -22,8 +22,8 @@ else()
+@@ -18,8 +18,8 @@ else()
set(rust_target_dir "${FISH_RUST_BUILD_DIR}/${Rust_CARGO_HOST_TARGET}")
endif()
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-05 11:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-05 11:51 [gentoo-commits] repo/gentoo:master commit in: app-shells/fish/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox