FS#17554 - [python] /usr/lib/python2.6/Tools/scripts/README is executable

Attached to Project: Arch Linux
Opened by Vinzent Steinberg (vks) - Sunday, 20 December 2009, 00:44 GMT
Last edited by Allan McRae (Allan) - Monday, 25 January 2010, 09:41 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This sucks especially if you add the scripts to your PATH.

How to reproduce:

$ sudo pacman -S python
$ ls -l /usr/lib/python2.6/Tools/scripts | grep README
-rwxr-xr-x 1 root root 3551 27. Okt 07:26 README

How to fix:

$ chmod a-x /usr/lib/python2.6/Tools/scripts/README

However, this should be really fixed in the PGKBUILD.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 25 January 2010, 09:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-2.6.4-2
Comment by Nezmer (Nezmer) - Monday, 21 December 2009, 11:13 GMT
You can edit the install line in the PKGBUILD (add -m644) but I think you should report this upstream to fix it for good.
Comment by Thomas Dziedzic (tomd123) - Sunday, 03 January 2010, 21:11 GMT
The PKGBUILD installs the README by doing:

install Tools/scripts/README ${pkgdir}/usr/lib/python${_pybasever}/Tools/scripts/

From man install:
-m, --mode=MODE
set permission mode (as in chmod), instead of rwxr-xr-x

This means that -m644 should be used in the PKGBUILD.
I also checked upstream's README and it was 644 so it is the PKGBUILD's fault.

Loading...