FS#45315 - [jython] Wrong shebang lines and name conflicts for scripts
Attached to Project:
Community Packages
Opened by Chih-Hsuan Yen (yan12125) - Saturday, 13 June 2015, 16:23 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Thursday, 09 April 2020, 03:53 GMT
Opened by Chih-Hsuan Yen (yan12125) - Saturday, 13 June 2015, 16:23 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Thursday, 09 April 2020, 03:53 GMT
|
Details
Description:
$ pip2.7 zsh: /opt/jython/bin/pip2.7: bad interpreter: /build/jython/pkg/jython/opt/jython/bin/jython: no such file or directory The cause is obvious: $ grep -r '^#!' /opt/jython/bin /opt/jython/bin/jython:#!/usr/bin/env bash /opt/jython/bin/pip2:#!/build/jython/pkg/jython/opt/jython/bin/jython /opt/jython/bin/pip:#!/build/jython/pkg/jython/opt/jython/bin/jython /opt/jython/bin/easy_install-2.7:#!/build/jython/pkg/jython/opt/jython/bin/jython /opt/jython/bin/easy_install:#!/build/jython/pkg/jython/opt/jython/bin/jython /opt/jython/bin/pip2.7:#!/build/jython/pkg/jython/opt/jython/bin/jython They should be /opt/jython/bin/jython instead. Also, I recommend renaming all scripts to have a suffix "-jython". For example pip2 => pip2-jython. This prevents name conflicts with /usr/bin/pip2 from extra/python2-pip. Additional info: community/jython 2.7.0-1 extra/python2-pip 7.0.3-1 Steps to reproduce: |
This task depends upon
Closed by Chih-Hsuan Yen (yan12125)
Thursday, 09 April 2020, 03:53 GMT
Reason for closing: Fixed
Additional comments about closing: jython 2.7.2-1
Thursday, 09 April 2020, 03:53 GMT
Reason for closing: Fixed
Additional comments about closing: jython 2.7.2-1
I suggest to increase severity for this issue because it makes existed python installation unusable.
Could this be given another look?
Felix Yan: do you think the patch is OK? If so I will commit it.
[1] https://pkgbuild.com/~yan12125/FS%2345315.diff
[2] https://pkgbuild.com/~yan12125/jython-2.7.2-1-any.pkg.tar.zst
@felixonmars: I checked `jython -m pip` works. Please tell me if there are some other issues, thanks!