commit:     18c8f1f1e6a990dcfd4530c627e9419236ab4f2a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 28 03:49:31 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 28 04:51:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18c8f1f1

dev-libs/liberasurecode: avoid -Werror more

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/liberasurecode-1.6.5-no-werror.patch     | 23 ++++++++++++++++++++++
 .../liberasurecode/liberasurecode-1.6.5.ebuild     |  4 ++++
 2 files changed, 27 insertions(+)

diff --git a/dev-libs/liberasurecode/files/liberasurecode-1.6.5-no-werror.patch 
b/dev-libs/liberasurecode/files/liberasurecode-1.6.5-no-werror.patch
new file mode 100644
index 000000000000..302bab87d63d
--- /dev/null
+++ b/dev-libs/liberasurecode/files/liberasurecode-1.6.5-no-werror.patch
@@ -0,0 +1,23 @@
+Not all parts of the build respect --disable-werror.
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -8,7 +8,7 @@ INCLUDE = -I$(abs_top_builddir)/include \
+                 -I$(abs_top_builddir)/include/xor_codes
+ 
+ AM_CPPFLAGS = $(CPPFLAGS) $(INCLUDE)
+-AM_CPPFLAGS += -Werror -Wall
++AM_CPPFLAGS += -Wall
+ 
+ AM_CFLAGS = -fPIC $(AM_CPPFLAGS) @GCOV_FLAGS@ -L/usr/local/lib
+ 
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -32,7 +32,7 @@ liberasurecode_la_SOURCES = \
+               backends/shss/shss.c \
+               backends/phazrio/libphazr.c
+ 
+-liberasurecode_la_CPPFLAGS = -Werror @GCOV_FLAGS@
++liberasurecode_la_CPPFLAGS = @GCOV_FLAGS@
+ liberasurecode_la_LIBADD = \
+               builtin/null_code/libnullcode.la \
+               builtin/xor_codes/libXorcode.la \

diff --git a/dev-libs/liberasurecode/liberasurecode-1.6.5.ebuild 
b/dev-libs/liberasurecode/liberasurecode-1.6.5.ebuild
index 445fcb804c6d..4beb5783515b 100644
--- a/dev-libs/liberasurecode/liberasurecode-1.6.5.ebuild
+++ b/dev-libs/liberasurecode/liberasurecode-1.6.5.ebuild
@@ -23,6 +23,10 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.6.5-no-werror.patch
+)
+
 src_prepare() {
        default
        eautoreconf

Reply via email to