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".
Created attachment 858673 [details] CMakeLists.txt file
Created attachment 858675 [details] environment file
Created attachment 858677 [details] result of emerge --info '=kde-plasma/plasma-workspace-5.27.3::gentoo'
Created attachment 858679 [details] result of emerge -pqv '=kde-plasma/plasma-workspace-5.27.3::gentoo'
Guessing there's a transitive include so it accidentally works normally.
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.
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(+)