Cross compilation fails due to pkg-config

Bug #877673 reported by Ben Gamari
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ncurses (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Attempting to cross-compile ncurses with xdeb results in failure when attempting to install pkg-config files. This is because autotools inferred that PKG_CONFIG_LIBDIR=/usr/$(HOST_GNU_TYPE)/lib/pkgconfig, which does not exist when configure is run. This results in configure disabling generation of pkgconfig's .pc files (which would have been put in the wrong location even if they had been generated).

The solution as far as I can see is to export PKG_CONFIG_LIBDIR in debian/rules and ensure that this directory exists when configure is invoked. A patch to accomplish this is attached.

Tags: patch cross
Revision history for this message
Ben Gamari (bgamari) wrote :
Revision history for this message
Ben Gamari (bgamari) wrote :

Patch against ncurses 5.9-1ubuntu5.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch to set PKG_CONFIG_LIBDIR" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Colin Watson (cjwatson) wrote :

This doesn't seem to be a problem any more with multiarch cross-building (https://wiki.ubuntu.com/CrossBuilding), which has dropped the old-style dpkg-cross-ish PKG_CONFIG_LIBDIR handling:

  http://people.canonical.com/~cjwatson/cross/armhf/raring/ncurses_5.9-10ubuntu2_armhf-20121206-2259

Would you object to considering this closed? It's a different build system, but (as the author) I consider xdeb a dead-end experiment at this point; it served its purpose, and its ordering heuristics may still be useful, but multiarch cross-building is a more future-proof approach.

tags: added: cross
Changed in ncurses (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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