Package: libnbio
Version: 0.30-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu trusty ubuntu-patch

Dear Maintainer,

For the ppc64el architecture in Ubuntu, since this package uses libtool, a full
autoreconf is necessary instead of just config.{sub,guess} updates with
autotools-dev. This is because we need new libtool macros for ppc64el.

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

  * Use dh-autoreconf instead of autotools-dev to also fix FTBFS on ppc64el by
    getting new libtool macros (still updates config.{sub,guess}).
  * Use automake's "foreign" option to fix FTBFS while autoreconfing.

Thanks for considering the patch.

Logan Rosen



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

Kernel: Linux 3.13.0-1-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 libnbio-0.30/debian/rules libnbio-0.30/debian/rules
--- libnbio-0.30/debian/rules
+++ libnbio-0.30/debian/rules
@@ -35,6 +35,7 @@
 
 config.status: configure
 	dh_testdir
+	dh_autoreconf
 	# Add here commands to configure the package.
 	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
@@ -55,13 +56,7 @@
 
 	# Add here commands to clean up after the build process.
 	[ ! -f Makefile ] || $(MAKE) distclean
-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_autoreconf_clean
 	dh_clean 
 
 install: build
diff -u libnbio-0.30/debian/control libnbio-0.30/debian/control
--- libnbio-0.30/debian/control
+++ libnbio-0.30/debian/control
@@ -2,7 +2,7 @@
 Priority: optional
 Section: net
 Maintainer: Eric Warmenhoven <[email protected]>
-Build-Depends: debhelper (>= 4.0.0), autotools-dev
+Build-Depends: debhelper (>= 4.0.0), dh-autoreconf
 Standards-Version: 3.7.3
 
 Package: libnbio-dev
only in patch2:
unchanged:
--- libnbio-0.30.orig/configure.ac
+++ libnbio-0.30/configure.ac
@@ -1,5 +1,6 @@
-AC_INIT(src/libnbio.c)
-AM_INIT_AUTOMAKE(libnbio, 0.30)
+AC_INIT([libnbio], [0.30])
+AC_CONFIG_SRCDIR([src/libnbio.c])
+AM_INIT_AUTOMAKE([foreign])
 AM_CONFIG_HEADER(include/config.h)
 
 AM_MAINTAINER_MODE

Reply via email to