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:
- @echo 'not war?'