Bug 2250873 - gfal2-python fails to build with Python 3.13: CMake Error at src/CMakeLists.txt:78 (install): install TARGETS given no LIBRARY DESTINATION for module target "gfal-py3"
Summary: gfal2-python fails to build with Python 3.13: CMake Error at src/CMakeLists.t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gfal2-python
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mihai Patrascoiu
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-21 14:46 UTC by Karolina Surma
Modified: 2023-12-13 13:17 UTC (History)
4 users (show)

Fixed In Version: gfal2-python-1.12.2-1.fc40
Clone Of:
Environment:
Last Closed: 2023-12-13 13:17:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-11-21 14:46:08 UTC
gfal2-python 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.

-- Could NOT find PythonCurrentModsDir (missing: PYTHON_SITE_PACKAGES) 
-- Boost Python3 library: /usr/lib64/libboost_python313.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.9.5") 
-- Checking for module 'glib-2.0'
--   Found glib-2.0, version 2.78.1
-- GLIB2 libraries: glib-2.0
-- GLIB2 include dir: /usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/sysprof-6
-- Found GLIB2: glib-2.0  
-- Checking for module 'gthread-2.0'
--   Found gthread-2.0, version 2.78.1
-- GTHREAD2 libraries: gthread-2.0;glib-2.0
-- GTHREAD2 include dir: /usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/sysprof-6
-- Found GTHREAD2: gthread-2.0;glib-2.0  
-- Checking for module 'gfal2'
--   Found gfal2, version 2.21.5
-- Checking for module 'gfal_transfer'
--   Found gfal_transfer, version 2.21.5
-- GFAL2 libraries: gfal2;glib-2.0;gfal_transfer;gfal2;glib-2.0
-- GFAL2 include dir: /usr/include/gfal2;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/sysprof-6;/usr/include/gfal2;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/sysprof-6
-- Found GFAL2: gfal2;glib-2.0;gfal_transfer;gfal2;glib-2.0  
-- Python3.13 include: 
-- Python3.13 libraries: 
-- Python3.13 site-packages: 
CMake Error at src/CMakeLists.txt:78 (install):
  install TARGETS given no LIBRARY DESTINATION for module target "gfal-py3".


-- 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/06660850-gfal2-python/

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

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 Mihai Patrascoiu 2023-11-21 15:56:16 UTC
Hello,

I've applied a patch to gfal2-python: 
https://src.fedoraproject.org/rpms/gfal2-python/blob/rawhide/f/0000_CMake_FindPython3_13.patch

With the above patch, the COPR build passed:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/build/6674902/

Next upstream release (gfal2-python-1-12.2) will contain the changes, but no release date planned yet.

Cheers,
Mihai

Comment 2 Karolina Surma 2023-11-21 16:13:41 UTC
Thank you for the prompt response!

Comment 3 Fedora Update System 2023-12-13 13:12:17 UTC
FEDORA-2023-da2952dab8 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-da2952dab8

Comment 4 Fedora Update System 2023-12-13 13:17:01 UTC
FEDORA-2023-da2952dab8 has been pushed to the Fedora 40 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.