Hi, 2011/1/22 Roger Leigh <rle...@codelibre.net>:
> I've attached a patch (against sbuild git master, also on the > cross-build branch of git://git.debian.org/users/rleigh/sbuild.git) > which adds --host and --build options and then uses the correct > host or build arch in the appropriate places. While I've tested > everything still works fine for normal non-cross builds, this will > need testing for cross builds to make sure I've not got the > host/build arch mixed up in any places (since I will not have > picked any error up when they are both the same). Thanks, that was quick... From a quick glance, the package is missing automake (and autotools-dev) build dependency. It also fails to run bootstrap code... make: *** No rule to make target `configure', needed by `debian/build/config.status'. Stop. dpkg-buildpackage: error: debian/rules build gave error exit status 2 Maybe a configure: ./bootstrap was forgotten on the debian/rules file? Once it is built and installed, zumbi@cat:~$ sudo sbuild -d sid_amd64 hello_2.6-1 Argument "amd64" isn't numeric in numeric ne (!=) at /usr/share/perl5/Sbuild/Build.pm line 1809. sbuild (Debian sbuild) 0.60.9 (22 Jan 2011) on cat.emdebian.org Argument "amd64" isn't numeric in numeric ne (!=) at /usr/share/perl5/Sbuild/Build.pm line 1809. sbuild (Debian sbuild) 0.60.9 (22 Jan 2011) on cat.emdebian.org ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â hello 2.6-1 (amd64) 22 Jan 2011 23:11 â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Package: hello Version: 2.6-1 Source Version: 2.6-1 Architecture: amd64 Host Architecture: amd64 Build Architecture: amd64 [...] Checking correctness of dependencies... Cannot open /srv/chroot/sid_amd64/etc/lsb-release: No such file or directory ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â Install hello build dependencies (internal resolver) â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Cannot open /srv/chroot/sid_amd64/etc/lsb-release: No such file or directory Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6.1-dev | libc-dev, libc6-dev-sparc64, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5) Checking for already installed dependencies... Use of uninitialized value $ver in hash element at /usr/share/perl5/Sbuild/InternalResolver.pm line 558, <$pipe> line 7. Use of uninitialized value $ver in hash element at /usr/share/perl5/Sbuild/InternalResolver.pm line 560, <$pipe> line 7. Use of uninitialized value $ver in hash element at /usr/share/perl5/Sbuild/InternalResolver.pm line 558, <$pipe> line 8. Use of uninitialized value $ver in hash element at /usr/share/perl5/Sbuild/InternalResolver.pm line 558, <$pipe> line 8. Can't use an undefined value as an ARRAY reference at /usr/share/perl5/Sbuild/InternalResolver.pm line 571. When trying --host and --build options I get: zumbi@cat:~$ sudo sbuild -d sid_amd64 --host=armel --build=amd64 hello_2.6-1 Argument "amd64" isn't numeric in numeric ne (!=) at /usr/share/perl5/Sbuild/Build.pm line 1809. Argument "amd64" isn't numeric in numeric ne (!=) at /usr/share/perl5/Sbuild/Build.pm line 1809. sbuild (Debian sbuild) 0.60.9 (22 Jan 2011) on cat.emdebian.org ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â hello 2.6-1 (amd64) 22 Jan 2011 23:12 â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ age: hello Version: 2.6-1 Source Version: 2.6-1 Architecture: amd64 Host Architecture: armel Build Architecture: amd64 Requested host architecture (armel) and chroot architecture (amd64) do not match. Skipping build. --------------------------------- zumbi@cat:~$ sudo sbuild -d sid_amd64 --host=amd64 --build=armel hello_2.6-1 Argument "armel" isn't numeric in numeric ne (!=) at /usr/share/perl5/Sbuild/Build.pm line 1809. Argument "armel" isn't numeric in numeric ne (!=) at /usr/share/perl5/Sbuild/Build.pm line 1809. sbuild (Debian sbuild) 0.60.9 (22 Jan 2011) on cat.emdebian.org ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â hello 2.6-1 (armel) 22 Jan 2011 23:13 â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Package: hello Version: 2.6-1 Source Version: 2.6-1 Architecture: armel Host Architecture: amd64 Build Architecture: armel [...] Checking correctness of dependencies... Cannot open /srv/chroot/sid_amd64/etc/lsb-release: No such file or directory ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â Install hello build dependencies (internal resolver) â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6.1-dev | libc-dev, libc6-dev-sparc64, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5) Checking for already installed dependencies... Use of uninitialized value $ver in hash element at /usr/share/perl5/Sbuild/InternalResolver.pm line 558, <$pipe> line 7. Use of uninitialized value $ver in hash element at /usr/share/perl5/Sbuild/InternalResolver.pm line 560, <$pipe> line 7. Use of uninitialized value $ver in hash element at /usr/share/perl5/Sbuild/InternalResolver.pm line 558, <$pipe> line 8. Use of uninitialized value $ver in hash element at /usr/share/perl5/Sbuild/InternalResolver.pm line 558, <$pipe> line 8. Can't use an undefined value as an ARRAY reference at /usr/share/perl5/Sbuild/InternalResolver.pm line 571. Notice I am using an already existing chroot handmade created, not by using sbuild-create. Best regards, -- Héctor Orón "Our Sun unleashes tremendous flares expelling hot gas into the Solar System, which one day will disconnect us." -- Day DVB-T stop working nicely Video flare: http://antwrp.gsfc.nasa.gov/apod/ap100510.html