Bug 1218719

Summary: pypy-libs depends on python due to shebangs
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: pypyAssignee: Miro Hrončok <mhroncok>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: mstuchli, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 10:29:31 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:

Description Miro Hrončok 2015-05-05 16:47:03 UTC
Description of problem:
$ rpm -q --requires pypy-libs
/bin/sh
/usr/bin/env
/usr/bin/python
...

Version-Release number of selected component (if applicable):
pypy-libs-2.4.0-1.fc21.x86_64 (but possibly problem on other Fedoras as well)


[/usr/lib64/pypy-2.4.0/lib-python/2.7]$ grep -Ir '^#!'
trace.py:#!/usr/bin/env python
cgi.py:#! /usr/bin/python
plat-freebsd8/regen:#! /bin/sh
plat-aix4/regen:#! /bin/sh
profile.py:#! /usr/bin/env python
plat-aix3/regen:#! /bin/sh
plat-freebsd6/regen:#! /bin/sh
webbrowser.py:#! /usr/bin/env python
plat-beos5/regen:#! /bin/sh
base64.py:#! /usr/bin/env python
plat-mac/appletrunner.py:#!/usr/bin/env python
plat-mac/bundlebuilder.py:#! /usr/bin/env python
plat-mac/bundlebuilder.py:#!%(hashbang)s
plat-atheos/regen:#! /bin/sh
keyword.py:#! /usr/bin/env python
tabnanny.py:#! /usr/bin/env python
idlelib/PyShell.py:#! /usr/bin/env python
symbol.py:#! /usr/bin/env python
pdb.py:#! /usr/bin/env python
quopri.py:#! /usr/bin/env python
smtpd.py:#! /usr/bin/env python
plat-os2emx/regen:#! /bin/sh
plat-generic/regen:#! /bin/sh
plat-sunos5/regen:#! /bin/sh
plat-next3/regen:#! /bin/sh
plat-linux2/regen:#! /bin/sh
UserString.py:#!/usr/bin/env python
pydoc.py:#!/usr/bin/env python
smtplib.py:#! /usr/bin/env python
plat-unixware7/regen:#! /bin/sh
plat-freebsd4/regen:#! /bin/sh
uu.py:#! /usr/bin/env python
plat-freebsd7/regen:#! /bin/sh
plat-netbsd1/regen:#! /bin/sh
ctypes/macholib/fetch_macholib:#!/bin/sh
plat-irix6/regen:#! /bin/sh
mimify.py:#! /usr/bin/env python
lib2to3/tests/pytree_idempotency.py:#!/usr/bin/env python
lib2to3/tests/data/false_encoding.py:#!/usr/bin/env python
lib2to3/tests/data/different_encoding.py:#!/usr/bin/env python
lib2to3/pgen2/token.py:#! /usr/bin/env python
plat-irix5/regen:#! /bin/sh
plat-freebsd5/regen:#! /bin/sh
encodings/rot_13.py:#!/usr/bin/env python
plat-darwin/regen:#! /bin/sh
platform.py:#!/usr/bin/env python
test/crashers/recursive_call.py:#!/usr/bin/env python
test/regrtest.py:#! /usr/bin/env python
test/re_tests.py:#!/usr/bin/env python
test/test_httpservers.py:#!%s
test/test_httpservers.py:#!%s
test/pystone.py:#! /usr/bin/env python
test/curses_tests.py:#!/usr/bin/env python
timeit.py:#! /usr/bin/env python
cProfile.py:#! /usr/bin/env python

You could do something like this in the spec to avoid this:

https://github.com/fedora-python/pypy3/commit/e58e0e21b94cf942c789430997cf16dd21462a0e

Comment 1 Miro Hrončok 2015-05-05 16:50:52 UTC
Or maybe better way would be: https://github.com/fedora-python/pypy3/commit/36afc7f79102c83960c3d6bf8f4a8620554c0137 (this probably works for pypy and pypy3 (untested))

Comment 2 Matej Stuchlik 2015-05-06 14:43:05 UTC
Thanks for the report! I'm tracking the pypy3 review requests and will incorporate all the changes back to pypy. :)

Comment 3 Miro Hrončok 2015-06-11 14:31:26 UTC
Pushed to rawhide, however, the build fails for other reasons.

Comment 4 Fedora End Of Life 2015-11-04 15:52:27 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.