Bug#377964: [Build-common-hackers] Bug#377964: cdbs should use the unversioned interpreter for the default python version

Peter Eisentraut peter_e at gmx.net
Mon Jul 24 22:31:29 UTC 2006


Matthias Klose wrote:
> the interpreter is used by installation scripts to set the
> interpreter name in scripts, leading to hash lines
> /usr/bin/python2.3, which dh_python then turns into a python2.3
> dependency. Please call the unversioned interpreter for the default
> python version.

I have implemented a fix for this -- see attached patch -- but it breaks 
the python-numpy build, which you nominated as example, so I'm unsure 
what to do.

On further consideration, I think packages that rely on this behavior 
either way are in error.  The policy says that if programs can run with 
any version, they must use /usr/bin/python as interpreter, so this must 
be a fixed value, no matter how the build script is called or whether 
the version being used for building is the default one at build time.  
If, on the other hand, a program really needs a specific version 
because of the way it is written, that version should be hard-wired 
into the program, no matter what version you use to run the build 
script.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-377964.diff
Type: text/x-diff
Size: 4320 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20060725/2b9b6cbd/patch-377964.bin


More information about the Build-common-hackers mailing list