Bug 1405483

Summary: rpm-build: consider switching to system-python
Product: [Fedora] Fedora Reporter: Petr Šabata <psabata>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ignatenko, kardos.lubos, packaging-team-maint, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-4.13.0-8.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-19 09:16:37 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:
Attachments:
Description Flags
Switch to system-python
none
Switch rpm-build to system-python (RHBZ #1405483) none

Description Petr Šabata 2016-12-16 15:47:21 UTC
rpm-build currently depends (via its pythondistdeps.py) on python2 and pulls the entire python2 stack into every buildroot.  Consider switching to smaller, leaner, python3-based and currently always present system-python.  This change will also allow us to ship system-python-only base modules.

The script works fine with Python 3 and system-python & system-python-libs provide everything it needs.

The change is fairly straightforward and only involves changing the shebang line from #!/usr/bin/python to #!/usr/libexec/system-python.

Thanks!

Comment 1 Petr Šabata 2016-12-16 15:48:34 UTC
Created attachment 1232566 [details]
Switch to system-python

Just for completeness.

Comment 2 Igor Gnatenko 2016-12-16 20:09:15 UTC
Heh, I did the switch for all other stuff. Somehow missed this.

Comment 3 Igor Gnatenko 2016-12-18 11:33:11 UTC
Created attachment 1233094 [details]
Switch rpm-build to system-python (RHBZ #1405483)

References: https://bugzilla.redhat.com/show_bug.cgi?id=1405483
Signed-off-by: Igor Gnatenko <ignatenko>

Comment 4 Petr Šabata 2016-12-19 10:24:29 UTC
Awesome, thanks.