You have been subscribed to a public bug:

Binary package hint: libglib2.0-dev

Hi,

I compared:
http://packages.ubuntu.com/maverick/i386/libglib2.0-dev/filelist
http://packages.ubuntu.com/natty/i386/libglib2.0-dev/filelist

Why you still move file:
/usr/lib/glib-2.0/include/glibconfig.h
to directories:
/usr/lib/i386-linux-gnu/glib-2.0/include/
/usr/lib/x86_64-linux-gnu/glib-2.0/include/
?

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_INCLUDE_DIR)"
But compilation fails...

See string #426 in /usr/share/cmake-2.8/Modules/FindGTK2.cmake
"_GTK2_FIND_INCLUDE_DIR(GTK2_GLIBCONFIG_INCLUDE_DIR glibconfig.h)"

Next I found in changelog file that glibconfig.h was moved in glib2.0 version 
2.25.12-2 in Debian Experimental
http://changelogs.ubuntu.com/changelogs/pool/main/g/glib2.0/glib2.0_2.28.5-0ubuntu1/changelog
http://packages.debian.org/changelogs/pool/main/g/glib2.0/current/changelog.html
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://packages.debian.org/sid/libglib2.0-dev
http://packages.debian.org/sid/i386/libglib2.0-dev/filelist

Temporary I solved this problem in our project with following patch:
--- a/cmake/FindGTK2.cmake
+++ b/cmake/FindGTK2.cmake
@@ -185,6 +185,10 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr)

     find_path(${_var} ${_hdr}
         PATHS
+            # fix for Ubuntu >= 11.04 (Natty Narwhal)
+            /usr/lib/i386-linux-gnu/
+            /usr/lib/x86_64-linux-gnu/
+            # end fix for Ubuntu >= 11.04 (Natty Narwhal)
             /usr/local/lib64
             /usr/local/lib
             /usr/lib64

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

** Affects: glib2.0 (Ubuntu)
     Importance: Medium
         Status: Triaged

-- 
Problem with cmake module FindGTK2.cmake in Ubuntu >= 11.04 (Natty Narwhal)
https://bugs.launchpad.net/bugs/751940
You received this bug notification because you are a member of Ubuntu Desktop 
Bugs, which is subscribed to glib2.0 in Ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to