From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/atop/
Date: Sun, 11 Aug 2024 20:56:35 +0000 (UTC) [thread overview]
Message-ID: <1723409761.df8c8087a90e1123ea8a7e62a10d2be5df9167b1.sam@gentoo> (raw)
commit: df8c8087a90e1123ea8a7e62a10d2be5df9167b1
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sun Aug 11 20:51:53 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Aug 11 20:56:01 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df8c8087
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 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-process/atop/atop-2.10.0-r1.ebuild | 8 ++++++++
sys-process/atop/atop-2.9.0-r1.ebuild | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/sys-process/atop/atop-2.10.0-r1.ebuild b/sys-process/atop/atop-2.10.0-r1.ebuild
index c9b216bc2e3f..5d3ecf36942a 100644
--- a/sys-process/atop/atop-2.10.0-r1.ebuild
+++ b/sys-process/atop/atop-2.10.0-r1.ebuild
@@ -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
diff --git a/sys-process/atop/atop-2.9.0-r1.ebuild b/sys-process/atop/atop-2.9.0-r1.ebuild
index 313f9ab42b41..b7d49a35cd46 100644
--- a/sys-process/atop/atop-2.9.0-r1.ebuild
+++ b/sys-process/atop/atop-2.9.0-r1.ebuild
@@ -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
next reply other threads:[~2024-08-11 20:56 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-11 20:56 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-21 3:22 [gentoo-commits] repo/gentoo:master commit in: sys-process/atop/ Sam James
2025-07-21 2:57 Sam James
2025-07-21 2:57 Sam James
2025-07-21 2:54 Sam James
2025-04-03 19:24 Arthur Zamarin
2025-04-03 15:48 Sam James
2025-04-03 15:48 Sam James
2025-04-03 15:48 Sam James
2025-04-01 0:31 Sam James
2025-03-31 20:55 Sam James
2025-03-20 8:35 Arthur Zamarin
2025-02-16 12:11 Sam James
2024-10-10 11:04 Arthur Zamarin
2024-10-08 21:50 Jakov Smolić
2024-10-05 14:30 Arthur Zamarin
2024-10-05 12:02 Arthur Zamarin
2024-08-11 21:14 Sam James
2024-03-02 16:31 Arthur Zamarin
2024-02-18 20:02 Arthur Zamarin
2024-02-18 20:02 Arthur Zamarin
2024-02-18 19:57 Arthur Zamarin
2024-01-14 3:46 Sam James
2024-01-14 3:40 Sam James
2023-11-27 11:23 Sam James
2023-08-02 8:17 Sam James
2023-07-24 21:02 Sam James
2023-07-24 13:39 Arthur Zamarin
2023-07-15 8:45 Arthur Zamarin
2023-05-20 7:02 Sam James
2023-05-03 18:58 Sam James
2023-03-04 11:03 Arthur Zamarin
2023-03-04 7:04 Arthur Zamarin
2023-01-08 5:20 Sam James
2023-01-08 5:20 Sam James
2022-12-31 23:28 Sam James
2022-10-29 21:39 Sam James
2022-04-17 17:12 Sam James
2022-02-20 5:27 Sam James
2022-02-19 6:29 Arthur Zamarin
2022-02-19 6:29 Arthur Zamarin
2022-02-19 6:29 Arthur Zamarin
2022-02-19 3:02 Sam James
2022-01-13 5:33 Sam James
2022-01-09 8:05 Sam James
2022-01-09 1:06 Sam James
2022-01-07 5:14 Sam James
2021-12-20 7:36 Sam James
2021-10-11 13:47 Yixun Lan
2021-05-16 12:45 Sam James
2021-05-13 21:17 Sam James
2021-05-13 18:56 Sam James
2021-05-13 17:12 Sam James
2019-11-07 8:21 Lars Wendler
2018-06-04 19:25 Mart Raudsepp
2017-12-12 15:10 Lars Wendler
2017-11-15 22:42 Sergei Trofimovich
2017-10-23 12:29 Manuel Rüger
2017-10-05 11:07 Sergei Trofimovich
2017-09-23 16:08 Thomas Deutschmann
2017-09-22 21:33 Thomas Deutschmann
2017-08-22 21:41 Michał Górny
2017-08-04 7:15 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1723409761.df8c8087a90e1123ea8a7e62a10d2be5df9167b1.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox