Source: libelf
Version: 0.8.13-5
Tags: patch
User: [email protected]
Usertags: rebootstrap

While trying to build libelf for musl-linux-any I noticed that libelf's
configure does not recognize the gnu type, because its config.guess is
outdated.  The attached patch causes it to be updated during package
build and makes the build succeed (when also forcing the broken check
for GNU gettext, see e.g. #786885).

Please consider applying the patch as it helps new architectures in
general and is a step towards actually building from source. I note that
the pregenerated configure is still not rebuilt during package build.

Helmut
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@
 Section: devel
 Priority: optional
 Maintainer: Alex Pennace <[email protected]>
-Build-Depends: gettext, debhelper (>= 5), dpkg-dev (>= 1.16)
+Build-Depends: gettext, debhelper (>= 5), dpkg-dev (>= 1.16), autotools-dev
 Standards-Version: 3.6.2.2

 Package: libelfg0
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,7 @@
 build: build-stamp
 build-stamp: 
 	dh_testdir
+	dh_autotools-dev_updateconfig
 	mv po/de.gmo po/de.gmo.orig
 	cp po/de.gmo.orig po/de.gmo
 	# --enable-compat per bug 477025
@@ -39,6 +39,7 @@
 	-make distclean
 # distclean misses w32/Makefile; kludge around it.
 	-rm -f w32/Makefile
+	dh_autotools-dev_restoreconfig
 	dh_clean build-stamp debian/libelfg0-dev.links

 debian/%.links: debian/%.links.in

Reply via email to