Bug 2259520 - volume_key fails to build in Rawhide: libtool: error: only absolute run-paths are allowed
Summary: volume_key fails to build in Rawhide: libtool: error: only absolute run-pat...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: volume_key
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Kucera
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F40FTBFS PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-01-22 08:23 UTC by Karolina Surma
Modified: 2024-09-27 13:01 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-09-27 13:01:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-01-22 08:23:48 UTC
volume_key fails to build with Python 3.13.0a3.

checking for /usr/bin/python3 script directory... Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0, 0, prefix='${prefix}'))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'distutils'

checking for /usr/bin/python3 extension module directory... Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1, 0, prefix='${exec_prefix}'))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'distutils'


and further:

libtool:   error: only absolute run-paths are allowed


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/06924342-volume_key/

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

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 Miro Hrončok 2024-01-22 10:58:07 UTC
Looking at https://koschei.fedoraproject.org/package/volume_key

The distutils part is pre-exisitng:

checking for /usr/bin/python3 script directory... Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
checking for /usr/bin/python3 extension module directory... Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'

That makes sense because the distutils module was already removed from Python 3.12.



The "libtool:   error: only absolute run-paths are allowed" part is new, but not Python 3.13 related. Probably GCC 14 or a similar change, see https://koschei.fedoraproject.org/build/17076077

Comment 2 Miro Hrončok 2024-01-22 12:04:37 UTC
FTR I belive this is the difference: https://src.fedoraproject.org/rpms/glib2/c/770dc4fc14abb429580937b7fad7157030dd7627?branch=rawhide

Comment 3 Yaakov Selkowitz 2024-01-30 03:35:09 UTC
PR: https://src.fedoraproject.org/rpms/volume_key/pull-request/5

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


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