Opened 2 years ago
Last modified 2 years ago
#298 new defect
glibconfig.h has been moved
| Reported by: | cavedon | Owned by: | laurent |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Build System | Version: | 2.2 |
| Keywords: | Cc: |
Description
With latest version of glib, glibconfig.h has been moved from
/usr/lib/glib-2.0/include/glibconfig.h
to
/usr/lib/i386-linux-gnu/glib-2.0/include/glibconfig.h
See e.g.:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/751940
Attaching patch to fix the local copy of FindGLIB2.cmake
Attachments (1)
Change History (6)
Changed 2 years ago by cavedon
comment:1 Changed 2 years ago by laurent
comment:2 follow-ups: ↓ 3 ↓ 4 Changed 2 years ago by dneary
This really should use pkgconfig to get the paths. I converted libuuid to pkgconfig a couple of weeks ago, as an example of how to do that (before it was removed as a dependency).
comment:3 in reply to: ↑ 2 Changed 2 years ago by cavedon
Replying to dneary:
This really should use pkgconfig to get the paths.
I definitely agree.
But what I think it would be even better is to use the FindXXX.cmake scripts provided by cmake, rather than using custom ones.
two notes:
- in this specific case, even cmake's one appears to be broken, but then cmake developers are in charge of fixing it.
- this bugs appears to be Debian/Ubuntu? specific, because of the multi-arch support being implemented
comment:4 in reply to: ↑ 2 Changed 2 years ago by cavedon
Replying to dneary:
This really should use pkgconfig to get the paths. I converted libuuid to pkgconfig a couple of weeks ago, as an example of how to do that (before it was removed as a dependency).
Here is patch from Andreas Moog for using pkg-config:
https://bugs.launchpad.net/ubuntu/+source/qutecom/+bug/756051/comments/9

Thanks !
bug fix : 57