Bug 2330219

Summary: cmake 3.31.0 breaks Qt6 builds which leverage QML
Product: [Fedora] Fedora Reporter: Joshua Strobl <joshua>
Component: cmakeAssignee: Björn Esser (besser82) <besser82>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 42CC: besser82, jgrulich, ngompa13, rdieter, suraj.ghimire7, trpost, walter.pete
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://github.com/EbonJaeger/bluejay/actions/runs/12146990523/job/33872208786
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-16 16:32:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joshua Strobl 2024-12-03 20:22:14 UTC
cmake 3.31.0 changed some behavior which results in import target "non-existent path" errors. This has been reported in Debian as well:

https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg2001910.html

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087385#12

You can see the issue link the linked CI action which tests an application that leverages Qt6 QML against Fedora rawhide. You can validate that it fails with the following:

https://github.com/EbonJaeger/bluejay/

https://github.com/JoshStrobl/koto/tree/qt6 (qt6 branch)

Both of these successfully compiled prior to 3.31.0.

Reproducible: Always

Steps to Reproduce:
1. Clone applications above, try to compile using cmake 3.31.0
2. See compilation failed
3. Downgrade to older cmake release. See that it works.
Actual Results:  
FTBFS

Expected Results:  
No regression in building from source.

Comment 1 Joshua Strobl 2024-12-03 20:42:01 UTC
Qt bug at https://bugreports.qt.io/browse/QTBUG-87776

Comment 2 Fedora Update System 2024-12-07 22:42:49 UTC
FEDORA-2024-dc1383ffad (qt6-qtdeclarative-6.8.1-5.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-dc1383ffad

Comment 3 Fedora Update System 2024-12-08 02:10:25 UTC
FEDORA-2024-dc1383ffad (qt6-qtdeclarative-6.8.1-5.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Neal Gompa 2024-12-09 00:57:53 UTC
Reopening this as the issue is still present even if it's worked around in QtDeclarative. This can and will affect other CMake modules with similar patterns.

Comment 5 Jan Grulich 2024-12-09 07:02:54 UTC
(In reply to Neal Gompa from comment #4)
> Reopening this as the issue is still present even if it's worked around in
> QtDeclarative. This can and will affect other CMake modules with similar
> patterns.

I was about to re-open it myself. It was closed automatically, because I mentioned this bug in the SPEC file.

Comment 6 Aoife Moloney 2025-02-26 13:19:16 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 7 Fedora Update System 2025-06-16 15:09:30 UTC
FEDORA-2025-77a305afff (qt6-qtdeclarative-6.9.1-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-77a305afff

Comment 8 Fedora Update System 2025-06-16 15:33:14 UTC
FEDORA-2025-f0b80fa87d (qt6-qtdeclarative-6.9.1-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f0b80fa87d

Comment 9 Fedora Update System 2025-06-16 16:32:00 UTC
FEDORA-2025-77a305afff (qt6-qtdeclarative-6.9.1-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2025-06-17 02:59:29 UTC
FEDORA-2025-f0b80fa87d has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f0b80fa87d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f0b80fa87d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-06-19 01:59:40 UTC
FEDORA-2025-f0b80fa87d (qt6-qtdeclarative-6.9.1-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.