[Build-common-hackers] Bug#587373: cdbs: python-distutils.mk:	Installs scripts with a versioned shebang
    Stefano Rivera 
    stefano at rivera.za.net
       
    Sun Jun 27 23:07:15 UTC 2010
    
    
  
Package: cdbs
Version: 0.4.87
Severity: normal
Tags: patch
Hi, as part of the Python 2.6 transition, I've been digging through the
packages that depend on python2.5. An awful lot of them do so because
they install scripts with a shebang of the form:
| #!/usr/bin/python2.5
dh works around this by building with the versioned python interpretors
first, and then the default /usr/bin/python
http://git.debian.org/?p=debhelper/debhelper.git;a=blob;f=Debian/Debhelper/Buildsystem/python_distutils.pm#l111
However distutils provides a way to force a particular shebang:
--executable
Here's a patch to pass that (by default) when building.
SR
-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdbs-python-shebang.patch
Type: text/x-diff
Size: 658 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20100628/a9188715/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20100628/a9188715/attachment.pgp>
    
    
More information about the Build-common-hackers
mailing list