kbd fails to cross-build

Bug #872422 reported by Wookey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kbd (Ubuntu)
Fix Released
Undecided
Unassigned

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:
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuildNano

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

Tags: cross natty

Related branches

Revision history for this message
Wookey (wookey) wrote :
tags: added: cross natty
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.