sys-process/atop: patch out uname usage

Bonus: dies when it finds uname in netatop source

Closes: https://bugs.gentoo.org/919693
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander
2024-08-11 22:51:53 +02:00
committed by Sam James
parent 2a4e1abd1b
commit df8c8087a9
2 changed files with 16 additions and 0 deletions

View File

@@ -53,6 +53,14 @@ src_prepare() {
if use modules ; then
cd "${WORKDIR}"/${NETATOP_P} || die
eapply "${FILESDIR}"/${PN}-2.9.0-netatop-makefile.patch
sed \
-e "s#\`uname -r\`#${KV_FULL}#g" \
-e "s#\$(shell uname -r)#${KV_FULL}#g" \
-i {.,daemon,module}/Makefile || die
grep -rq "uname -r" && die "found uname calls"
cd "${S}" || die
fi

View File

@@ -49,6 +49,14 @@ src_prepare() {
if use modules ; then
cd "${WORKDIR}"/${NETATOP_P} || die
eapply "${FILESDIR}"/${PN}-2.9.0-netatop-makefile.patch
sed \
-e "s#\`uname -r\`#${KV_FULL}#g" \
-e "s#\$(shell uname -r)#${KV_FULL}#g" \
-i {.,daemon,module}/Makefile || die
grep -rq "uname -r" && die "found uname calls"
cd "${S}" || die
fi