-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Jan 25, 2018 at 02:56:17PM +0100, Vincent Lefevre wrote: > To rebuild a Debian package, one can use: > > debuild -i -us -uc -b > > But how to rebuild a Debian package for a foreign architecture? > In my case for i386 from an amd64 machine. I've tried > > debuild -i -us -uc -b -a i386 > > but the build fails at some point: > > [...] > dh_strip -a > dh_strip: Compatibility levels before 9 are deprecated (level 7 in use) > dh_strip: Compatibility levels before 9 are deprecated (level 7 in use) > dh_strip: Compatibility levels before 9 are deprecated (level 7 in use) > Can't exec "i686-linux-gnu-strip": No such file or directory at > /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 358. > [...]
It seems that you are missing the '386 (or more precisely the '686) executables. Perhaps you need the package dpkg-cross. > If I need binutils-i686-linux-gnu, shouldn't dpkg-buildpackage fail > when checking the build dependencies? I'll leave that question to someone more knowledgeable. Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlpp6eoACgkQBcgs9XrR2kbzfwCfWeMl36zg2mSBoDSuj4s/yam6 /TkAniKmKJKviZoyjwvE5wEDwYXS+Ree =Z/As -----END PGP SIGNATURE-----