Bug 2135410 - appliance-tools fails to build without distutils
Summary: appliance-tools fails to build without distutils
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: appliance-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2219933 (view as bug list)
Depends On:
Blocks: PYTHON3.12 F39FTBFS F39FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2022-10-17 15:02 UTC by Miro Hrončok
Modified: 2023-08-13 15:37 UTC (History)
5 users (show)

Fixed In Version: appliance-tools-011.2-4.fc39 appliance-tools-011.2-4.fc40
Clone Of:
Environment:
Last Closed: 2023-08-13 15:37:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2022-10-17 15:02:37 UTC
Description of problem:
The Python standard library distutils module will be removed from Python 3.12+

https://peps.python.org/pep-0632/

As preparatory work, we build all python packages ina  Copr repository with Python 3.11 sans distutils.

https://copr.fedorainfracloud.org/coprs/g/python/python-without-distutils/

appliance-tools fails to build:

+ /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/appliance-tools-011.1-9.fc38.x86_64 'INSTALL=/usr/bin/install -p' PYTHON=/usr/bin/python3
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
...
RPM build errors:
    Directory not found: /builddir/build/BUILDROOT/appliance-tools-011.1-9.fc38.x86_64/usr/lib/python3.11/site-packages/appcreate
    Directory not found: /builddir/build/BUILDROOT/appliance-tools-011.1-9.fc38.x86_64/usr/lib/python3.11/site-packages/ec2convert

Version-Release number of selected component: 011.1-9 


How reproducible: Build  appliance-tools without distutils


Steps to Reproduce:
1. fedpkg clone appliance-tools && cd appliance-tools
2. mock -r fedora-rawhide-x86_64 init
3. mock -r fedora-rawhide-x86_64 install python3-devel
4. sudo rm -rf /var/lib/mock/fedora-rawhide-x86_64/root/usr/lib64/python3.11/distutils/
4. fedpkg mockbuild -N

Actual results: fails to build
Expected results: builds fine

Comment 1 Miro Hrončok 2022-10-21 10:20:10 UTC
Adding BuildRequires: python3-setuptools workarounds the problem.

Comment 2 Tomáš Hrnčiar 2022-12-20 10:53:54 UTC
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.12:
https://copr.fedorainfracloud.org/coprs/python3.12/

Please use this copr for testing rather than https://copr.fedorainfracloud.org/coprs/g/python/python-without-distutils/

If your package is listed in [0], you may workaround this issue by BuildRequiring python-setuptools, note that adding such BuildRequires might however hide some transitive dependency problem, if the distutils import comes from a dependency.
Cooperation with upstream is recommended. Additional context [1].

[0] https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/message/6BHNAWHE7M5VY3YQVJLOYHLY4M7KIFFN/

[1] https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/N6ITYHLRWIDNYNXGPYG2ZHF3ZLQWZN7L/

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

For all our attempts to build appliance-tools with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/python3.12/package/appliance-tools/

Let us know here if you have any questions.

Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12.
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 3 Ben Cotton 2023-02-07 14:57:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 4 Tomáš Hrnčiar 2023-07-11 13:59:00 UTC
*** Bug 2219933 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Fails To Install 2023-07-19 04:52:36 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on devel.org if you are unsure how to fix this bug.

Comment 6 Fedora Fails To Install 2023-08-13 12:17:24 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 4+ weeks.
This is the second reminder (step 4) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 7 Neal Gompa 2023-08-13 14:52:25 UTC
Working on it.


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