commit:     e6ddcb72a8738fc10d1cbf3812d4764bbe2db009
Author:     Salah Coronya <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Thu Sep 24 19:28:15 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Oct  8 06:48:32 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6ddcb72

dev-libs/libtpms: Remove -WError

Closes: https://bugs.gentoo.org/744445
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/17654
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/libtpms/files/libtpms-0.7.3-Remove-WError.patch | 13 +++++++++++++
 dev-libs/libtpms/libtpms-0.7.3.ebuild                    |  4 ++++
 2 files changed, 17 insertions(+)

diff --git a/dev-libs/libtpms/files/libtpms-0.7.3-Remove-WError.patch 
b/dev-libs/libtpms/files/libtpms-0.7.3-Remove-WError.patch
new file mode 100644
index 00000000000..fe17f898f5e
--- /dev/null
+++ b/dev-libs/libtpms/files/libtpms-0.7.3-Remove-WError.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 1bb45d1..147aa84 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -283,7 +283,7 @@ if test "x$enable_hardening" != "xno"; then
+       AC_SUBST([HARDENING_LDFLAGS])
+ fi
+ 
+-CFLAGS="$CFLAGS $COVERAGE_CFLAGS -Wall -Werror -Wreturn-type -Wsign-compare 
-Wno-self-assign"
++CFLAGS="$CFLAGS $COVERAGE_CFLAGS -Wall -Wreturn-type -Wsign-compare 
-Wno-self-assign"
+ LDFLAGS="$LDFLAGS $COVERAGE_LDFLAGS"
+ 
+ AC_CONFIG_FILES(Makefile                   \

diff --git a/dev-libs/libtpms/libtpms-0.7.3.ebuild 
b/dev-libs/libtpms/libtpms-0.7.3.ebuild
index 1daf31882dc..ad9f41f5b8a 100644
--- a/dev-libs/libtpms/libtpms-0.7.3.ebuild
+++ b/dev-libs/libtpms/libtpms-0.7.3.ebuild
@@ -17,6 +17,10 @@ DEPEND=" !libressl? ( dev-libs/openssl:0= )
        libressl? ( dev-libs/libressl:0= )"
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+       "${FILESDIR}/${PN}-0.7.3-Remove-WError.patch"
+       )
+
 src_prepare() {
        default
        eautoreconf

Reply via email to