1) With SETGID_MAIL enabled (only with dot locking), if the chgrp of
authorDavid Levine <levinedl@acm.org>
Wed, 25 Apr 2012 19:21:42 +0000 (14:21 -0500)
committerDavid Levine <levinedl@acm.org>
Wed, 25 Apr 2012 19:27:21 +0000 (14:27 -0500)
   inc fails during install, don't attempt to chmod it.  This will
   cause make install to fail, which is good in this case.
2) Added SETGID_MAIL= to the install by the test suite so that it
   does not attempt the chgrp+chmod.  The test suite didn't need them.
3) Removed the SETGID_MAIL= from the test suite invocation in build_nmh.
(cherry picked from commit 721276218bc03d4b0d86306c9b2990fae6f07426)

Makefile.am
docs/contrib/build_nmh
test/common.sh.in

index 7817bfc..e68973d 100644 (file)
@@ -430,7 +430,7 @@ install-exec-hook:
        ln $(DESTDIR)$(bindir)/show$(EXEEXT) $(DESTDIR)$(bindir)/prev$(EXEEXT)
        ln $(DESTDIR)$(bindir)/show$(EXEEXT) $(DESTDIR)$(bindir)/next$(EXEEXT)
        if test x$(SETGID_MAIL) != x; then \
-               chgrp $(MAIL_SPOOL_GRP) $(DESTDIR)$(bindir)/inc$(EXEEXT); \
+               chgrp $(MAIL_SPOOL_GRP) $(DESTDIR)$(bindir)/inc$(EXEEXT) && \
                chmod 2755 $(DESTDIR)$(bindir)/inc$(EXEEXT); \
        fi
 
index 55a61c2..344815d 100755 (executable)
@@ -300,7 +300,7 @@ if [ $status -eq 0 ]; then
 
   if [ $status -eq 0 ]; then
     [ $verbose -ge 1 ]  &&  echo testing . . .
-    checkoutput=`make $check SETGID_MAIL= 2>>$logfile`
+    checkoutput=`make $check 2>>$logfile`
     status=$?
 
     tests_summary=`echo "$checkoutput" | grep tests`
index 84d08fc..126ce20 100644 (file)
@@ -142,7 +142,8 @@ setup_test ()
   if [ -d ${MH_INST_DIR}${bindir} ]; then
     :
   else
-    (cd ${MH_OBJ_DIR} && make DESTDIR=${MH_INST_DIR} install) || exit 1
+    (cd ${MH_OBJ_DIR} && make DESTDIR=${MH_INST_DIR} SETGID_MAIL= install) ||
+      exit 1
   fi
 
   # clean old test data