commit: 67223872158b0a243523fb9aacefed3233dbd4fa Author: Thomas Schneider <qsx <AT> chaotikum <DOT> eu> AuthorDate: Thu Jul 15 11:56:48 2021 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Fri Jul 16 09:51:44 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67223872
x11-misc/dunst: Use sed instead of patch file in -9999 This way it won’t fail when config.mk changes upstream. Closes: https://bugs.gentoo.org/790854 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Thomas Schneider <qsx <AT> chaotikum.eu> Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> x11-misc/dunst/dunst-9999.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/x11-misc/dunst/dunst-9999.ebuild b/x11-misc/dunst/dunst-9999.ebuild index 9e6ef65b51b..37ee134187e 100644 --- a/x11-misc/dunst/dunst-9999.ebuild +++ b/x11-misc/dunst/dunst-9999.ebuild @@ -40,7 +40,15 @@ BDEPEND=" wayland? ( dev-libs/wayland-protocols ) " -PATCHES=( "${FILESDIR}"/${PN}-1.6.1-no-Os.patch ) +src_prepare() { + default + + sed -i \ + -e "/^DEFAULT_CFLAGS/s/-g //" \ + -e "/^DEFAULT_CFLAGS/s/-Os //" \ + config.mk \ + || die "sed failed" +} src_configure() { tc-export CC PKG_CONFIG
