Source: elfutils
Version: 0.170-0.1
Severity: wishlist
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

elfutils upstream enables -Werror for compilation by default. This has
caused FTBFS with gcc-6 and gcc-7 and is going to cause FTBFS with gcc-8
soon. Using -Werror is good if those issues are fixed proactively.
However that is not the case with elfutils. Instead, the package needs
to be NMUed. In the mean time, this hurts architecture bootstrap (which
sometimes has to use unreleased compilers) and other users who try to
build elfutils. Thus I think that the Debian packaging should disable
-Werror. I still recommend doing maintainer builds with -Werror, but
please save everyone else from the fallout.

Helmut
Index: elfutils-0.170/config/eu.am
===================================================================
--- elfutils-0.170.orig/config/eu.am
+++ elfutils-0.170/config/eu.am
@@ -71,7 +71,6 @@
 	    -Wold-style-definition -Wstrict-prototypes \
 	    $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
 	    $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
-	    $(if $($(*F)_no_Werror),,-Werror) \
 	    $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
 	    $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
 	    $($(*F)_CFLAGS)

Reply via email to