commit:     1ccc0d1799fec4f667fa19c9eef729e7c7c42bb9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 20 07:36:34 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec 20 07:36:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ccc0d17

sys-process/atop: fix build with USE=-modules

Closes: https://bugs.gentoo.org/829697
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/atop/atop-2.7.0.ebuild | 5 +++--
 1 file 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
 

Reply via email to