[buildd-tools-devel] Bug#567656: Sbuild::DB::Client: Uses host architecture leading to incorrect --arch

Roger Leigh rleigh at debian.org
Sat Jan 30 15:01:31 UTC 2010


Package: libsbuild-perl
Version: 0.59.1-1
Severity: important

When invoking wanna-build, the --arch option is taken from
'BUILT_ARCHITECTURE' rather than the chroot architecture used
for the build.  When giving back package, the arch will be
incorrect if the host and chroot architectures differ.

In Sbuild::DB::ClientConf, BUILT_ARCHITECTURE does not match
the naming conventions used by the other configuration options.
Please rename BUILT_ARCHITECTURE to WANNA_BUILD_ARCHITECTURE
to match this.  When running sbuild, this option is never set
except for defaulting to the host architecture.

In order to correctly set the architecture when invoked by
sbuild, please call
  $db->set_conf('WANNA_BUILD_ARCHITECTURE', $build->get('Arch'))
to ensure that it's using the correct arch.  You might need
to update buildd's use of Sbuild::DB::Client as well (but its
separate use of BUILT_ARCHITECTURE can remain as is).


Regards,
Roger

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.31.3-bytemark-kvm-2009-10-19
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Buildd-tools-devel mailing list