[Bug 1922417] Re: [SRU] cmake: FindPkgConfig: imported target missing libraries
Launchpad Bug Tracker
1922417 at bugs.launchpad.net
Wed Jul 21 01:31:09 UTC 2021
This bug was fixed in the package cmake - 3.10.2-1ubuntu2.18.04.2
---------------
cmake (3.10.2-1ubuntu2.18.04.2) bionic; urgency=medium
[ Matwey V. Kornilov ]
* debian/patches/0001-FindPkgConfig-correct-library-search-path-for-
import.patch: Cherry-pick upstream fix for pkg-config failure to find
the library if -L was provided (and library not in that path)
LP: #1922417
-- Gianfranco Costamagna <locutusofborg at debian.org> Sun, 04 Apr 2021
16:10:12 +0200
** Changed in: cmake (Ubuntu Bionic)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cmake in Ubuntu.
https://bugs.launchpad.net/bugs/1922417
Title:
[SRU] cmake: FindPkgConfig: imported target missing libraries
Status in cmake package in Ubuntu:
Fix Released
Status in cmake source package in Bionic:
Fix Released
Bug description:
[Impact]
* People using pkgconfig and standard library location (but -L pointing to different place)
[Test Plan]
* pkg-config --libs libmutter-2
cat ../CMakeLists.txt
project(1922417)
cmake_minimum_required(VERSION 3.10)
include(FindPkgConfig QUIET)
pkg_check_modules(mutter-2 REQUIRED)
[ Other info ]
Hello,
Description: Ubuntu 18.04.5 LTS
Release: 18.04
cmake:
Installed: 3.10.2-1ubuntu2.18.04.1
Candidate: 3.10.2-1ubuntu2.18.04.1
Version table:
*** 3.10.2-1ubuntu2.18.04.1 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
3.10.2-1ubuntu2 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
I am running 3.10.2 at Bionic Beaver 18.04.5 and suffering from the following known issue: https://gitlab.kitware.com/cmake/cmake/-/issues/17954
Unfortunately, the issue was fixed only in 3.12 and 3.10.2 is still affected.
Can we please have the following patch back-ported for 18.04.5 updates
https://gitlab.kitware.com/cmake/cmake/-/commit/ac5731a7e380349f19dc319e6c31e189b5faba93
I've checked that the patch can be applied clearly on top of the
3.10.2, it is simple and self-consistent, so I don't expect that it
will break something else.
I've also verified that the patch indeed fixes the issue for me. Since
the patch affects only CMake module and don't requires cmake rebuild
it was simple enough.
Attached here is a copy of ac5731a7e380349f19dc319e6c31e189b5faba93
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1922417/+subscriptions
More information about the foundations-bugs
mailing list