Bug#516625: pbuilder: pdebuild signs wrong .changes when building with --arch=i386 on amd64

Marco Schmalz marco.schmalz at dreamlab.net
Mon Oct 12 16:48:19 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A expensive solution would be to use cowbuilder's --execute command to
list the architecture inside the chroot

  ARCHITECTURE=$(${PBUILDERROOTCMD} ${PDEBUILD_PBUILDER} --execute \
                 /usr/bin/dpkg-architecture $@ 2> /dev/null | \
                 grep DEB_HOST_ARCH= | \
                 sed 's/DEB_HOST_ARCH=//')

instead of doing

  ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH)

A lighter solution could be to use ARCH environment variable which gets
 "unofficially" parsed by cowbuilder (see parameter.c).

  if [ -z "$ARCH" ] ; then
      ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH)
  else
      ARCHITECTURE="$ARCH"
  fi

But it is difficult to say which one is less painful, though ...

Cheers
Marco
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrTXc0ACgkQf+jKN0MLAk4SfgCg0Orb+gq96MUQJ1FW0CEGKWdc
KfEAnR+xyn9nNbipZmwcEkLgYoh0yf4I
=zvcW
-----END PGP SIGNATURE-----





More information about the Pbuilder-maint mailing list