Bug 2412512

Summary: nordugrid-arc fails to build with Python 3.15: arc_init.cpp:50:30: error: 'Py_GetPath' was not declared in this scope
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: nordugrid-arcAssignee: Mattias Ellert <mattias.ellert>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mattias.ellert, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nordugrid-arc-7.1.1-3.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-11-16 05:59:33 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: 2412434    

Description Karolina Surma 2025-11-05 14:19:44 UTC
nordugrid-arc fails to build with Python 3.15.0a1.

arc_init.cpp: In function 'void __arc_init()':
arc_init.cpp:50:30: error: 'Py_GetPath' was not declared in this scope
   50 |   std::wstring pythonwpath = Py_GetPath();
      |                              ^~~~~~~~~~
make[5]: *** [Makefile:712: _arc_la-arc_init.lo] Error 1

From https://docs.python.org/dev/whatsnew/3.15.html#removed-c-apis:

The following functions are removed in favor of PyConfig_Get(). The pythoncapi-compat project can be used to get PyConfig_Get() on Python 3.13 and older.
    Python initialization functions:
        Py_GetExecPrefix(): use PyConfig_Get("base_exec_prefix") (sys.base_exec_prefix) instead. Use PyConfig_Get("exec_prefix") (sys.exec_prefix) if virtual environments need to be handled.
        Py_GetPath(): use PyConfig_Get("module_search_paths") (sys.path) instead.
        Py_GetPrefix(): use PyConfig_Get("base_prefix") (sys.base_prefix) instead. Use PyConfig_Get("prefix") (sys.prefix) if virtual environments need to be handled.
        Py_GetProgramFullPath(): use PyConfig_Get("executable") (sys.executable) instead.
        Py_GetProgramName(): use PyConfig_Get("executable") (sys.executable) instead.
        Py_GetPythonHome(): use PyConfig_Get("home") or the PYTHONHOME environment variable instead.
    (Contributed by Bénédikt Tran in gh-133644.)


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09740052-nordugrid-arc/

For all our attempts to build nordugrid-arc with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/nordugrid-arc/

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.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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.