Problem with cmake module FindGTK2.cmake in Ubuntu >= 11.04 (Natty Narwhal)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| cmake (Ubuntu) |
Medium
|
Unassigned |
Bug Description
Binary package hint: libglib2.0-dev
Hi,
I compared:
http://
http://
Why you still move file:
/usr/lib/
to directories:
/usr/lib/
/usr/lib/
?
It is broke compilation of some programs which use cmake.
There is only warning on configuration stage:
"-- Some or all of the gtk libraries were not found. (missing: GTK2_GLIBCONFIG
But compilation fails...
See string #426 in /usr/share/
"_GTK2_
Next I found in changelog file that glibconfig.h was moved in glib2.0 version 2.25.12-2 in Debian Experimental
http://
http://
But it was long time ago...
Now this problem affects only libglib2.0-dev (2.28.5-0ubuntu1) in Ubuntu Natty.
The package libglib2.0-dev (2.28.4-1) in Debian Sid is correct:
http://
http://
Temporary I solved this problem in our project with following patch:
--- a/cmake/
+++ b/cmake/
@@ -185,6 +185,10 @@ function(
find_
PATHS
+ # fix for Ubuntu >= 11.04 (Natty Narwhal)
+ /usr/lib/
+ /usr/lib/
+ # end fix for Ubuntu >= 11.04 (Natty Narwhal)
But this is bad idea to push such patch in cmake upstream or to modify cmake-data package in Ubuntu.
So problem must be fixed in this package I think.
Regards,
Boris
Steve Langasek (vorlon) wrote : | #1 |
affects: | glib2.0 (Ubuntu) → cmake (Ubuntu) |
Changed in cmake (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
summary: |
- Problems with cmake in Ubuntu Ubuntu >= 11.04 (Natty Narwhal) + Problem with cmake in Ubuntu >= 11.04 (Natty Narwhal) |
summary: |
- Problem with cmake in Ubuntu >= 11.04 (Natty Narwhal) + Problem with cmake module FindGTK2.cmake in Ubuntu >= 11.04 (Natty + Narwhal) |
Tehnick (tehnick) wrote : | #2 |
Ok, I sent bug report to upstream:
http://
Tehnick (tehnick) wrote : | #3 |
Cmake developers explained me that problem is related with multiarch support that is being implemented in Debian and Ubuntu now.
More details: http://
Tehnick (tehnick) wrote : | #4 |
Hmm, I hastened to mark the bug as a duplicate.
Bug #737137 is marked as Fix Released but problem described by me is not solved yet in Ubuntu Natty.
Tehnick (tehnick) wrote : | #5 |
And still I don't agree with moving the bug report from glib2.0 to cmake.
Debian also has multiarch support:
http://
But it was made more carefully in Debian.
You can see duplicates of this bug to observe packages affected by this issue.
Both packages (eiskaltdcpp and sciteproj) have no problem with builds in Debian.
As I wrote above file glibconfig.h in Debian placed in /usr/lib/
http://
I inspected this file and I didn't find platform-specific code.
Package in Ubuntu Oneiric has version 2.28.6-0ubuntu1 and it differ from the 2.28.6-1 version of this package in Debian Sid:
https:/
http://
Why don't you want just to sync your package with the package in Debian?
What's the profit from this incompatibility?
affects: | cmake (Ubuntu) → glib2.0 (Ubuntu) |
Steve Langasek (vorlon) wrote : Re: [Bug 751940] Re: Problem with cmake module FindGTK2.cmake in Ubuntu >= 11.04 (Natty Narwhal) | #6 |
On Sun, Jun 05, 2011 at 01:09:01PM -0000, Tehnick wrote:
> Debian also has multiarch support:
No, it doesn't.
> http://
> But it was made more carefully in Debian.
No, it's being done in exactly the same way, merely on a different schedule
owing to differences in Debian and Ubuntu processes and release schedules.
> You can see duplicates of this bug to observe packages affected by this issue.
> Both packages (eiskaltdcpp and sciteproj) have no problem with builds in Debian.
Because multiarch is not implemented in Debian.
> As I wrote above file glibconfig.h in Debian placed in /usr/lib/
> http://
> I inspected this file and I didn't find platform-specific code.
Then you don't know what you're looking for.
#define G_GINT64_MODIFIER "l"
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://
<email address hidden> <email address hidden>
affects: | glib2.0 (Ubuntu) → cmake (Ubuntu) |
Tehnick (tehnick) wrote : | #7 |
Sorry, I was mistaken. =(
Launchpad Janitor (janitor) wrote : | #8 |
This bug was fixed in the package cmake - 2.8.4+dfsg.1-3
---------------
cmake (2.8.4+dfsg.1-3) unstable; urgency=low
* Merge 2.8.2+dfsg.
* Do not start cmake description synopsis with an article.
* Generate colour Makefiles when $TERM is set to 'screen-
Thanks to Davide Mancusi for the patch (screen-
(Closes: #627853)
* Add libxmlrpc-
in Build-Depends. libxmlrpc-c3-dev has become a transitional package.
* Bump Standards-Version to 3.9.2: no changes needed.
* Switch Vcs-* debian/control fields to anonscm.debian.org.
* Fix find_library() to find libraries in multiarch library paths (patch
multiarch_
(hackish by nature, no cross-compilation support etc.), it should do the
job in majority of cases. Also require dpkg-dev >= 1.16 at both build
time (Build-Depends) and runtime (cmake Depends) because the patch needs
dpkg-
* Make FindGTK2.cmake work with Debian multiarch
(patch multiarch_
-- Felix Geyer <email address hidden> Wed, 08 Jun 2011 23:47:14 +0000
Changed in cmake (Ubuntu): | |
status: | Triaged → Fix Released |
gregory (gregory-hainaut) wrote : | #9 |
Would be possible to backport all multiarch fix in Oneiric to Natty? It is a nighmare for project that use cmake and GTK with natty users. Thanks you very much.
Pali (pali) wrote : | #10 |
+1 for backporting to natty. Projects which use CMake and GTK should be compiled on natty without problems too!
This is a buggy assumption on the part of cmake. The standard interface that glib provides for consumers to query its library paths and cflags is pkg-config. On natty:
$ pkg-config --cflags glib-2.0 include/ glib-2. 0 -I/usr/ lib/x86_ 64-linux- gnu/glib- 2.0/include
-I/usr/
$
cmake should use pkg-config in FindGTK2.cmake. If there's a need to search additional paths, this should be done by permuting the *pkg-config* search path, using the PKG_CONFIG_PATH env var.