View Issue Details

IDProjectCategoryView StatusLast Update
0016527CentOS-8-OTHERpublic2019-10-03 19:41
Status newResolutionopen 
Product Version8.0.1905 
Target VersionFixed in Version 
Summary0016527: python-rpm-macros-3-37.el8:/usr/lib/rpm/macros.d/macros.python makes use of %__python which is wrong and broken
Descriptionpython-rpm-macros-3-37.el8:/usr/lib/rpm/macros.d/macros.python makes use of %__python which is wrong and broken

%__python points to /usr/bin/python (which doesn't exists).

macros %py_build and affiliated shouldn't use __python macro. AFAICT it should use __python2
Steps To Reproduce# rpm --eval '%{py_build}'
  /usr/bin/python build --executable="/usr/bin/python2 -s"
  sleep 1

=> /usr/bin/python won't be found.
TagsNo tags attached.




2019-10-03 19:41

reporter   ~0035308

%py_build is obsolete - and uses the equally obsolete %__python.

Use %py2_build and %py3_build instead. says about %__python

"Don’t use this macro without redefining it. Defining is changes the meaning of other "unversioned" Python macros such as %{python_sitelib}".

%py_build is one of the unversioned macros.

Issue History

Date Modified Username Field Change
2019-10-03 12:43 olahaye74 New Issue
2019-10-03 19:41 ellert Note Added: 0035308