Package: quickfix
Version: 1.13.3+dfsg-8
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu  ubuntu-patch

Dear Maintainer,

The current method of manually copying config.{sub,guess} doesn't appear to
work properly.

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

    - Use autotools-dev dh helper instead of manually copying
      config.{sub,guess} to fix FTBFS on arm64.

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-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 -Nru quickfix-1.13.3+dfsg/debian/rules quickfix-1.13.3+dfsg/debian/rules
--- quickfix-1.13.3+dfsg/debian/rules	2014-03-31 10:03:15.000000000 -0400
+++ quickfix-1.13.3+dfsg/debian/rules	2014-04-09 13:24:16.000000000 -0400
@@ -55,13 +55,8 @@
 configure: configure-stamp
 configure-stamp: $(QUILT_STAMPFN)
 	dh_testdir
+	dh_autotools-dev_updateconfig
 	# 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
 	libtoolize
 	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CC="$(CC)" CXX="$(CXX)" --with-mysql=/usr --enable-new-allocator --with-postgresql=/usr --with-boost=/usr/include/boost $(shell $(dpkg_buildflags) --export=configure)
 	touch configure-stamp
@@ -81,8 +76,8 @@
 	dh_testroot
 	rm -f build-stamp 
 	[ ! -f Makefile ] || $(MAKE) distclean
-	rm -f config.sub config.guess
 	-rmdir $(CURDIR)/lib
+	dh_autotools-dev_restoreconfig
 	dh_clean 
 
 install: build

Reply via email to