[buildd-tools-devel] Bug#775539: sbuild: overwrites DEB_BUILD_OPTIONS environment variable when cross-building
Vagrant Cascadian
vagrant at debian.org
Sat Jan 17 00:09:25 UTC 2015
Package: sbuild
Version: 0.65.0-1
Severity: normal
Thanks for maintaining sbuild! Very excited to have cross-build support
in sbuild and enough of a toolchain within debian to make use of it!
I tried to build u-boot for armhf in an amd64 cross-build environment using:
DEB_BUILD_OPTIONS=parallel=5 sbuild -d UNRELEASED -c sid-armhf-cross-ccache --arch=amd64 --host=armhf --build-dep-resolver=aptitude --no-source
Which seems to overwrite DEB_BUILD_OPTIONS rather than append nocheck
to DEB_BUILD_OPTIONS:
User Environment
────────────────
CONFIG_SITE=/etc/dpkg-cross/cross-config.armhf
DEB_BUILD_OPTIONS=nocheck
Specifying in ~/.sbuildrc works fine:
$build_environment = {
'DEB_BUILD_OPTIONS' => 'parallel=5'
};
User Environment
────────────────
CONFIG_SITE=/etc/dpkg-cross/cross-config.armhf
DEB_BUILD_OPTIONS=parallel=5 nocheck
I think sbuild is somehow invoking the else statement in the following code:
$ git grep -A 2 -B 4 nocheck
lib/Sbuild/Build.pm- # Add cross environment config
lib/Sbuild/Build.pm- if ($host_arch ne $build_arch) {
lib/Sbuild/Build.pm- $buildenv{'CONFIG_SITE'} = "/etc/dpkg-cross/cross-config." . $host_arch;
lib/Sbuild/Build.pm- if (defined($buildenv{'DEB_BUILD_OPTIONS'})) {
lib/Sbuild/Build.pm: $buildenv{'DEB_BUILD_OPTIONS'} .= " nocheck";
lib/Sbuild/Build.pm- } else {
lib/Sbuild/Build.pm: $buildenv{'DEB_BUILD_OPTIONS'} = "nocheck";
lib/Sbuild/Build.pm- }
lib/Sbuild/Build.pm- }
I'm not sure how exactly sbuild makes use of dpkg-cross, but it looks
like dpkg-cross may be deprecated already, so perhaps other options
will need to be explored:
https://bugs.debian.org/771496
live well,
vagrant
-- System Information:
Debian Release: 8.0
APT prefers testing
APT policy: (500, 'testing'), (120, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages sbuild depends on:
ii adduser 3.113+nmu3
ii apt-utils 1.0.9.5
ii libsbuild-perl 0.65.0-1
ii perl 5.20.1-4
ii perl-modules 5.20.1-4
Versions of packages sbuild recommends:
ii debootstrap 1.0.66
ii fakeroot 1.20.2-1
Versions of packages sbuild suggests:
pn deborphan <none>
ii wget 1.16-1
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20150116/1fa70c42/attachment.sig>
More information about the Buildd-tools-devel
mailing list