summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-20 07:36:34 +0000
committerSam James <sam@gentoo.org>2021-12-20 07:36:43 +0000
commit1ccc0d1799fec4f667fa19c9eef729e7c7c42bb9 (patch)
tree0f384d24afa1f6b57361db20e110d10c73960ab3 /sys-process
parentdev-python/mysqlclient: x86 stable wrt bug #829645 (diff)
downloadgentoo-1ccc0d1799fec4f667fa19c9eef729e7c7c42bb9.tar.gz
gentoo-1ccc0d1799fec4f667fa19c9eef729e7c7c42bb9.tar.bz2
gentoo-1ccc0d1799fec4f667fa19c9eef729e7c7c42bb9.zip
sys-process/atop: fix build with USE=-modules
Closes: https://bugs.gentoo.org/829697 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/atop/atop-2.7.0.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-process/atop/atop-2.7.0.ebuild b/sys-process/atop/atop-2.7.0.ebuild
index 100ab24274da..224879742c4a 100644
--- a/sys-process/atop/atop-2.7.0.ebuild
+++ b/sys-process/atop/atop-2.7.0.ebuild
@@ -44,10 +44,11 @@ pkg_pretend() {
src_prepare() {
default
- (
+ if use modules ; then
cd "${WORKDIR}"/${NETATOP_P} || die
eapply -p1 "${FILESDIR}"/${PN}-2.7.0-netatop-makefile.patch
- )
+ cd "${S}" || die
+ fi
tc-export CC PKG_CONFIG