Bug 2228109

Summary: nanopb-python3 depends on /usr/bin/python2
Product: [Fedora] Fedora Reporter: Petr Viktorin (pviktori) <pviktori>
Component: nanopbAssignee: Felix Wang <topazus>
Status: CLOSED RAWHIDE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: mhroncok, topazus
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nanopb-0.4.7-4.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-24 09:57:02 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: 1708725    

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?