On 2015-02-01 13:16:04 -0600, Conor Cook wrote:
> My mutt -v does not list the "Configure Options," so I went through
> and tried to corroborate the list of "USE-…" and "HAVE_…" options,
> but still the error:
>
> > chgrp: you are not a member of group mail
> > Can't fix mutt_dotlock's permissions! This is required to lock mailboxes
> > in the mail spool directory.
> > make[4]: *** [install-exec-hook] Error 1
> > make[3]: *** [install-exec-am] Error 2
> > make[2]: *** [install-am] Error 2
> > make[1]: *** [install-recursive] Error 1
> > make: *** [install] Error 2
I solve this problem by using the very old sysdotlock patch (attached).
It adds a --with-system-dotlock option so that one can use a system
mutt_dotlock program that may already be installed.
Now, AFAIK, dotlocking is completely unreliable. Only fcntl locking
should be used. If not available, use a mailbox format that does not
need locking.
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
diff -r 7d55bad3b11f Makefile.am
--- a/Makefile.am Fri Dec 21 11:17:41 2012 +0100
+++ b/Makefile.am Sat Dec 22 00:36:04 2012 +0100
@@ -44,7 +44,7 @@
$(INTLDEPS)
DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
- -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
+ -DDOTLOCK_PATH=\"@DOTLOCK_PATH@\" -DMUTTLOCALEDIR=\"$(datadir)/locale\"
\
-DHAVE_CONFIG_H=1
AM_CPPFLAGS=-I. -I$(top_srcdir) $(IMAP_INCLUDES) $(GPGME_CFLAGS) -Iintl
diff -r 7d55bad3b11f configure.ac
--- a/configure.ac Fri Dec 21 11:17:41 2012 +0100
+++ b/configure.ac Sat Dec 22 00:36:04 2012 +0100
@@ -530,8 +530,6 @@
MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
fi
-AC_SUBST(DOTLOCK_TARGET)
-
dnl autoconf <2.60 compatibility
if test -z "$datarootdir"; then
datarootdir='${prefix}/share'
@@ -556,8 +554,18 @@
DOTLOCK_GROUP=''
DOTLOCK_PERMISSION=755
fi
+
+AC_ARG_WITH(system-dotlock,
AS_HELP_STRING([--with-system-dotlock=PATH],[Specify where mutt_dotlock already
exists]),
+ [DOTLOCK_TARGET=''
+ DOTLOCK_GROUP=''
+ DOTLOCK_PERMISSION=755
+ DOTLOCK_PATH=$withval],
+ [DOTLOCK_PATH=$bindir/mutt_dotlock])
+
+AC_SUBST(DOTLOCK_TARGET)
AC_SUBST(DOTLOCK_GROUP)
AC_SUBST(DOTLOCK_PERMISSION)
+AC_SUBST(DOTLOCK_PATH)
AC_ARG_WITH(domain, AS_HELP_STRING([--with-domain=DOMAIN],[Specify your DNS
domain name]),
[if test $withval != yes; then
diff -r 7d55bad3b11f doc/Makefile.am
--- a/doc/Makefile.am Fri Dec 21 11:17:41 2012 +0100
+++ b/doc/Makefile.am Sat Dec 22 00:36:04 2012 +0100
@@ -2,7 +2,7 @@
DSLROOT = @DSLROOT@
-DEFS = -DSYSCONFDIR=\"$(sysconfdir)\" -DBINDIR=\"$(bindir)\" -DHAVE_CONFIG_H=1
+DEFS = -DSYSCONFDIR=\"$(sysconfdir)\" -DBINDIR=\"$(bindir)\"
-DDOTLOCK_PATH=\"@DOTLOCK_PATH@\" -DHAVE_CONFIG_H=1
AM_CPPFLAGS = -I. -I.. -I$(includedir) -I$(top_srcdir)
MAKEDOC_CPP = $(CPP) $(AM_CPPFLAGS) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C
diff -r 7d55bad3b11f init.h
--- a/init.h Fri Dec 21 11:17:41 2012 +0100
+++ b/init.h Sat Dec 22 00:36:04 2012 +0100
@@ -615,7 +615,7 @@
** filtered message is read from the standard output.
*/
#if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
- { "dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, UL BINDIR
"/mutt_dotlock" },
+ { "dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, UL DOTLOCK_PATH },
/*
** .pp
** Contains the path of the \fCmutt_dotlock(8)\fP binary to be used by