Source: snappy
Version: 1.1.2-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: autoreconf
User: [email protected]
Usertags: ppc64el

Dear Maintainer,

The package snappy fails to build from source on ppc64el.
Adding the usage of dh-autoreconf to the build fixes that for ppc64el
and other new architectures as well, since it updates configuration
files needed to compile the package.

The patch attached adds autoreconf to debian/rules and the necessary
build-dep on dh-autoreconf.

Thanks
Fernando


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13-1-powerpc64le (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u snappy-1.1.2/debian/control snappy-1.1.2/debian/control
--- snappy-1.1.2/debian/control
+++ snappy-1.1.2/debian/control
@@ -1,7 +1,7 @@
 Source: snappy
 Priority: extra
 Maintainer: Steinar H. Gunderson <[email protected]>
-Build-Depends: debhelper (>= 7), autotools-dev, dpkg-dev (>= 1.16.1~)
+Build-Depends: debhelper (>= 7), dh-autoreconf, dpkg-dev (>= 1.16.1~)
 Standards-Version: 3.9.5
 Section: libs
 Homepage: http://code.google.com/p/snappy/
diff -u snappy-1.1.2/debian/rules snappy-1.1.2/debian/rules
--- snappy-1.1.2/debian/rules
+++ snappy-1.1.2/debian/rules
@@ -22,12 +22,7 @@
 build: 
 	dh_testdir
 	dh_prep
-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
 	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 	$(MAKE)
 ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
@@ -39,7 +34,7 @@
 	dh_testroot
 	rm -f build-stamp 
 	[ ! -f Makefile ] || $(MAKE) distclean
-	rm -f config.sub config.guess
+	dh_autoreconf_clean
 	dh_clean 

Reply via email to