From 3df453b5dde93bc54c16a2a113eced09937df4bb Mon Sep 17 00:00:00 2001 From: brettalcox Date: Mon, 16 Oct 2023 21:43:10 -0500 Subject: [PATCH] sys-apps/mission-center: fixing broken debug build Signed-off-by: brettalcox --- 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 }