Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#38915 - [python2] Bad shebang

Attached to Project: Arch Linux
Opened by Nicolas (alkino) - Friday, 14 February 2014, 15:53 GMT
Last edited by Felix Yan (felixonmars) - Saturday, 15 February 2014, 15:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Angel Velasquez (angvp)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Hello,

I try to use /usr/lib/python2.7/Tools/i18n/pygettext.py

$ pacman -Qo /usr/lib/python2.7/Tools/i18n/pygettext.py
/usr/lib/python2.7/Tools/i18n/pygettext.py is owned by python2 2.7.6-1

But the shebang is bad:

$ head -1 /usr/lib/python2.7/Tools/i18n/pygettext.py
#! /usr/bin/env python

In the PKGBUILD [1], there is a part seding them line 84, but the installation is line 73.

So I do a trivial patch (attached) moving it.

Thanks ;)

Nicolas

[1] https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/python2
This task depends upon

Closed by  Felix Yan (felixonmars)
Saturday, 15 February 2014, 15:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.7.6-2
Comment by Nicolas (alkino) - Friday, 14 February 2014, 16:37 GMT
In fact, the problem is here:
https://projects.archlinux.org/svntogit/packages.git/commit/trunk/PKGBUILD?h=packages/python2&id=f16f20f25f4d73d05b211611186d7127455f9624

- find "${pkgdir}"/usr/lib/python${_pybasever}/ -name '*.py' | \
+ find . -name '*.py' | \
We're not in the good directory.

It's the same for the Touch.
Comment by Felix Yan (felixonmars) - Saturday, 15 February 2014, 06:01 GMT
Seems my patch in  FS#37006  was applied to wrong place, the find and touch stuff should happen in prepare()

See the patch for reference: https://bugs.archlinux.org/task/37006?getfile=11226
Comment by Angel Velasquez (angvp) - Saturday, 15 February 2014, 15:05 GMT

Loading...