Package: openvas-client
Version: 2.0.5-1.1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu utopic ubuntu-patch

Dear Maintainer,

The manual copying of config.{sub,guess} in debian/rules doesn't appear to
work, as there was an FTBFS for the ppc64el and arm64  architectures in Ubuntu.
Using the debhelper tool for autotools-dev worked.

In Ubuntu, the attached patch was applied to achieve the following:

  * Use dh_autotools-dev instead of manually copying config.{sub,guess} to fix
    FTBFS on arm64 and ppc64el.

Thanks for considering the patch.

Logan Rosen



-- System Information:
Debian Release: jessie/sid
  APT prefers utopic-updates
  APT policy: (500, 'utopic-updates'), (500, 'utopic-security'), (500, 
'utopic'), (100, 'utopic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13.0-24-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u openvas-client-2.0.5/debian/rules openvas-client-2.0.5/debian/rules
--- openvas-client-2.0.5/debian/rules
+++ openvas-client-2.0.5/debian/rules
@@ -25,12 +25,7 @@
 config.status: patch configure
 	dh_testdir
 	# Add here commands to configure the package.
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	cp -f /usr/share/misc/config.guess config.guess
-endif
+	dh_autotools-dev_updateconfig
 	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
 
@@ -63,9 +58,10 @@
 	-rm -f po/*gmo # Not sure if we should use 'maintainer-clean' instead..
 	-rm -f po/stamp-po
 	# Add here commands to clean up after the build process.
+	dh_autotools-dev_updateconfig
 	[ ! -f Makefile ] || $(MAKE) distclean
-	rm -f config.sub config.guess
 
+	dh_autotools-dev_restoreconfig
 	dh_clean
 
 unpatch:

Reply via email to