Bug 2228109 - nanopb-python3 depends on /usr/bin/python2
Summary: nanopb-python3 depends on /usr/bin/python2
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: nanopb
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Felix Wang
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON2_EOL
TreeView+ depends on / blocked
 
Reported: 2023-08-01 12:22 UTC by Petr Viktorin
Modified: 2023-08-16 08:06 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Petr Viktorin 2023-08-01 12:22:03 UTC
This file in nanopb, included "in case you want to run it with Python 2", has a python2 shebang that makes RPM automatically generate a requirement on /usr/bin/python2:

   /usr/lib/python3.12/site-packages/nanopb/generator/nanopb_generator.py2


Please either
- remove the file (and anything that needs it, like protoc-gen-nanopb-py2s) 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!

Comment 1 Fedora Release Engineering 2023-08-16 08:06:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


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