[pkg-fso-maint] Bug#547510: Bug#547510: zhone refuse to start

Joey Hess joeyh at debian.org
Wed Sep 23 20:13:53 UTC 2009


Joachim Breitner wrote:
> hi,
> 
> Am Mittwoch, den 23.09.2009, 21:27 +0200 schrieb Jakub Wilk:
> > >We discussed possible breakage in #520834 but missed the case that python
> > >script shebang lines would be modified like this. This seems to be done
> > >by python2.4 setup.py, but not by python2.5 setup.py. In the latter case
> > >you get #!/usr/bin/python. (Is this a bug in python2.4?)
> > 
> > Weird, dh should already take care of this:
> > 
> > $ grep shebang -C1 /usr/share/perl5/Debian/Debhelper/Buildsystem/python_distutils.pm
> >            # We need to to run setup.py with the default python first
> >            # as distutils/setuptools modifies the shebang lines of scripts.
> >            # This ensures that #!/usr/bin/python is used and not pythonX.Y
> > 
> > And, when I rebuild zhone from source, /usr/bin/zhone indeed ends up 
> > with the proper #!/usr/bin/python shebang.
> 
> I hope you didn’t try the version -5 I just uploaded :-)
> 
> Well, you need to ensure that the default python is run last, since the
> last copy of the script is the one that gets installed. (At least that’s
> my oberservation.)

Bernd, did you get it backwards when writing the above code?

Build order does not actually matter, but installation order does.
At least in this case, the last python version to run the install
overwrites the script from the other version, so default should be last.

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20090923/ea3819a6/attachment.pgp>


More information about the pkg-fso-maint mailing list