commit: 098174e77d2640872404beb286d5e2c44077f7f5 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Jul 7 19:05:26 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Jul 7 19:05:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=098174e7
sys-process/iotop-c: fix extra _FORTIFY_SOURCE Closes: https://bugs.gentoo.org/898166 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> .../iotop-c/{iotop-c-1.23.ebuild => iotop-c-1.23-r1.ebuild} | 5 +++++ sys-process/iotop-c/iotop-c-9999.ebuild | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sys-process/iotop-c/iotop-c-1.23.ebuild b/sys-process/iotop-c/iotop-c-1.23-r1.ebuild similarity index 90% rename from sys-process/iotop-c/iotop-c-1.23.ebuild rename to sys-process/iotop-c/iotop-c-1.23-r1.ebuild index 01595c683cbc..c401c231d083 100644 --- a/sys-process/iotop-c/iotop-c-1.23.ebuild +++ b/sys-process/iotop-c/iotop-c-1.23-r1.ebuild @@ -25,6 +25,11 @@ FILECAPS=( cap_net_admin=eip usr/bin/iotop ) +src_prepare() { + sed -e 's/-D_FORTIFY_SOURCE=2//' -i Makefile || die + default +} + src_compile() { emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1 } diff --git a/sys-process/iotop-c/iotop-c-9999.ebuild b/sys-process/iotop-c/iotop-c-9999.ebuild index b05952298d1d..47a5c48a0a0e 100644 --- a/sys-process/iotop-c/iotop-c-9999.ebuild +++ b/sys-process/iotop-c/iotop-c-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -23,6 +23,11 @@ FILECAPS=( cap_net_admin=eip usr/bin/iotop ) +src_prepare() { + sed -e 's/-D_FORTIFY_SOURCE=2//' -i Makefile || die + default +} + src_compile() { emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1 }
