Your message dated Wed, 30 May 2012 23:05:20 +0000
with message-id <[email protected]>
and subject line Bug#610689: fixed in sbuild 0.63.0-1
has caused the Debian Bug report #610689,
regarding sbuild: cross support
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
610689: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610689
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.60.8-1
Severity: wishlist
Hello,
I would love sbuild to gain the ability to handle cross builds. What is a
cross build? Well, it is a way to generate a binary which it is meant to run on
a foreign architecture. For cross builds you need cross tools, which are not
yet in Debian archive, but those are available via emdebian.org repositories.
So basically, you need to add
deb http://emdebian.org squeeze main
into your sources.list, update and install, for example,
linux-libc-dev-armel-cross, libc6-dev-armel-cross, gcc-4.3-arm-linux-gnueabi, ..
Once you got the cross toolchain in place, you can try to cross compile hello
application passing -a$arch option to dpkg-buildpackage and the package must
support cross building, usually by adding a three liner [0] to the package
build system file.
(sid_amd64)zumbi@cat:/tmp/hello-2.6$ dpkg-buildpackage -us -uc -rfakeroot
-aarmel
[...]
chown -R root:root debian/tmp
chmod -R u+w,go=rX debian/tmp
dpkg --build debian/tmp ..
dpkg-deb: building package `hello' in `../hello_2.6-1_armel.deb'.
dpkg-genchanges >../hello_2.6-1_armel.changes
dpkg-genchanges: including full source code in upload
dpkg-source --after-build hello-2.6
dpkg-buildpackage: full upload (original source is included)
When trying sbuild to do it for me,
$ sudo sbuild -d sid_amd64 --debbuildopt="-aarmel" hello_2.6-1
[...]
chmod -R u+w,go=rX debian/tmp
dpkg --build debian/tmp ..
dpkg-deb: building package `hello' in `../hello_2.6-1_armel.deb'.
dpkg-genchanges -B >../hello_2.6-1_armel.changes
dpkg-genchanges: arch-specific upload - not including arch-independent packages
dpkg-genchanges: binary-only upload - not including any source code
dpkg-source --after-build hello-2.6
dpkg-buildpackage: binary only upload (no source included)
Build finished at 20110121-1105
Can't find hello_2.6-1_amd64.changes -- can't dump info
Package contents
Finished
Built successfully
Purging /srv/chroot/sid_amd64/build/root-hello_2.6-1-amd64-D9WaOO
Finished at 20110121-1105
Build needed 00:00:12, 4812k disc space
Sbuild builds the package but it is unable to take it out of the chroot,
because it is unable to find the right changes file for the right architecture.
"Can't find hello_2.6-1_amd64.changes -- can't dump info"
Doing a $nasty hack on Build.pm we are able to follow *_armel.changes file.
$ sudo vi /usr/share/perl5/Sbuild/Build.pm +1944
# Figure out chroot architecture
sub chroot_arch {
my $self = shift;
my $nasty = "armel";
^^^^^
my $pipe = $self->get('Session')->pipe_command(
{ COMMAND => [$self->get_conf('DPKG'),
'--print-architecture'],
USER => $self->get_conf('USERNAME'),
CHROOT => 1,
PRIORITY => 0,
DIR => '/' }) || return undef;
chomp(my $chroot_arch = <$pipe>);
close($pipe);
die "Can't determine architecture of chroot: $!\n"
if ($? || !defined($chroot_arch));
return $nasty;
^^^^^
# return $chroot_arch;
}
It seems that sbuild triggers dpkg --print-architecture to find out chroot
architecture, but when doing cross it should try to follow dpkg-architecture's
DEB_HOST_ARCH.
Would it be possible to modify Build.pm in some way, either calling
dpkg-architecture or autodetecting -a$arch has been passed and it should follow
other architecture changes file?
Have a very nice day!
[0] http://wiki.debian.org/EmdebianGuide#Addingcross-builddetection
Best regards,
--
Héctor Orón
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (700, 'unstable'), (600, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages sbuild depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii libsbuild-perl 0.60.8-1 Tool for building Debian binary pa
ii perl 5.10.1-17 Larry Wall's Practical Extraction
ii perl-modules 5.10.1-17 Core Perl modules
Versions of packages sbuild recommends:
ii debootstrap 1.0.26 Bootstrap a basic Debian system
ii fakeroot 1.14.5-1 Gives a fake root environment
Versions of packages sbuild suggests:
pn deborphan <none> (no description available)
ii wget 1.12-2.1 retrieves files from the web
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.63.0-1
We believe that the bug you reported is fixed in the latest version of
sbuild, which is due to be installed in the Debian FTP archive:
buildd_0.63.0-1_all.deb
to main/s/sbuild/buildd_0.63.0-1_all.deb
libsbuild-perl_0.63.0-1_all.deb
to main/s/sbuild/libsbuild-perl_0.63.0-1_all.deb
sbuild_0.63.0-1.diff.gz
to main/s/sbuild/sbuild_0.63.0-1.diff.gz
sbuild_0.63.0-1.dsc
to main/s/sbuild/sbuild_0.63.0-1.dsc
sbuild_0.63.0-1_all.deb
to main/s/sbuild/sbuild_0.63.0-1_all.deb
sbuild_0.63.0.orig.tar.gz
to main/s/sbuild/sbuild_0.63.0.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Roger Leigh <[email protected]> (supplier of updated sbuild package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 30 May 2012 22:49:18 +0100
Source: sbuild
Binary: libsbuild-perl sbuild buildd
Architecture: source all
Version: 0.63.0-1
Distribution: unstable
Urgency: low
Maintainer: Debian buildd-tools Developers
<[email protected]>
Changed-By: Roger Leigh <[email protected]>
Description:
buildd - Daemon for automatically building Debian binary packages from Deb
libsbuild-perl - Tool for building Debian binary packages from Debian sources
sbuild - Tool for building Debian binary packages from Debian sources
Closes: 610689 622788
Changes:
sbuild (0.63.0-1) unstable; urgency=low
.
[ Wookey ]
* Support for cross-compiling has been added. This includes the
addition of $host and $build configuration variables, with
corresponding --host and --build command-line options. This
includes the addition of a new 'xapt' dependency resolver.
- Merge cross-build support (thanks to Hector Oron,
Closes: #610689).
- Add multiarch cross-build support.
.
[ Roger Leigh ]
* The deprecated 'internal' dependency resolver has been removed,
along with the configuration variables $apt_policy,
$check_depends_algorithm and $resolve_virtual, and the
command-line option --check-depends-algorithm. The 'apt'
resolver is the default replacement for 'internal'.
(Closes: #622788)
* Support for watches has been removed. The configuration
variables $check_watches, $ignore_watches_no_build_deps and
$watches (and obsolete variables @ignore_watches_no_build_deps
and %watches) have also been removed.
* sbuild-stats and support for build time and space statistics
recording has been removed. These statistics are recorded in
both the build log and are available as build metadata
internally. The statistics recorded in the database were not
particularly informative; storing the statistics in a proper
relational database is recommended. The configuration variables
$avg_time_db and $avg_space_db have been removed.
* Drop 25nssdatabases schroot setup script used on compatibility
mode (on buildds). This has been replaced by the schroot
20nssdatabases for many years.
Checksums-Sha1:
d841b2b8f4fe5b0305ec37a036c719b6cd199e1c 2114 sbuild_0.63.0-1.dsc
c3c8e8acb53a83218160cf45de60e21fc3d3624f 540501 sbuild_0.63.0.orig.tar.gz
a0fddd5458378c1bf3c10dd2f5c060d1347741ed 20 sbuild_0.63.0-1.diff.gz
2bfe154d79ab0b77ed7903faa0dce68af12f9c44 286956 libsbuild-perl_0.63.0-1_all.deb
e015b6fcd914a9f12a0dff760ba26e232460c3ec 301792 sbuild_0.63.0-1_all.deb
5447f18872b8880348b9179441141ee614f0f964 285918 buildd_0.63.0-1_all.deb
Checksums-Sha256:
d7c780814310c3f5528969a8967aa77dad9e2a7c5ba47df45aca496ec2340408 2114
sbuild_0.63.0-1.dsc
b2c6fe02368a4f422a825a7200eab3ae2e4500708c7aa4264cbcf308a72e3282 540501
sbuild_0.63.0.orig.tar.gz
f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec 20
sbuild_0.63.0-1.diff.gz
29f463dabed9d307849fea1b04f2c44d10ab3d54919fbed2041f430f0680fc05 286956
libsbuild-perl_0.63.0-1_all.deb
648fbe7aef6bad751f775d6df83a96c10905b39610fee15f476502b979dad466 301792
sbuild_0.63.0-1_all.deb
d87fdee85abb8d7800905a12323a2566689bef174e736a51aa914a618ea844ff 285918
buildd_0.63.0-1_all.deb
Files:
80fb0f73cded3fc680b3639598efe5d7 2114 devel extra sbuild_0.63.0-1.dsc
6964c9922807747f54f55e0f0c29e406 540501 devel extra sbuild_0.63.0.orig.tar.gz
4a4dd3598707603b3f76a2378a4504aa 20 devel extra sbuild_0.63.0-1.diff.gz
7f7ea3d0735812bbecaff93ebc993bea 286956 perl extra
libsbuild-perl_0.63.0-1_all.deb
22db0f293ef830cf851503a1f70d7abf 301792 devel extra sbuild_0.63.0-1_all.deb
0b7c42da0688fde86fd062fc32ebb9f4 285918 devel extra buildd_0.63.0-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCgAGBQJPxqP3AAoJEOJSSsUKn1xZl6AQAMJWH5tBstMOSXngQuC1JSIP
yvjpvv4FHu5/R2UH9ZMh5g8vnyLITsLRab8KIC0Q6cKjM/VRSDEPi/qzmXxieyCP
nwQgFmfrcsfYM4QubqM23oYJB9FZabPC8X944vdx99vgk8UH3ijyB9s06MDs8DHX
mooxXvGBVL4YJg5g9jUWtjNUGmY4biGdghxh9DhSIMMLermkaopPDQf11MdQW2D0
QtrB+qVzIx+gcIm9zMF0BeNRqTBzjHpmcHlBwiDzmkA0i+fY+TCtLoV4+MGwHIc3
YjAzaEQq/vn3huVV/syvFYtuI52nBhzDQVO+K5c+WV7VDnhKbm9FiIjerJxmplSI
Ybur6YfAxs34hDbzAmLJhfVd9JN8RO40MjCOrg9gYcrgqNhlXUNaAWmc/lJ6sl6l
LAzuaIQex8BqDmF4K01xF4g76psp7Qroc51/5RwU55jha6eYRN4XuSdrPx8E/pW8
IUixi0qEYv6LsAT3HpC/5BPZd4WqfLNpfLsaxRHF2rVxRAf56eVlELI2wRE7588p
hvIF50bUCu5eOEcukbRps62PeysCaq7RSHuants/d94MH3OrPCqWDT+GbkHOayJi
1GmSxGezdaRV8SvG/8YIowsvwySCOpi+B52PjPNwcWcG3ZiXZh+oWNwjZCThy+k0
a1WfIMNzuAnuieqct/Ta
=3/Dn
-----END PGP SIGNATURE-----
--- End Message ---