View Issue Details

IDProjectCategoryView StatusLast Update
0016526CentOS-8rpmpublic2019-10-03 12:34
Status newResolutionopen 
Product Version8.0.1905 
Target VersionFixed in Version 
Summary0016526: /usr/lib/rpm/macros __python macro wrong (points to /usr/bin/python which doesn't exists anymore
DescriptionFile /usr/lib/rpm/macros contains wrong __python macro that is also used elsewhere (python_version, ...)

Package python-rpm-macros-3-37.el8.noarch is also affected as it uses this macro (I'll report it as well)
Steps To Reproducerpm --eval '%python_version'
sh: /usr/bin/python: No such file or directory

Additional Informationneed to use __python2 or __python3 or something even more appropriate that I'm not aware of. In the meantime some src.rpm fails to build because python_version fails

Completely dropping the /usr/bin/python had a big impact that was IMHO not well evaluated. IMHO it should have pointed to python2 for compatibility and maintenance reasons.
As external package maintainer, I'm in the process of removing all python code from OSCAR Cluster and SystemImager as this language is broken by design before 1st line of code (shebang fail)
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-10-03 12:34 olahaye74 New Issue