FS#27603 - [libsndfile] python2 should be used as the python interpreter

Attached to Project: Arch Linux
Opened by chubtuff (chubtuff) - Saturday, 17 December 2011, 10:00 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 17 December 2011, 23:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

libsndfile has three python scripts, namely src/binheader_writef_check.py, src/create_symbols_file.py and programs/test-sndfile-metadata-set.py. At least one of these files is relevant for running the included test suite. All of the scripts have this as their first line:

#!/usr/bin/python

which causes the scripts to fail with syntax errors.

Additionally, src/Makefile contains the following line:

@if [ -x /usr/bin/python ]; then $(srcdir)/binheader_writef_check.py $(srcdir)/*.c ; fi

which causes no problems if the interpreter directive of the python scripts is set to /usr/bin/python2.


Additional info:
* libsndfile 1.0.25-1
* python2 2.7.2-4
* python 3.2.2-2


Steps to reproduce:
0. Install python.
1. Run `makepkg' for libsndfile.
2. Try to run `make check' in the root source directory.


Attached is a new PKGBUILD to resolve the bug.
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 17 December 2011, 23:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in svn trunk

Loading...