FS#22291 - [crda] needs to use python2 when compiling

Attached to Project: Arch Linux
Opened by Emil Renner Berthing (Esmil) - Monday, 03 January 2011, 14:59 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 16 January 2011, 16:08 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Following the python 2 to 3 transition the key2pub.py script in the crda 1.1.1 package
needs to use python2 instead of python. Otherwise the build will fail.
The attached patch fixes the problem.

Additional info:
I'm using the 1.1.1-1 version of the PKGBUILD.

Steps to reproduce:
Compile crda with the new python package installed.
This task depends upon

Closed by  Thomas Bächler (brain0)
Sunday, 16 January 2011, 16:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in trunk.
Comment by Balló György (City-busz) - Sunday, 16 January 2011, 15:03 GMT
No patch required, simply add the following line before make:
sed -i 's/env python/env python2/' utils/key2pub.py
Comment by Emil Renner Berthing (Esmil) - Sunday, 16 January 2011, 15:35 GMT
Sure, that does the same. I guess it's a matter of taste which approach is simpler.

The patch, though, has the added advantage of not breaking the script if for some strange reason it should contain a 'env python' substring some other place than the hashbang header.
Comment by Thomas Bächler (brain0) - Sunday, 16 January 2011, 16:07 GMT

Loading...