MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013125 | CMake | Modules | public | 2012-04-12 23:20 | 2012-09-03 16:01 |
Reporter | Orion Poplawski | ||||
Assigned To | Rolf Eike Beer | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.8 | ||||
Target Version | CMake 2.8.9 | Fixed in Version | CMake 2.8.9 | ||
Summary | 0013125: FindPkgConfig.cmake not setting PKG_CONFIG_FOUND in 2.8.8 | ||||
Description | From https://bugzilla.redhat.com/show_bug.cgi?id=812188 [^] A few of my packages use pkg-config from within CMake to resolve build dependencies, using the FindPkgConfig.cmake module shipped with CMake. According to the comments in rawhide's FindPkgConfig.cmake: # It sets the following variables: # PKG_CONFIG_FOUND ... true if pkg-config works on the system # PKG_CONFIG_EXECUTABLE ... pathname of the pkg-config program # PKG_CONFIG_VERSION_STRING ... the version of the pkg-config program found # (since CMake 2.8.8) # PKG_CONFIG_FOUND ... if pkg-config executable was found (note the two lines mentioning PKG_CONFIG_FOUND with different meanings) Most of my packages check for PKG_CONFIG_FOUND before trying to use pkg-config, and the fact that this module is no longer setting that variable means that CMake isn't picking up on all of the available dependencies. The result is FTBFS errors and missing program features on builds that do succeed. Version-Release number of selected component (if applicable): cmake-2.8.8-0.2.rc2.fc18.x86_64 | ||||
Steps To Reproduce | The following simple CMakeLists.txt can be used to recreate the problem: ======begin CMakeLists.txt====== cmake_minimum_required(VERSION 2.8) include(FindPkgConfig) if(PKG_CONFIG_FOUND) message(STATUS "PkgConfig Found.") else(PKG_CONFIG_FOUND) message(STATUS "PkgConfig Not Found.") endif(PKG_CONFIG_FOUND) message(STATUS "PkgConfig Executable: ${PKG_CONFIG_EXECUTABLE}") ======end CMakeLists.txt====== cmake-2.8.8-0.2.rc2.fc18.x86_64 in rawhide (f18) produces the following output: -- Found PkgConfig: /usr/bin/pkg-config (found version "0.25") -- PkgConfig Not Found. -- PkgConfig Executable: /usr/bin/pkg-config cmake-2.8.7-4.fc17.x86_64 in f17 produces: -- PkgConfig Found. -- PkgConfig Executable: /usr/bin/pkg-config | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | 13125.patch (595) 2012-04-12 23:56 https://public.kitware.com/Bug/file/4295/13125.patch Rolf-cmake_13125-nocolor.patch (2,062) 2012-04-13 03:12 https://public.kitware.com/Bug/file/4297/Rolf-cmake_13125-nocolor.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-04-12 23:20 | Orion Poplawski | New Issue | |||
2012-04-12 23:56 | Yury G. Kudryashov | Note Added: 0029140 | |||
2012-04-12 23:56 | Yury G. Kudryashov | File Added: 13125.patch | |||
2012-04-13 00:03 | Yury G. Kudryashov | Note Edited: 0029140 | bug_revision_view_page.php?bugnote_id=29140#r602 | ||
2012-04-13 02:51 | Rolf Eike Beer | Note Added: 0029142 | |||
2012-04-13 02:51 | Rolf Eike Beer | File Added: cmake_13125.patch | |||
2012-04-13 02:52 | Rolf Eike Beer | Assigned To | => Rolf Eike Beer | ||
2012-04-13 02:52 | Rolf Eike Beer | Status | new => assigned | ||
2012-04-13 02:54 | Yury G. Kudryashov | Note Added: 0029143 | |||
2012-04-13 02:55 | Yury G. Kudryashov | Note Edited: 0029143 | bug_revision_view_page.php?bugnote_id=29143#r604 | ||
2012-04-13 03:00 | Yury G. Kudryashov | Note Added: 0029144 | |||
2012-04-13 03:12 | Yury G. Kudryashov | File Added: Rolf-cmake_13125-nocolor.patch | |||
2012-04-13 03:13 | Yury G. Kudryashov | Note Edited: 0029144 | bug_revision_view_page.php?bugnote_id=29144#r606 | ||
2012-04-13 03:21 | Rolf Eike Beer | File Deleted: cmake_13125.patch | |||
2012-04-13 03:22 | Rolf Eike Beer | Note Added: 0029145 | |||
2012-04-13 16:59 | Rolf Eike Beer | Note Added: 0029153 | |||
2012-04-13 16:59 | Rolf Eike Beer | Status | assigned => resolved | ||
2012-04-13 16:59 | Rolf Eike Beer | Resolution | open => fixed | ||
2012-04-13 16:59 | Rolf Eike Beer | Fixed in Version | => CMake 2.8.8 | ||
2012-04-13 16:59 | Rolf Eike Beer | Target Version | => CMake 2.8.8 | ||
2012-04-19 08:56 | Rolf Eike Beer | Status | resolved => feedback | ||
2012-04-19 08:56 | Rolf Eike Beer | Resolution | fixed => reopened | ||
2012-04-19 08:57 | Rolf Eike Beer | Status | feedback => resolved | ||
2012-04-19 08:57 | Rolf Eike Beer | Resolution | reopened => fixed | ||
2012-04-19 08:57 | Rolf Eike Beer | Product Version | => CMake 2.8.8 | ||
2012-04-19 08:57 | Rolf Eike Beer | Fixed in Version | CMake 2.8.8 => CMake 2.8.9 | ||
2012-04-19 08:57 | Rolf Eike Beer | Target Version | CMake 2.8.8 => CMake 2.8.9 | ||
2012-04-19 08:57 | Rolf Eike Beer | Summary | FindPkgConfig.cmake not setting PKG_CONFIG_FOUND in 2.8.8 rc2 (and rc1) => FindPkgConfig.cmake not setting PKG_CONFIG_FOUND in 2.8.8 | ||
2012-09-03 16:01 | David Cole | Note Added: 0030860 | |||
2012-09-03 16:01 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|