kbd fails to cross-build

Bug #872422 reported by Wookey on 2011-10-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kbd (Ubuntu)

Bug Description

kdb fails to cross-build.

The build command is:
xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild kbd

The actual build command xdeb issues is:
debuild --no-lintian -eUSER -eCONFIG_SITE=/etc/dpkg-cross/cross-config.armel -eDEB_BUILD_OPTIONS=nocheck -eGTEST_INCLUDEDIR=/usr/arm-linux-gnueabi/include -eGTEST_LIBDIR=/usr/arm-linux-gnueabi/lib -ePKG_CONFIG_LIBDIR=/usr/arm-linux-gnueabi/lib/pkgconfig:/usr/arm-linux-gnueabi/share/pkgconfig:/usr/share/pkgconfig -eDH_VERBOSE=1 -aarmel -b -uc -us -tc

To easily reproduce the build environment in which this bug was discovered follow the HOWTO here:

The build uses the wrong (build-arch) compiler, and thus fails with a strip error when packaging at the end:

dh binary-arch --after dh_installdocs
   dh_strip -a
 arm-linux-gnueabi-strip --remove-section=.comment --remove-section=.note debian/kbd/usr/bin/splitfont
arm-linux-gnueabi-strip:debian/kbd/usr/bin/splitfont: File format not recognized

Related branches

Wookey (wookey) wrote :
tags: added: cross natty
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kbd - 1.15.2-3ubuntu4

kbd (1.15.2-3ubuntu4) precise; urgency=low

  * Fix cross-building (LP: #872422):
    - Use dh_auto_configure.
    - Pass CC=$(DEB_HOST_GNU_TYPE)-gcc when cross-building contrib.
 -- Colin Watson <email address hidden> Sat, 31 Mar 2012 21:54:20 +0100

Changed in kbd (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments