mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user