<<< Date Index >>>     <<< Thread Index >>>

Re: Installation fails because of mutt_dotlock



On Wed, Feb 02, 2005 at 12:30:48PM +0100, Vincent Lefevre wrote:

> I still have the same problem:
> 
> $ make install
> [...]
> chgrp: changing group of `/home/vlefevre/i686-linux/bin/mutt_dotlock': 
> Operation not permitted
[...]
> though there's already a system mutt_dotlock: /usr/bin/mutt_dotlock
> How can I ask Mutt to use it instead of installing a new one?

If you are not satisfied with Guilhem's answer,
read below my guess (note that I haven't confirmed it).

0) apply the patch below

1) ./prepare --enalble-external-dotlock
(If you don't have "prepare",
aclocal -I m4
autoheader
pushd m4
make -f Makefile.am.in
popd
automake -i
autoconf
./configure --enable-external-dotlock)

2) make; make install

--- configure.in~       Wed Feb  2 20:36:39 2005
+++ configure.in        Wed Feb  2 20:50:43 2005
@@ -452,7 +452,6 @@
         || test "x$mutt_cv_external_dotlock" = "xyes"
 then
         AC_DEFINE(DL_STANDALONE,1,[ Define if you want to use an external 
dotlocking program. ])
-        DOTLOCK_TARGET="mutt_dotlock"
 else
         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
 fi
@@ -469,13 +468,8 @@
 docdir=$mutt_cv_docdir
 AC_SUBST(docdir)
 
-if test x$mutt_cv_setgid = xyes; then
-        DOTLOCK_GROUP='mail'
-        DOTLOCK_PERMISSION=2755
-else
         DOTLOCK_GROUP=''
         DOTLOCK_PERMISSION=755
-fi
 AC_SUBST(DOTLOCK_GROUP)
 AC_SUBST(DOTLOCK_PERMISSION)