Bug 2259526

Summary: system-config-printer FTBFS due missing distutils
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: system-config-printerAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, twaugh, zdohnal
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-01-23 12:47:25 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: 2135404, 2231791, 2244836    

Description Karolina Surma 2024-01-22 08:32:34 UTC
system-config-printer fails to build in Rawhide.

/usr/bin/python3 setup.py build
Traceback (most recent call last):
  File "/builddir/build/BUILD/system-config-printer-1.5.18/setup.py", line 20, in <module>
    from distutils.core import setup
ModuleNotFoundError: No module named 'distutils'

The distutils package has been removed from the standard library of Python 3.12+
https://docs.python.org/3.12/whatsnew/3.12.html


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

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

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 11:05:57 UTC
Looking at https://koschei.fedoraproject.org/package/system-config-printer

The first failed build is https://koschei.fedoraproject.org/build/17080861

It removed a transitive dependency on python3-setuptools, which was previously pulled in by some other build dependency.

When python3-setuptools is installed, it has its own distutils module and it makes the package build.

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

Comment 3 Zdenek Dohnal 2024-01-23 07:51:45 UTC
Hi Karolina and Miro,

thank you for filing the issue!

Shame on me, I had python3-setuptools commented out in SPEC file as result of debugging another python related FTBFS from the last year, where Miro fixed the build for me and I didn't realize I haven't put setuptools back...

I'll fix it in a moment.

Comment 4 Zdenek Dohnal 2024-01-23 07:57:44 UTC
Or at least I would, if Fedora Kerberos was running... I'll try to build the fix asap.

Comment 5 Miro Hrončok 2024-01-23 10:11:42 UTC
Putting the package name back to Summary, it's easier to work with in the emails.

Comment 6 Zdenek Dohnal 2024-01-23 12:47:09 UTC
Built for rawhide https://bodhi.fedoraproject.org/updates/FEDORA-2024-8292d4eb73 .