From 5691f8b2f583d5a7f46cd86ea893e34813162abc Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Sun, 21 Jun 2026 22:22:17 +0800 Subject: [PATCH] sci-electronics/surfer: fix install with USE=debug Under USE=debug cargo builds into target/debug, so the hardcoded target/release path made dobin fail. Use cargo_target_dir so the install path follows the active profile. Closes: https://bugs.gentoo.org/977872 Signed-off-by: Huang Rui --- sci-electronics/surfer/surfer-0.7.0.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sci-electronics/surfer/surfer-0.7.0.ebuild b/sci-electronics/surfer/surfer-0.7.0.ebuild index 673819b7d8..4751f369de 100644 --- a/sci-electronics/surfer/surfer-0.7.0.ebuild +++ b/sci-electronics/surfer/surfer-0.7.0.ebuild @@ -807,9 +807,11 @@ src_compile() { src_install() { # Install binaries directly from build output # Using dobin instead of cargo_src_install since this is a workspace - # and surver doesn't have the same features as surfer - dobin target/release/surfer - dobin target/release/surver + # and surver doesn't have the same features as surfer. Use + # cargo_target_dir so the path tracks USE=debug (target/debug) versus + # the default release build (target/release). + dobin "$(cargo_target_dir)"/surfer + dobin "$(cargo_target_dir)"/surver # Install desktop file and icon shipped in the source tree. Strip the # .png from the Icon key so the desktop file passes validation, the icon