Bug#635763: pbuilder-satisfy-depends's use of dpkg-architecture

Ian Jackson ijackson at chiark.greenend.org.uk
Thu Jul 28 15:41:53 UTC 2011


Package: pbuilder
Version: 0.199+nmu1
Severity: wishlist

If pbuilder-satisfydepends replaced calls to
   dpkg-architecture -qDEB_HOST_ARCH
with calls to
   dpkg --print-architecture
then it would be useable for the installation of the dependencies of
binary packages, and similar dependency strings, even when dpkg-source
is not installed.

In my current application, which needs this, I pass a script to
--internal-chrootexec which has a special case like this:

  if [ $# = 2 ] && [ "x$1" = xdpkg-architecture ] && [ "x$2" = x-qDEB_HOST_ARCH ]; then
          set -- dpkg --print-architecture
  fi

which is pretty ugly :-).

Thanks,
Ian.

liberator:pbuilder-0.200> grep dpkg-architecture pbuilder-satisfydepends-*
pbuilder-satisfydepends-aptitude:    local ARCH=$($CHROOTEXEC dpkg-architecture -qDEB_HOST_ARCH)
pbuilder-satisfydepends-classic:    local ARCH=$($CHROOTEXEC dpkg-architecture -qDEB_HOST_ARCH)
pbuilder-satisfydepends-experimental:    local ARCH=$($CHROOTEXEC dpkg-architecture -qDEB_HOST_ARCH)
pbuilder-satisfydepends-funcs:    # Use 'dpkg-architecture' to support architecture wildcards.
pbuilder-satisfydepends-funcs:            if dpkg-architecture -a$ARCH -i$d; then
pbuilder-satisfydepends-funcs:            if dpkg-architecture -a$ARCH -i$d; then
liberator:pbuilder-0.200>





More information about the Pbuilder-maint mailing list