tags 632986 moreinfo
thanks
Hi,
I do not see the bug reported in my local Debian package which I
downloaded from the Debian archive as described below. Since newer
4.20.3 is out, it will be nice to package the new version with proper
Python invocation. Bdale, your clarification will be quite helpful to
us.
On Thu, Jul 07, 2011 at 11:21:43AM -0600, Bdale Garbee wrote:
> Package: getmail4
> Severity: serious
> Version: 4.20.2-1
> The /usr/bin/getmail wrapper hard-codes /usr/bin/python2.5, but the package
> does not declare a dependency on a specific version of python.
Are you talking Debian package? I thought I vaguely remember removing
hardcoding by the upstream long time ago. Recent upstream package does
not require such thing. Package dependency is python (>= 2.4).
In my testing system, I see /usr/bin/getmail and similar start as:
| /usr/bin/getmail_fetch:#!/usr/bin/python
| /usr/bin/getmail_maildir:#!/usr/bin/python
| /usr/bin/getmail_mbox:#!/usr/bin/python
| /usr/bin/getmail:#!/usr/bin/python
> Since the wrapper has explicit code to check for a sufficiently recent
> version of python,
I think you mean:
| if sys.hexversion < 0x2030300:
| raise ImportError('getmail version 4 requires Python version 2.3.3 '
| 'or later')
> I suggest changing the wrapper to just call /usr/bin/python
> as the most appropriate fix.
If I find such thing, I agree ...
> Doing so on my system seems to work just fine.
I am not clear about which part of code is called "wrapper" and where did
you find "/usr/bin/python2.5". Let me check ....
$ dpkg -L getmail4| xargs -n1 grep -H python|sort
/usr/bin/getmail_fetch:#!/usr/bin/python
/usr/bin/getmail_maildir:#!/usr/bin/python
/usr/bin/getmail_mbox:#!/usr/bin/python
/usr/bin/getmail:#!/usr/bin/python
/usr/share/doc/getmail4/documentation.html: <a
href="http://docs.python.org/dist/postinstallation-script.html">spotty</a>
/usr/share/doc/getmail4/documentation.html: <a
href="http://docs.python.org/inst/inst.html">Python distutils script</a>
/usr/share/doc/getmail4/documentation.html: <a
href="http://docs.python.org/tut/node8.html#SECTION008110000000000000000">
/usr/share/doc/getmail4/documentation.html: <a
href="http://www.python.org/2.3.4/">http://www.python.org/2.3.4/</a>
/usr/share/doc/getmail4/documentation.html: <a
href="http://www.python.org/">Python</a>
/usr/share/doc/getmail4/documentation.html: <a
href="news:comp.lang.python">the comp.lang.python newsgroup</a>.
/usr/share/doc/getmail4/documentation.html:$ python setup.py bdist
--format=<span class="meta">package-format</span>
/usr/share/doc/getmail4/documentation.html:$ python setup.py build
/usr/share/doc/getmail4/documentation.html:$ python setup.py install
/usr/share/doc/getmail4/documentation.html:# python setup.py install
/usr/share/doc/getmail4/documentation.html:# python setup.py install
--prefix=<span class="meta">path</span>
/usr/share/doc/getmail4/documentation.html:# python setup.py
--install-scripts=/usr/local/bin/
/usr/share/doc/getmail4/documentation.html:# python setup.py
--install-scripts=/usr/local/bin/ --install-data=/usr/local/
/usr/share/doc/getmail4/documentation.html:# python setup.py install
--show-default-install-dirs
/usr/share/doc/getmail4/documentation.html: <span class="file"><span
class="meta">prefix</span>/lib/python-<span
class="meta">python-version</span>/site-packages/</span>.
/usr/share/doc/getmail4/documentation.html: <span
class="file">/usr/lib/python-<span
class="meta">python-version</span>/site-packages/</span>,
/usr/share/doc/getmail4/documentation.html: <span
class="file">/usr/lib/python-<span
class="meta">python-version</span>/site-packages/</span>,
/usr/share/doc/getmail4/faq.html: <a
href="http://bugs.python.org/issue1092502">OS X implementation of realloc() is
broken</a>,
/usr/share/doc/getmail4/faq.html: <a
href="http://bugs.python.org/issue1389051">a bug in Python's IMAP library</a>.
/usr/share/doc/getmail4/faq.html: <a
href="http://mail.python.org/pipermail/python-dev/2003-July/036932.html">this
Python developers' mailing list message</a>.
/usr/share/doc/getmail4/faq.html:python2.5(27172) malloc: *** error: can't
allocate region
/usr/share/doc/getmail4/faq.html:python2.5(27172) malloc: *** set a breakpoint
in szone_error to debug
/usr/share/doc/getmail4/faq.html:python2.5(27172) malloc: ***
vm_allocate(size=15699968) failed (error code=3)
/usr/share/doc/getmail4/faq.html:/usr/lib/python2.3/optparse.py:668:
FutureWarning: %u/%o/%x/%X of negative int will return a signed string in
Python 2.4 and up
/usr/share/doc/getmail4/README:python.org for details.
/usr/share/doc/getmail4/README: python setup.py build
/usr/share/doc/getmail4/README: python setup.py install
/usr/share/doc/getmail4/README: /usr/lib/pythonXXX, but may be elsewhere --
this is detected automatically)
/usr/share/doc/getmail4/README: your Python installation (typically
/usr/local/lib/pythonXXX or
/usr/share/doc/getmail4/troubleshooting.html: <a
href="http://bugs.python.org/issue1389051">a bug in Python's IMAP library</a>
/usr/share/doc/getmail4/troubleshooting.html:python -c "import socket;
print socket.getfqdn()"
/usr/share/doc/getmail4/troubleshooting.html: re-install getmail with <span
class="file">python setup.py install</span>
/usr/share/getmail4/getmailcore/_retrieverbases.py: # A serious imaplib bug
(http://bugs.python.org/issue1389051) was
----------
Except in documentation, I see no reference to the versioned python code.
Regards,
Osamu
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]