[Bug 751940] Re: Problem with cmake module FindGTK2.cmake in Ubuntu >= 11.04 (Natty Narwhal)

Steve Langasek steve.langasek at canonical.com
Sun Jun 5 18:13:37 UTC 2011


On Sun, Jun 05, 2011 at 01:09:01PM -0000, Tehnick wrote:
> Debian also has multiarch support:

No, it doesn't.

> http://wiki.debian.org/Multiarch
> 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/glib-2.0/include/ directory:
> http://packages.debian.org/sid/i386/libglib2.0-dev/filelist

> 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://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org


** Package changed: glib2.0 (Ubuntu) => cmake (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/751940

Title:
  Problem with cmake module FindGTK2.cmake in Ubuntu >= 11.04 (Natty
  Narwhal)

Status in “cmake” package in Ubuntu:
  Triaged

Bug description:
  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




More information about the foundations-bugs mailing list