app-arch/sharutils: Enforce -Wno-error=format-security
authorThomas Deutschmann <whissi@gentoo.org>
Sun, 17 Sep 2017 02:13:19 +0000 (04:13 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sun, 17 Sep 2017 02:13:19 +0000 (04:13 +0200)
See http://lists.gnu.org/archive/html/bug-gnu-utils/2013-10/msg00011.html

Package-Manager: Portage-2.3.8, Repoman-2.3.3

app-arch/sharutils/sharutils-4.15.2.ebuild

index 75da8ed243a1d2a978b3692b216c7da56587edf4..1edfe87ae807200ecc622c5033ef260f1447ab23 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="5"
 
-inherit eutils
+inherit eutils flag-o-matic
 
 MY_P="${P/_/-}"
 DESCRIPTION="Tools to deal with shar archives"
@@ -21,6 +21,14 @@ DEPEND="app-arch/xz-utils
 
 S=${WORKDIR}/${MY_P}
 
+src_prepare() {
+       default
+
+       # Upstream is aware but thinks this isn't a bug/problem in sharutils itself
+       # See http://lists.gnu.org/archive/html/bug-gnu-utils/2013-10/msg00011.html
+       append-cflags $(test-flags-CC -Wno-error=format-security)
+}
+
 src_configure() {
        strip-linguas -u po
        econf $(use_enable nls)