Bug 1538657 - rpm-build package needs Python 2
Summary: rpm-build package needs Python 2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3
TreeView+ depends on / blocked
 
Reported: 2018-01-25 14:47 UTC by Iryna Shcherbina
Modified: 2018-01-31 14:29 UTC (History)
7 users (show)

Fixed In Version: rpm-4.14.1-6.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-31 14:29:16 UTC


Attachments (Terms of Use)

Description Iryna Shcherbina 2018-01-25 14:47:33 UTC
The rpm-build RPM started to require Python 2 since version 4.14.1-2.

This happened because `python-macro-helper` script was added to the package. The script has #!/usr/bin/python shebang which generates this dependency. Can it be switched to #!/usr/bin/python3?

Comment 1 Miro Hrončok 2018-01-31 13:36:39 UTC
The script actually doesn't need a shebang because it's never invoked as `.../python-macro-helper` but always as `%{__python} ... .../python-macro-helper`.

I reported that upstream already as https://github.com/rpm-software-management/rpm/issues/387

However here in Fedora this pulls python2 into the default buildroot once again, so the problem is more severe.

Comment 3 Panu Matilainen 2018-01-31 14:29:16 UTC
Fixed in rpm-4.14.1-6.fc28


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