Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902797 - kde-plasma/plasma-workspace-5.27.3 emerge fails with Unknown CMake command "pkg_check_modules"
Summary: kde-plasma/plasma-workspace-5.27.3 emerge fails with Unknown CMake command "p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-23 08:05 UTC by Loop
Modified: 2023-03-23 08:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,8.54 KB, text/x-log)
2023-03-23 08:05 UTC, Loop
Details
CMakeLists.txt file (CMakeLists.txt,15.61 KB, text/plain)
2023-03-23 08:06 UTC, Loop
Details
environment file (environment,119.58 KB, text/plain)
2023-03-23 08:06 UTC, Loop
Details
result of emerge --info '=kde-plasma/plasma-workspace-5.27.3::gentoo' (info,8.72 KB, text/plain)
2023-03-23 08:08 UTC, Loop
Details
result of emerge -pqv '=kde-plasma/plasma-workspace-5.27.3::gentoo' (pqv,560 bytes, text/plain)
2023-03-23 08:10 UTC, Loop
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Loop 2023-03-23 08:05:33 UTC
Created attachment 858671 [details]
Build log

When emerging plasma-workspace-5.27.3 (but had the same issue with all 5.27.* versions) the emerge process fails at the configure stage with:

CMake Error at CMakeLists.txt:79 (pkg_check_modules):
  Unknown CMake command "pkg_check_modules".
Comment 1 Loop 2023-03-23 08:06:10 UTC
Created attachment 858673 [details]
CMakeLists.txt file
Comment 2 Loop 2023-03-23 08:06:32 UTC
Created attachment 858675 [details]
environment file
Comment 3 Loop 2023-03-23 08:08:00 UTC
Created attachment 858677 [details]
result of emerge --info '=kde-plasma/plasma-workspace-5.27.3::gentoo'
Comment 4 Loop 2023-03-23 08:10:02 UTC
Created attachment 858679 [details]
result of emerge -pqv '=kde-plasma/plasma-workspace-5.27.3::gentoo'
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-23 08:23:28 UTC
Guessing there's a transitive include so it accidentally works normally.
Comment 6 Andreas Sturmlechner gentoo-dev 2023-03-23 08:26:33 UTC
I don't know why, but disabling Fontconfig - which itself is detected past the point of failure here - influences 'pkg_check_modules' in line 79 to fail while 'find_package(PkgConfig REQUIRED)' is done below both.
Comment 7 Larry the Git Cow gentoo-dev 2023-03-23 08:39:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c1679c37a015b3aff52c786d2cff6adb3e82e92

commit 6c1679c37a015b3aff52c786d2cff6adb3e82e92
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-03-23 08:38:18 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-03-23 08:39:17 +0000

    kde-plasma/plasma-workspace: Fix cmake
    
    Closes: https://bugs.gentoo.org/902797
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/plasma-workspace-5.27.3-cmake.patch      | 37 ++++++++++++++++++++++
 .../plasma-workspace-5.27.3-r1.ebuild              |  1 +
 2 files changed, 38 insertions(+)