sys-apps/acl: Filter out -flto* in order to get functional binaries
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 13 Nov 2019 13:08:52 +0000 (14:08 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 13 Nov 2019 13:16:08 +0000 (14:16 +0100)
Closes: https://bugs.gentoo.org/667372
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/acl/acl-2.2.53.ebuild

index 97265989420a052ff01a96e69e45257c59901b63..0ba85a5551589823379f77a092fca4773f47f880 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit libtool ltprune toolchain-funcs multilib-minimal usr-ldscript
+inherit flag-o-matic libtool ltprune toolchain-funcs multilib-minimal usr-ldscript
 
 DESCRIPTION="access control list utilities, libraries and headers"
 HOMEPAGE="https://savannah.nongnu.org/projects/acl"
@@ -20,6 +20,12 @@ RDEPEND="
 DEPEND="${RDEPEND}
        nls? ( sys-devel/gettext )"
 
+pkg_setup() {
+       # filter out -flto flags as they break getfacl/setfacl binaries
+       # (bug #667372)
+       filter-flags -flto*
+}
+
 src_prepare() {
        default
        elibtoolize #580792