commit:     3df453b5dde93bc54c16a2a113eced09937df4bb
Author:     brettalcox <brettalcox <AT> gmail <DOT> com>
AuthorDate: Tue Oct 17 02:43:10 2023 +0000
Commit:     Brett Alcox <brettalcox <AT> gmail <DOT> com>
CommitDate: Tue Oct 17 02:43:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3df453b5

sys-apps/mission-center: fixing broken debug build

Signed-off-by: brettalcox <brettalcox <AT> gmail.com>

 sys-apps/mission-center/mission-center-0.3.3.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sys-apps/mission-center/mission-center-0.3.3.ebuild 
b/sys-apps/mission-center/mission-center-0.3.3.ebuild
index 76cfc83f34..66ca90aa98 100644
--- a/sys-apps/mission-center/mission-center-0.3.3.ebuild
+++ b/sys-apps/mission-center/mission-center-0.3.3.ebuild
@@ -364,14 +364,17 @@ BDEPEND="
 src_unpack() {
        unpack ${P}.tar.bz2
        unpack nvtop-${NVTOP_COMMIT}.tar.gz
-       mkdir -p 
"${BUILD_DIR}/src/sys_info_v2/gatherer/src/release/build/native" || die
-       mv nvtop-${NVTOP_COMMIT} 
"${BUILD_DIR}/src/sys_info_v2/gatherer/src/release/build/native" || die
+       
+       GATHERER_BUILD_DIR=$(usex debug debug release)
+       mkdir -p 
"${BUILD_DIR}/src/sys_info_v2/gatherer/src/${GATHERER_BUILD_DIR}/build/native" 
|| die
+       mv nvtop-${NVTOP_COMMIT} 
"${BUILD_DIR}/src/sys_info_v2/gatherer/src/${GATHERER_BUILD_DIR}/build/native" 
|| die
        cargo_src_unpack
 }
 
 src_prepare() {
        eapply_user
-       cd 
"${BUILD_DIR}/src/sys_info_v2/gatherer/src/release/build/native/nvtop-${NVTOP_COMMIT}"
 || die
+       GATHERER_BUILD_DIR=$(usex debug debug release)
+       cd 
"${BUILD_DIR}/src/sys_info_v2/gatherer/src/${GATHERER_BUILD_DIR}/build/native/nvtop-${NVTOP_COMMIT}"
 || die
        find "${S}/src/sys_info_v2/gatherer/3rdparty/nvtop/patches" -type f 
-name 'nvtop-*' -exec sh -c 'patch -p1 < {}' \; || die
 }
 

Reply via email to