Uses wrong pkg-config for dbus test when cross-building [SRU]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
consolekit (Debian) |
Fix Released
|
Unknown
|
|||
consolekit (Ubuntu) |
Incomplete
|
High
|
Unassigned | ||
Precise |
Won't Fix
|
High
|
Unassigned | ||
Quantal |
Won't Fix
|
High
|
Unassigned |
Bug Description
[Problem]
consolekit fails to cross-build due to trying use wrong-arch 'pkg-config' during configure.
[Impact]
The impact is only on those cross-building, but one target for the precise release was to have as much of the base system cross-buildable as possible. consolekit is a base system package so it's important to be able to cross-build it.
[Development Fix]
Upstream git has fixed this problem by removing the check in question entirely. See http://
But that version has not yet been released. I don't know if other changes are needed first before simply getting rid of it.
[Stable Fix]
The minimal fix is simply to use $PKG_CONFIG as set-up by autoconf instead of hard-coded 'pkg-config', then tha correct version is used for both native and cross builds.
[Test Case]
1. apt-get source consolekit
2. apt-get -a armel build-dep consolekit
3. cd consolekit-0.4.5
4. CONFIG_
Broken Behavior: build will stop after a while saying:
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
Error: Couldn't determine the version of your DBUS package.
This is probably an error in this script, please report it
along with the following information:
Base DBUS version =''
DBUS_
DBUS_
DBUS_
(and then print out the whole of config.log)
Fixed Behavior: build will get past this point, saying:
Your dbus version is 1,4,18.
It will stop a bit further on with "/bin/bash: /usr/bin/
[Regression Potential]
The only thing that could go wrong is breaking the native build. I've tested that this works fine. You can confirm it with
1. apt-get build-dep consolekit
2. cd consolekit-0.4.5
3. dpkg-buildpackage -uc -us
that build should complete as normal.
[Original Report]
consolekit can't find dbus-1 when cross-building:
From the build log: http://
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
Error: Couldn't determine the version of your DBUS package.
This turns out to be because a local test in configure.ac used hard-coded 'pkg-config' instead of $PKG_CONFIG which autoconf has set to the correct path (/usr/bin/
(This patch is not sufficient to cross-build this package which has other issues).
tags: | added: cross |
Changed in consolekit (Debian): | |
status: | Unknown → New |
Changed in consolekit (Ubuntu Precise): | |
importance: | Undecided → High |
status: | New → Incomplete |
milestone: | none → precise-updates |
summary: |
- Uses wrong pkg-config for dbus test when cross-building + Uses wrong pkg-config for dbus test when cross-building [SRU] |
description: | updated |
tags: | added: rls-q-incoming |
tags: |
added: rls-q-notfixing removed: rls-q-incoming |
Changed in consolekit (Debian): | |
status: | New → Fix Released |
The attachment "consolekit- 0.4.5-cross- pkg-config. patch" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. 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 team 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.]