Bug 2250872

Summary: calamares fails to build with Python 3.13: Error at /usr/lib64/cmake/Qt6Core/Qt6CoreVersionlessTargets.cmake:42 (message): Some (but not all) targets in this export set were already defined.
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: calamaresAssignee: Neal Gompa <ngompa13>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: damianatorrpm, kde-sig, kevin, ksurma, mattia.verga, mhroncok, ngompa13
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: 2024-09-04 15:09:05 UTC 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:
Bug Depends On:    
Bug Blocks: 2244836    

Description Karolina Surma 2023-11-21 14:45:18 UTC
calamares fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

-- Found PythonLibs: /usr/lib64/libpython3.13.so (found version "3.13.0a1+") 
-- Searching for PythonQt (PythonLibs 3.13) ..
-- PythonQt not found, missing components includes;library;qtall
-- Disabling PythonQt modules
-- Esperanto support since Qt 5.12.2, enabling Esperanto locale
-- Found Gettext: /usr/bin/msgmerge (found version "0.22") 
-- Installing gettext translations for python
--   Installing python.mo from /builddir/build/BUILD/calamares-3.2.62/lang/python
--   Skipping python translations for en_US
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
CMake Error at /usr/lib64/cmake/Qt6Core/Qt6CoreVersionlessTargets.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: Qt::Core

  Targets not yet defined: Qt::CorePrivate

Call Stack (most recent call first):
  /usr/lib64/cmake/Qt6Core/Qt6CoreConfig.cmake:68 (include)
  /usr/lib64/cmake/Qt6/Qt6Config.cmake:166 (find_package)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /usr/lib64/cmake/KPMcore/KPMcoreConfig.cmake:43 (find_dependency)
  CMakeModules/KPMcoreHelper.cmake:13 (find_package)
  src/libcalamares/CMakeLists.txt:127 (include)


-- Configuring incomplete, errors occurred!



https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06660784-calamares/

For all our attempts to build calamares with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/calamares/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Aoife Moloney 2024-02-15 23:05:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.