zdaemon-suffix

Brian Sutherland brian at vanguardistas.net
Mon May 2 07:46:55 UTC 2011


On Sun, May 01, 2011 at 04:09:53PM +0300, Gediminas Paulauskas wrote:
> 2011/4/27 Arnaud Fontaine <arnau at debian.org>:
> > AFAIK, this  is up  to the maintainer  of the  Debian package and  not a
> > policy.   Personally, I  think it  makes  more sense  to have  versioned
> > scripts  in  /usr/bin  or  /usr/sbin  for the  following  reasons  (when
> > relevant  of course, because  as explained  below, when  the application
> > supports  only one  version of  Python, there  is no  need  of versioned
> > script):
> >
> > * All  the  language  interpreted   scripts  in  these  directories  are
> >  generally  (always?)    expected  to  be   called  without  specifying
> >  explicitely  the  interpreter to  be  used  on  the command  line,  so
> >  following  the same  behavior  as  a compiled  binary  (which is  more
> >  consistent IMHO).
> >
> > * As of  Python, if only one  non-versioned script is  provided in these
> >  directories, but the script relies on modules supporting both Python 2
> >  and 3, the  code of the script itself might differ,  thus ending up in
> >  versioned scripts anyway,  namely one for Python 2  and one for Python
> >  3.
> >
> >
> > For zdaemon specifically,  there are only versioned scripts,  but as you
> > explained, it might not be a  good idea neither to have *only* versioned
> > scripts for  third-party applications. Therefore, perhaps  we could have
> > the following:
> >
> > * Provides versioned  scripts only and only if  the application supports
> >  multiple versions of Python.
> >
> > * The  non-versioned script  will  be  a link  to  the versioned  script
> >  corresponding  to  the  default   Python  version.   In  case  of  the
> >  application  does  not  support   multiple  versions  of  Python,  the
> >  non-versioned script relies on the supported Python version.
> 
> If there are both zope-testrunner2.7 and zope-testrunner2.6 scripts,
> and zope-testrunner is a link to zope-testrunner2.7, then you would
> have both versioned and unversioned scripts. Better if there is a
> zope-testrunner script that uses /usr/bin/python, e.g. paster from
> python-pastescript. But then there is a problem if a new python
> version is added or removed, the package needs to be rebuilt. In
> Ubuntu Natty, I have paster and paster2.6 scripts, but not paster2.7.
> 
> Also, dh adds all to Depends: python, python2.6, python2.7
> 
> >
> >
> > This  is just my  opinion though,  therefore I  may miss  some important
> > points. Let's see what others maintainers think about that...

+0.1 to unversioned scripts.

But that's just because I am lazy by nature and don't want to upload new
packages every time there's a python transition;)

I also don't like having lots of code in debian/rules, and would prefer
to default to whatever debhelper does.

-- 
Brian Sutherland



More information about the pkg-zope-developers mailing list