• Bug#1109072: mlock: Package mlock missing in trixie

    From Lloyd@21:1/5 to All on Thu Jul 10 21:50:01 2025
    Package: mlock
    Version: 8:2007f~dfsg-7.1
    Severity: serious
    Tags: trixie patch
    Affects: alpine

    The mlock program is missing in trixie. This is possibly related to the sudden depreciation of uw-imap.

    However, mlock is a standalone program with no dependencies on uw-imap outside the build system.

    mlock is used with the Alpine mail client as an optional dependency to provide mailbox locking.

    Oddly enough, a copy of uw-imap (thus mlock) ship with Alpine source but are not compiled as part of the package.

    Due to Debian package organization, mlock pseudo-package is tied to the uw-imap source tarball, not Alpine.

    mlock is present in bookworm and unstable, but was uninstalled with no replacement during upgrade to trixie.

    The below patch will allow mlock to compile independently of the uw-imap library (or Alpine).

    Alternatively, please re-align this package to the Alpine source tarball.

    Regards
    Lloyd

    --- mlock.c.orig 2025-07-10 18:56:53.245980338 -0000
    +++ mlock.c 2025-07-10 18:56:14.313768725 -0000
    @@ -40,6 +40,8 @@
    #include <netdb.h>
    #include <ctype.h>
    #include <string.h>
    +#include <unistd.h>
    +#include <time.h>

    #define LOCKTIMEOUT 5 /* lock timeout in minutes */
    #define LOCKPROTECTION 0664

    --- Makefile.orig 2025-07-10 18:35:30.746998147 -0000
    +++ Makefile 2025-07-10 19:09:13.030120243 -0000
    @@ -24,14 +24,8 @@
    # Date: 8 February 1999
    # Last Edited: 30 August 2006

    -
    -C = ../c-client
    -SHELL = /bin/sh
    -
    -# Get local definitions from c-client directory
    -
    -CC = `cat $C/CCTYPE`
    -CFLAGS = `cat $C/CFLAGS`
    +CC = gcc
    +CFLAGS = -O2 -pipe -fno-omit-frame-pointer

    all: mlock

    @@ -39,13 +33,7 @@
    $(CC) $(CFLAGS) -o mlock mlock.o

    install: mlock
    - chgrp mail mlock
    - chmod 3711 mlock
    - cp -p mlock /etc/mlock
    + install -m 3711 -g mail mlock /usr/bin/mlock

    clean:
    rm -f *.o mlock || true
    -
    -# A monument to a hack of long ago and far away...
    -love:
    - @ech
  • From Santiago Vila@21:1/5 to Lloyd on Thu Jul 10 22:50:01 2025
    severity 1109072 normal
    thanks

    On Thu, Jul 10, 2025 at 07:39:37PM +0000, Lloyd wrote:
    Package: mlock
    Version: 8:2007f~dfsg-7.1
    Severity: serious
    Tags: trixie patch
    Affects: alpine

    The mlock program is missing in trixie. This is possibly related to the sudden depreciation of uw-imap.

    More than "missing", it was removed deliberately because the only
    package using it was alpine, and now alpine includes and uses /usr/bin/alpine-mlock instead.

    However, mlock is a standalone program with no dependencies on uw-imap outside the build system.

    mlock is used with the Alpine mail client as an optional dependency to provide mailbox locking.

    Not anymore, alpine now uses /usr/bin/alpine-mlock. We did that
    precisely to be able to drop the mlock package.

    Oddly enough, a copy of uw-imap (thus mlock) ship with Alpine source but are not compiled as part of the package.

    But mlock is compiled as part of the alpine package, under the name alpine-mlock.

    Do you miss mlock because you are still using it,
    or only because you believed alpine still needed it?

    If it's the second, I think this bug could be closed. If it's
    the first, I think mlock as a standalone package is very unlikely
    to come back, because no other package is using it.

    I'm cc:ing Chris who reported this:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091778

    just in case he wants to add anything which I may have missed.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)