Your message dated Sun, 27 Jun 2010 22:52:04 +0200
with message-id <[email protected]>
and subject line python2.3 and python2.1 are no longer in Debian
has caused the Debian Bug report #399433,
regarding python-doc: woody -> sarge upgrade leaves broken info entries
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
399433: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=399433
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-doc
Version: 2.3.5-2
Severity: normal


Some time ago I upgraded python-doc from woody to sarge under aptitude.
This quite properly performed two steps: (1) remove python2.1-doc, no
longer needed since marked as auto-dependency of python-doc; and (2)
install python2.3-doc.

Unfortunately, the postrm of woody's python2.1-doc (version 2.1.3-3)
is bugged: it does not do its "install-info --remove" correctly.  It
has bugged lines like
    install-info --quiet --remove /usr/share/info/PVER-lib.info
instead of
    install-info --quiet --remove /usr/share/info/python2.1-lib.info

I don't know if this bug was ever fixed for sarge's python2.1-doc
(2.1.3dfsg-1sarge1), but even if it was, that isn't really enough.
Systems such as mine, which uninstalled woody's python2.1-doc without
upgrading it first, won't pick up the bugfix.  They will forever have
broken entries in /usr/share/info/dir.

In short: because of the bug in woody's python2.1-doc, the woody -->
sarge upgrade of python-doc is broken.  I assume the same would be true
of woody -> sid upgrades (not officially supported, of course).

Perhaps python-doc could clean up this mess?  It could have a preinst,
say, which does something like

# clean up possible cruft left behind by woody's python2.1-doc (bug #XXXXXX)
if [ -x /usr/sbin/install-info ]; then
   for f in lib ref api ext tut dist;
      do if [ ! -x /usr/share/info/python2.1-${f}.info.gz ]; then
         install-info --quiet --remove /usr/share/info/python2.1-${f}.info
         fi;
     done;
fi

To explain the problem, here are details of the bug in python2.1-doc.  I
haven't filed a bug against 2.1, since it's on the way out.

Package: python2.1-doc
Version: 2.1.3-3

synopsis: broken 'install-info --remove' in prerm script

The six info pages installed by the postinst with this code block

if [ -x /usr/sbin/install-info ]; then
    install-info --quiet --section "Development" "Python" \
        --description="Python 2.1 Library Reference" \
        /usr/share/info/python2.1-lib.info
    #install-info --quiet --section "Development" "Python" \
    #    --description="Python 2.1 Macintosh Modules" \
    #    /usr/share/info/python2.1-mac.info
    install-info --quiet --section "Development" "Python" \
        --description="Python 2.1 Reference Manual" \
        /usr/share/info/python2.1-ref.info
    install-info --quiet --section "Development" "Python" \
        --description="Python/C 2.1 API Reference Manual" \
        /usr/share/info/python2.1-api.info
    install-info --quiet --section "Development" "Python" \
        --description="Extending & Embedding Python 2.1" \
        /usr/share/info/python2.1-ext.info
    install-info --quiet --section "Development" "Python" \
        --description="Python 2.1 Tutorial" \
        /usr/share/info/python2.1-tut.info
    install-info --quiet --section "Development" "Python" \
        --description="Distributing Python Modules (2.1)" \
        /usr/share/info/python2.1-dist.info
fi

are not removed by this broken code block from the prerm

if [ -x /usr/sbin/install-info ]; then
    install-info --quiet --remove /usr/share/info/PVER-lib.info
    #install-info --quiet --remove /usr/share/info/PVER-mac.info
    install-info --quiet --remove /usr/share/info/PVER-ref.info
    install-info --quiet --remove /usr/share/info/PVER-api.info
    install-info --quiet --remove /usr/share/info/PVER-ext.info
    install-info --quiet --remove /usr/share/info/PVER-tut.info
    install-info --quiet --remove /usr/share/info/PVER-dist.info
fi

since PVER is not a variable.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-3-686
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages python-doc depends on:
ii  python2.3-doc              2.3.5-3sarge2 Documentation for the high-level o

-- no debconf information



--- End Message ---
--- Begin Message ---
python2.3 and python2.1 are no longer in Debian so I'm closing this bug


--- End Message ---

Reply via email to