Bug 1503715 - fpaste uses /usr/bin/env python
Summary: fpaste uses /usr/bin/env python
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: fpaste
Version: epel7
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-18 15:10 UTC by Orion Poplawski
Modified: 2018-08-08 17:17 UTC (History)
5 users (show)

Fixed In Version: fpaste-0.3.7.4.1-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-08 17:17:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2017-10-18 15:10:54 UTC
Description of problem:

$ head /usr/bin/fpaste
#!/usr/bin/env python

This breaks if "python" points to python3:

$ fpaste
  File "/usr/bin/fpaste", line 87
    except ValueError, e:
                     ^
SyntaxError: invalid syntax

Packaged utilities should always explicitly use the python they are built for.

Version-Release number of selected component (if applicable):
fpaste-0.3.7.4.1-1.el7.noarch

Comment 1 Ankur Sinha (FranciscoD) 2018-07-20 22:07:49 UTC
This is already fixed in newer versions of fpaste on the Fedora releases, but I'm not sure if those work on EPEL. Could you try out the new release and check by any chance?

Comment 2 Orion Poplawski 2018-07-20 22:14:31 UTC
Current fedora spec has:

Requires:    python3

which is no go in EPEL.  And really shouldn't be present in Fedora either - with the proper shbang the proper requires will be added automatically.

It also still uses #!/usr/bin/env python:

Requires: /usr/bin/env

Comment 3 Ankur Sinha (FranciscoD) 2018-07-20 23:13:19 UTC
I'll push an update for EPEL to correct the shebang---that should fix the error you are seeing.


About the shebang, here on F28, I have:

$ head /usr/bin/fpaste
#!/usr/bin/python3

$ rpm -q fpaste
fpaste-0.3.9.1-3.fc28.noarch

So, it doesn't use /usr/bin/env here. We corrected that when we migrated fpaste to py3 iirc.

Comment 4 Fedora Update System 2018-07-20 23:35:54 UTC
fpaste-0.3.7.4.1-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-068beae9c0

Comment 5 Fedora Update System 2018-07-22 02:59:12 UTC
fpaste-0.3.7.4.1-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-068beae9c0

Comment 6 Fedora Update System 2018-08-08 17:17:34 UTC
fpaste-0.3.7.4.1-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


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