Bug 2336901

Summary: plasma-workspace is not build with cmake option GLIBC_LOCALE_PREGENERATED enabled
Product: [Fedora] Fedora EPEL Reporter: Neal Gompa <ngompa13>
Component: plasma-workspaceAssignee: Troy Dawson <tdawson>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel9CC: jgrulich, kde-sig, rdieter, than, viniciush.dev
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Neal Gompa 2025-01-10 10:30:40 UTC
(This bug was initially created as a copy of Bug #2300192)

For systemsettings' "Region and Language" KCM to work properly on systems that pre-generate locales like Fedora, plasma-workspace should be built with GLIBC_LOCALE_PREGENERATED enabled.

https://invent.kde.org/plasma/plasma-workspace/-/blob/Plasma/5.27/CMakeLists.txt?ref_type=heads#L259

Otherwise the KCM will complain "Could not find the system's available locales using the localectl tool. Please file a bug report about this at https://bugs.kde.org" as metioned in this bug repot: https://bugs.kde.org/show_bug.cgi?id=479213

Reproducible: Always

Steps to Reproduce:
1. Open Region and Language in system settings, change language and click "apply"

Actual Results:  
complains "can't find localectl..."

Expected Results:  
Locale configured properly

Comment 1 Troy Dawson 2025-01-17 18:11:24 UTC
Is this for EPEL 8 or 9 or 10? (RHEL 8, 9 or 10)
I am assuming EPEL/RHEL 9, but I am not in a position to test.

Comment 2 Neal Gompa 2025-01-17 19:01:19 UTC
Only for EPEL 9. 

EPEL 10 already has this flag set since we turned it on in Fedora with Plasma 6.1.4: https://src.fedoraproject.org/rpms/plasma-workspace/c/e29cc51f1e7570fc0c050a7ee53d0b1c7bc7c30f

Comment 3 Neal Gompa 2025-01-17 19:01:38 UTC
It doesn't seem like this flag exists for Plasma 5.24 in EPEL 8, either.

Comment 4 Troy Dawson 2025-01-21 17:18:19 UTC
I don't think I'm going to be touching epel8's plasma-workspace.
But epel9 I am planning on doing an update next month, so it will be good to get the flag in there.