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 2228109 - nanopb-python3 depends on /usr/bin/python2
Summary: nanopb-python3 depends on /usr/bin/python2
Keywords:
Status: CLOSED RAWHIDE
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 (pviktori)
Modified: 2023-10-24 09:57 UTC (History)
2 users (show)

Fixed In Version: nanopb-0.4.7-4.fc40
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-10-24 09:57:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Viktorin (pviktori) 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.

Comment 2 Miro Hrončok 2023-10-23 09:50:57 UTC
Felix, have you had a chance to have a look at this?


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