On Thu, Nov 24, 2016 at 09:32:33PM +0100, Miquel van Smoorenburg wrote: > In liblockfile 1.10-1, I've rewritten debian/rules to use debhelper. Does > that fix the bug?
Partially. You replaced the install -s invocation with dh_strip and the dh_strip knows how cross works, but the ./configure invocation is left unchanged and thus still configures for the build architecture. Often enough indirecting "./configure" via "dh_auto_configure --" solves this, but liblockfile uses very old autotools that may necessitate setting CC explicitly. So maybe give the following a try (the removed options are passed by dh_auto_configure): override_dh_auto_configure: - ./configure --enable-shared --prefix=/usr \ - --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ - --with-mailgroup --mandir=/usr/share/man + dh_auto_configure -- --enable-shared --with-mailgroup If you are using sbuild from unstable or jessie-backports, you can cross build by passing e.g. --host=ppc64el to your sbuild invocation. You may also need --add-depends="libc-dev, libstdc++-dev" to work around #815172. Or you can do another upload and let me try again. Helmut