Bug 2330219 - cmake 3.31.0 breaks Qt6 builds which leverage QML
Summary: cmake 3.31.0 breaks Qt6 builds which leverage QML
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cmake
Version: 42
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Björn Esser (besser82)
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/EbonJaeger/bluejay...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-03 20:22 UTC by Joshua Strobl
Modified: 2025-06-19 01:59 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-06-16 16:32:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github EbonJaeger/bluejay/actions/runs/12146990523/job/33872208786 0 None None None 2024-12-03 20:23:18 UTC
Qt Bug Tracker QTBUG-87776 0 P3: Somewhat important Reported Move Qt::FooPrivate targets into separate CMake packages 2024-12-03 20:42:11 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.