[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dpkg-deb 1.14.9 breaks ALL cross building



Just a warning for everyone : dpkg 1.14.9 is borked.

 dpkg                          1.14.9
 dpkg-dev                      1.14.9

Try with a simple, really quick package that has just been patched to
cross-build successfully with emdebian-tools :

$ apt-get source hostname
$ cd hostname-2.94/
# comment out dh_shlibdeps to allow the build to complete
# (awaiting fix for #439979)

$ dpkg-buildpackage -aarm

dpkg-buildpackage: source package hostname
dpkg-buildpackage: source version 2.94em1
dpkg-buildpackage: source changed by Neil Williams <codehelp@debian.org>
dpkg-architecture: warning: Specified GNU system type arm-linux-gnu does
not match gcc system type x86_64-linux-gnu.
dpkg-buildpackage: host architecture arm
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Cleaning package
/usr/bin/make clean
make[1]: Entering directory
`/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94'
rm -f hostname.o hostname dnsdomainname
make[1]: Leaving directory
`/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94'
dh_clean
 dpkg-source -b hostname-2.94
dpkg-source: warning: source directory './hostname-2.94' is not
<sourcepackage>-<upstreamversion> 'hostname-2.94em1'
dpkg-source: building hostname in hostname_2.94em1.tar.gz
dpkg-source: building hostname in hostname_2.94em1.dsc
 debian/rules build
dh_testdir
# Building package
CFLAGS="-Wall -g -O2" /usr/bin/make CC=arm-linux-gnu-gcc
make[1]: Entering directory
`/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94'
arm-linux-gnu-gcc -O2 -Wall   -c -o hostname.o hostname.c
arm-linux-gnu-gcc -O2 -Wall -o hostname hostname.o
ln -fs hostname dnsdomainname
make[1]: Leaving directory
`/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94'
touch build-stamp
 fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Installing package
/usr/bin/make install
BASEDIR=/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94/debian/hostname
CC=arm-linux-gnu-gcc
make[1]: Entering directory
`/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94'
install -d
/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94/debian/hostname/usr/share/man/man1
install -o root -g root -m 0644 hostname.1
/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94/debian/hostname/usr/share/man/man1
ln -fs hostname.1
/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94/debian/hostname/usr/share/man/man1/dnsdomainname.1
install -d
/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94/debian/hostname/bin
install -o root -g root -m 0755 hostname
/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94/debian/hostname/bin
ln -f hostname
/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94/debian/hostname/bin/dnsdomainname
make[1]: Leaving directory
`/opt/emdebian/trunk/h/hostname/trunk/hostname-2.94'
dh_testdir
dh_testroot
rm -f -r debian/hostname/usr/share/man/
dh_install
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: building package `hostname' in `../hostname_2.94em1_amd64.deb'.
 signfile hostname_2.94em1.dsc
gpg: skipped "Neil Williams <codehelp@debian.org>": secret key not available
gpg: [stdin]: clearsign failed: secret key not available

 dpkg-genchanges  >../hostname_2.94em1_arm.changes
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: full upload; Debian-native package (full source is
included)


Note:
dpkg-deb: building package `hostname' in `../hostname_2.94em1_amd64.deb'.

 dpkg-genchanges  >../hostname_2.94em1_arm.changes

The build clearly uses arm-linux-gnu-gcc, it builds an arm package
containing arm binaries (checked with 'file'), it creates an arm
.changes file but dpkg-deb gives me an amd64 suffix!!!

AFAICT the built package is fine - almost to the point where it could
simply be renamed and a new .changes file generated but I'm currently
digging through the dpkg-deb codebase to find out what has gone wrong.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/



Attachment: signature.asc
Description: PGP signature

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: