summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-03-25 03:25:25 +0000
committerSam James <sam@gentoo.org>2023-03-25 03:32:35 +0000
commita8320b2610a082aa0766200884c69a76f21829b2 (patch)
treec7976f3613bbe551ad0c916051c2b49e8871342a /app-arch/tar
parentapp-arch/tar: Adding a patch to fix CVE-2022-48303 (diff)
downloadgentoo-a8320b2610a082aa0766200884c69a76f21829b2.tar.gz
gentoo-a8320b2610a082aa0766200884c69a76f21829b2.tar.bz2
gentoo-a8320b2610a082aa0766200884c69a76f21829b2.zip
app-arch/tar: avoid -Werror and -fanalyzer
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-arch/tar')
-rw-r--r--app-arch/tar/tar-1.34-r2.ebuild5
-rw-r--r--app-arch/tar/tar-1.34-r3.ebuild5
2 files changed, 10 insertions, 0 deletions
diff --git a/app-arch/tar/tar-1.34-r2.ebuild b/app-arch/tar/tar-1.34-r2.ebuild
index e6c0b272787b..86fdc8e05e20 100644
--- a/app-arch/tar/tar-1.34-r2.ebuild
+++ b/app-arch/tar/tar-1.34-r2.ebuild
@@ -38,8 +38,13 @@ PDEPEND="
"
src_configure() {
+ # -fanalyzer doesn't make sense for us in ebuilds, as it's for static analysis
+ export gl_cv_warn_c__fanalyzer=no
+
local myeconfargs=(
--bindir="${EPREFIX}"/bin
+ # Avoid -Werror
+ --disable-gcc-warnings
--enable-backup-scripts
--libexecdir="${EPREFIX}"/usr/sbin
$(use_with acl posix-acls)
diff --git a/app-arch/tar/tar-1.34-r3.ebuild b/app-arch/tar/tar-1.34-r3.ebuild
index abf8af8f3d94..f92891dceff1 100644
--- a/app-arch/tar/tar-1.34-r3.ebuild
+++ b/app-arch/tar/tar-1.34-r3.ebuild
@@ -42,8 +42,13 @@ PATCHES=(
)
src_configure() {
+ # -fanalyzer doesn't make sense for us in ebuilds, as it's for static analysis
+ export gl_cv_warn_c__fanalyzer=no
+
local myeconfargs=(
--bindir="${EPREFIX}"/bin
+ # Avoid -Werror
+ --disable-gcc-warnings
--enable-backup-scripts
--libexecdir="${EPREFIX}"/usr/sbin
$(use_with acl posix-acls)