• Bug#265282: acknowledged by developer (Bug#265282: fixed in mailscanner

    From paddy@1:229/2 to Debian Bug Tracking System on Fri Aug 20 20:30:12 2004
    From: [email protected]

    On Thu, Aug 19, 2004 at 06:48:06PM -0700, Debian Bug Tracking System wrote:
    This is an automatic notification regarding your Bug report
    #265282: 4.32.5-{1,2} upgrades broke with at least new 'move CustomFunctions' code,
    which was filed against the mailscanner package.

    It has been closed by one of the developers, namely
    Matthias Klose <[email protected]>.

    Their explanation is attached below. If this explanation is
    unsatisfactory and you have not received a better one in a separate
    message then please contact the developer, by replying to this email.

    <snip>

    # wget -m http://incoming.debian.org/mailscanner_4.32.5-3_all.deb
    --18:09:18-- http://incoming.debian.org/mailscanner_4.32.5-3_all.deb
    => `incoming.debian.org/mailscanner_4.32.5-3_all.deb'
    Resolving incoming.debian.org... 208.185.25.31
    Connecting to incoming.debian.org[208.185.25.31]:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 797,206 [application/x-debian-package]

    100%[============================================================>] 797,206 110.66K/s ETA 00:00

    18:09:29 (71.96 KB/s) - `incoming.debian.org/mailscanner_4.32.5-3_all.deb' saved [797206/797206]


    FINISHED --18:09:29--
    Downloaded: 797,206 bytes in 1 files
    # dpkg --install incoming.debian.org/mailscanner_4.32.5-3_all.deb
    (Reading database ... 201410 files and directories currently installed.) Preparing to replace mailscanner 4.32.5-1 (using .../mailscanner_4.32.5-3_all.deb) ...
    Document `mailscanner' is not installed, cannot remove. /etc/init.d/mailscanner: directory /var/spool/MailScanner: wrong owner invoke-rc.d: initscript mailscanner, action "stop" failed.
    mv: `/usr/share/MailScanner/MailScanner/CustomFunctions/BigLogging.pm' and `/etc/MailScanner/CustomFunctions/BigLogging.pm' are the same file
    dpkg: error processing incoming.debian.org/mailscanner_4.32.5-3_all.deb (--install):
    subprocess pre-installation script returned error exit status 1 /etc/init.d/mailscanner: directory /var/spool/MailScanner: wrong owner invoke-rc.d: initscript mailscanner, action "start" failed.
    Errors were encountered while processing:
    incoming.debian.org/mailscanner_4.32-3_all.deb

    As I said in previous mail, simply restricting the move code in preinst
    to upgrade time will not prevent this.

    In particular /usr/share/MailScanner/MailScanner/CustomFunctions/BigLogging.pm is
    already symlinked to /etc/MailScanner/CustomFunctions/BigLogging.pm. This package
    put it there :)

    Specifically:

    # ls -l /etc/MailScanner/Custom*
    -rw-r--r-- 1 root root 54442 Mar 3 20:36 /etc/MailScanner/CustomConfig.pm

    /etc/MailScanner/Custom:
    total 0

    /etc/MailScanner/CustomFunctions:
    -rw-r--r-- 1 root root 871 Mar 24 12:44 BigLogging.pm

    # ls -l /usr/share/MailScanner/MailScanner/Custom*
    lrwxrwxrwx 1 root root 23 Aug 20 18:18 /usr/share/MailScanner/MailScanner/Custom -> /etc/MailScanner/Custom
    lrwxrwxrwx 1 root root 32 Aug 10 11:32 /usr/share/MailScanner/MailScanner/CustomConfig.pm -> /etc/MailScanner/CustomConfig.pm
    lrwxrwxrwx 1 root root 32 Aug 10 11:32 /usr/share/MailScanner/MailScanner/CustomFunctions -> /etc/MailScanner/CustomFunctions

    I'm loathe to try to patch your preinst code, because I don't entirely understand
    what you're trying to do, and wouldn't know how to do it properly in any case, but would something along the lines of:

    - if [ "$1" = "upgrade" ]; then
    + version=`dpkg -s mailscanner 2>/dev/null | awk '/^Version:/ {print $2}'`
    + if [ "$1" = "upgrade" -a "$version" \< "4.32.5-1" ]; then

    help, or even:

    - if [ ! -h /etc/MailScanner/$d ]; then
    + if [ ! -h /usr/share/MailScanner/MailScanner/$d ]; then

    Also, I have:

    # grep "Run As" /etc/MailScanner/MailScanner.conf
    #Run As User = mail
    #Run As User = postfix
    #Run As User = Debian-exim
    #Run As Group = mail
    #Run As Group = postfix
    #Run As Group = Debian-exim
    # by a user other than the "Run As User" setting at the top of this file,
    # Note: If the "Run As User" is not "root" then you cannot change the
    # "Run As User" is a member of both of the groups "Run As Group"
    # by a user other than the "Run As User" setting at the top of this file,
    # Note: If the "Run As User" is not "root" then you cannot change the
    # "Run As User" is a member of both of the groups "Run As Group"

    This would work (ie: I'm inclined to regard it as valid).
    But that's another bug!


    Regards,

    Paddy



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)