Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2249819 - flatpak-builder-tests depends on python2
Summary: flatpak-builder-tests depends on python2
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: flatpak-builder
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Debarshi Ray
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON2_EOL
TreeView+ depends on / blocked
 
Reported: 2023-11-15 13:28 UTC by Petr Viktorin (pviktori)
Modified: 2024-02-15 23:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Petr Viktorin (pviktori) 2023-11-15 13:28:35 UTC
This file in the `flatpak-builder-tests` package has a python2 shebang, which makes RPM automatically generate a requirement on /usr/bin/python2:

   /usr/libexec/installed-tests/flatpak-builder/testpython.py

Note that Python 2 is deprecated in Fedora, requirements for it should not be added.

Please either
- remove/change the shebang
- remove the file (and anything that needs it) or
- filter out the automatic dependency like this:

  %global __requires_exclude ^/usr/bin/python2$

  (see https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/#_filtering_provides_and_requires_after_scanning . I haven't tested the suggestion.)

Thanks!

Reproducible: Always

Comment 1 Aoife Moloney 2024-02-15 23:04:34 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.