diff -Nru libtar-1.2.20/debian/changelog libtar-1.2.20/debian/changelog --- libtar-1.2.20/debian/changelog 2016-08-01 20:52:52.000000000 +0000 +++ libtar-1.2.20/debian/changelog 2016-10-11 21:12:49.000000000 +0000 @@ -1,3 +1,14 @@ +libtar (1.2.20-7) unstable; urgency=low + + * no_strip.patch: make install must not strip binaries; it breaks cross + compilation and is against policy with regard to build options. + * Pass --build and --host to configure as appropriate to enable cross + compilation (Closes: #839883). + * Change Homepage to http://repo.or.cz/w/libtar.git since www.feep.net + is gone. + + -- Magnus Holmgren Tue, 11 Oct 2016 23:12:49 +0200 + libtar (1.2.20-6) unstable; urgency=low * Drop libtar/Makefile from examples, since it makes the build diff -Nru libtar-1.2.20/debian/control libtar-1.2.20/debian/control --- libtar-1.2.20/debian/control 2016-08-01 20:52:52.000000000 +0000 +++ libtar-1.2.20/debian/control 2016-10-11 21:12:49.000000000 +0000 @@ -5,7 +5,7 @@ Build-Depends: dpkg-dev (>= 1.15.7), debhelper (>= 7), dh-autoreconf, autoconf, libtool Standards-Version: 3.9.8 -Homepage: http://www.feep.net/libtar/ +Homepage: http://repo.or.cz/w/libtar.git Vcs-Browser: http://svn.kibibyte.se/libtar Vcs-Svn: svn://svn.kibibyte.se/libtar/trunk diff -Nru libtar-1.2.20/debian/patches/no_strip.patch libtar-1.2.20/debian/patches/no_strip.patch --- libtar-1.2.20/debian/patches/no_strip.patch 1970-01-01 00:00:00.000000000 +0000 +++ libtar-1.2.20/debian/patches/no_strip.patch 2016-10-11 21:02:16.000000000 +0000 @@ -0,0 +1,24 @@ +Description: make install must not strip binaries + +--- a/lib/Makefile.in ++++ b/lib/Makefile.in +@@ -20,7 +20,7 @@ SHELL = @SHELL@ + + ### Installation programs and flags + INSTALL = @INSTALL@ +-INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ + INSTALL_DATA = @INSTALL_DATA@ + LN_S = @LN_S@ + MKDIR = @MKDIR@ +--- a/libtar/Makefile.in ++++ b/libtar/Makefile.in +@@ -20,7 +20,7 @@ SHELL = @SHELL@ + + ### Installation programs and flags + INSTALL = @INSTALL@ +-INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ + INSTALL_DATA = @INSTALL_DATA@ + LN_S = @LN_S@ + MKDIR = @MKDIR@ diff -Nru libtar-1.2.20/debian/patches/series libtar-1.2.20/debian/patches/series --- libtar-1.2.20/debian/patches/series 2016-03-25 18:11:06.000000000 +0000 +++ libtar-1.2.20/debian/patches/series 2016-10-11 20:01:03.000000000 +0000 @@ -4,3 +4,4 @@ th_get_size-unsigned-int.patch oldgnu_prefix.patch testsuite.patch +no_strip.patch diff -Nru libtar-1.2.20/debian/rules libtar-1.2.20/debian/rules --- libtar-1.2.20/debian/rules 2016-03-25 18:12:00.000000000 +0000 +++ libtar-1.2.20/debian/rules 2016-10-11 21:02:41.000000000 +0000 @@ -1,12 +1,19 @@ #!/usr/bin/make -f export LIBTOOLIZE = libtoolize --install +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +buildflags = --build=$(DEB_BUILD_GNU_TYPE) +ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + buildflags += --host=$(DEB_HOST_GNU_TYPE) +endif configure: configure-stamp configure-stamp: dh_testdir [ -f debian/autoreconf.before ] || dh_autoreconf - ./configure \ + ./configure $(buildflags) \ --prefix=/usr \ --without-zlib \ --mandir=\$${prefix}/share/man \