Source: libranlip Version: 1.0-4.2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libranlip successfully cross builds a package for the wrong architecture. All that a cross build affects is the Architecture field of the package. The attached patch adds the necessary --host flags and tool prefixes for performing a real cross build. Please consider appling it. Helmut
diff -u libranlip-1.0/debian/changelog libranlip-1.0/debian/changelog --- libranlip-1.0/debian/changelog +++ libranlip-1.0/debian/changelog @@ -1,3 +1,10 @@ +libranlip (1.0-4.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Cross build should not produce build architecture binaries. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 11 Jul 2018 07:16:25 +0200 + libranlip (1.0-4.2) unstable; urgency=medium * Non-maintainer upload. diff -u libranlip-1.0/debian/rules libranlip-1.0/debian/rules --- libranlip-1.0/debian/rules +++ libranlip-1.0/debian/rules @@ -2,16 +2,18 @@ # Copyright (C) 2004-2005 Anibal Monsalve Salazar <ani...@debian.org> # Copyright (c) 2005 Juan Esteban Monsalve Tobon <este...@v7w.com> -STRIP = strip --remove-section=.comment --remove-section=.note +include /usr/share/dpkg/architecture.mk + +STRIP = $(DEB_HOST_GNU_TYPE)-strip --remove-section=.comment --remove-section=.note build: $(checkdir) dh_autoreconf - ./configure --prefix=/usr --enable-shared + ./configure --prefix=/usr --enable-shared --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) $(MAKE) install prefix=$(CURDIR)/shared [ ! -f Makefile ] || $(MAKE) distclean -rm -f config.log config.cache - ./configure --prefix=/usr --enable-static + ./configure --prefix=/usr --enable-static --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) $(MAKE) install prefix=$(CURDIR)/static touch build @@ -43,7 +45,7 @@ cd debian && install -m 644 shlibs libranlip1c2/DEBIAN cd shared/lib && $(STRIP) --strip-unneeded libranlip.so.1.0.0 - cd static/lib && strip --strip-debug libranlip.a + cd static/lib && $(DEB_HOST_GNU_TYPE)-strip --strip-debug libranlip.a mv shared/lib/libranlip.so.* debian/libranlip1c2/usr/lib/ranlip mv shared/lib/libranlip.so debian/libranlip-dev/usr/lib/ranlip