Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856361 - [kde overlay] kde-plasma/plasma-workspace-9999 as of 134e2d5c9 needs IUSE=policykit changes
Summary: [kde overlay] kde-plasma/plasma-workspace-9999 as of 134e2d5c9 needs IUSE=pol...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-04 07:30 UTC by Duncan
Modified: 2022-07-07 14:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2022-07-04 07:30:19 UTC
The following upstream commit changes polkit handling:

commit 134e2d5c9
Author:     Han Young <hanyoung@despammed>
AuthorDate: Sat Jul 2 09:29:57 2022 +0000
Commit:     Han Young <hanyoung@despammed>
CommitDate: Sat Jul 2 09:29:57 2022 +0000

merge Language and Formats
---

With that commit, USE=-policykit breaks in src_configure with the following:

[...]
CMake Warning at CMakeLists.txt:206 (find_package):
By not providing "FindPolkitQt5-1.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"PolkitQt5-1", but CMake did not find one.

Could not find a package configuration file provided by "PolkitQt5-1" with
any of the following names:

PolkitQt5-1Config.cmake
polkitqt5-1-config.cmake

Add the installation prefix of "PolkitQt5-1" to CMAKE_PREFIX_PATH or set
"PolkitQt5-1_DIR" to a directory containing one of the above files.  If
"PolkitQt5-1" provides a separate development package or SDK, be sure it
has been installed.

[...]

-- The following REQUIRED packages have not been found:

* PolkitQt5-1, DBus interface wrapper for Polkit
Communicate with localegen helper in region & lang kcm

CMake Error at /share/cmake/Modules/FeatureSummary.cmake:464 (message):
feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
run.
Call Stack (most recent call first):
CMakeLists.txt:358 (feature_summary)


-- Configuring incomplete, errors occurred!


The CMakeLists.txt diff tells the tale.  It's a bit long to include directly, but basically, ignoring the ubuntu-based special-case, it does:

set(GLIBC_LOCALE_GEN_DEFAULT ON)
option(GLIBC_LOCALE_GEN "Auto generate Glibc locale with locale-gen and /etc/locale.gen" ${GLIBC_LOCALE_GEN_DEFAULT})
if(UBUNTU_PACKAGEKIT OR GLIBC_LOCALE_GEN)
    set(REGION_LANG_GENERATE_LOCALE TRUE)
endif()

################## Find libraries ###################
if(REGION_LANG_GENERATE_LOCALE)
    find_package(PolkitQt5-1)
    set_package_properties(PolkitQt5-1
            PROPERTIES DESCRIPTION "DBus interface wrapper for Polkit"
            PURPOSE "Communicate with localegen helper in region & lang kcm"
            TYPE REQUIRED
    )


IOW, we need to set -DGLIBC_LOCALE_GEN=ON/OFF based on the policykit USE flag (and possibly change deps for ON, didn't look into that).

User level workaround: Until that's taken care of using package.env to set MYCMAKEARGS="-DGLIBC_LOCALE_GEN=OFF" did the trick, here.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-07 14:16:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=f6243379243aa1b18097b923beacdb4a51700baf

commit f6243379243aa1b18097b923beacdb4a51700baf
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-07-07 11:05:15 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-07-07 14:16:00 +0000

    kde-plasma/plasma-workspace: Fix build with IUSE=-policykit
    
    Upstream commit 134e2d5c989c36ac0e985ee0ae382996c6b7b56e
    
    See also:
    https://invent.kde.org/plasma/plasma-workspace/-/issues/23
    https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1147
    
    Closes: https://bugs.gentoo.org/856361
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/plasma-workspace/metadata.xml                 | 2 +-
 kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)