]> git.pld-linux.org Git - packages/mutt.git/commitdiff
always compile with dotlocking enabled
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 4 Apr 2001 21:36:05 +0000 (21:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mutt-forcedotlock.patch -> 1.1
    mutt.spec -> 1.69

mutt-forcedotlock.patch [new file with mode: 0644]
mutt.spec

diff --git a/mutt-forcedotlock.patch b/mutt-forcedotlock.patch
new file mode 100644 (file)
index 0000000..4b7c077
--- /dev/null
@@ -0,0 +1,47 @@
+diff -urN mutt-1.3.17.org/configure.in mutt-1.3.17/configure.in
+--- mutt-1.3.17.org/configure.in       Wed Apr  4 23:31:32 2001
++++ mutt-1.3.17/configure.in   Wed Apr  4 23:33:55 2001
+@@ -321,41 +321,8 @@
+       fi
+       AC_DEFINE_UNQUOTED(MAILPATH, "$mutt_cv_mailpath")
+-      AC_CACHE_CHECK(if $mutt_cv_mailpath is world writable, mutt_cv_worldwrite, [AC_TRY_RUN([#include <sys/types.h>
+-#include <sys/stat.h>
+-
+-int main (int argc, char **argv)
+-{
+-      struct stat s;
+-
+-      stat ("$mutt_cv_mailpath", &s);
+-      if (s.st_mode & S_IWOTH) exit (0);
+-      exit (1);
+-}], mutt_cv_worldwrite=yes, mutt_cv_worldwrite=no, mutt_cv_worldwrite=no)])
+-
+-      mutt_cv_setgid=no
+-      if test $mutt_cv_worldwrite = yes; then
+-              AC_DEFINE(USE_DOTLOCK)
+-      else
+-
+-              AC_CACHE_CHECK(if $mutt_cv_mailpath is group writable, mutt_cv_groupwrite, [AC_TRY_RUN([#include <sys/types.h>
+-#include <sys/stat.h>
+-
+-int main (int argc, char **argv)
+-{
+-      struct stat s;
+-
+-      stat ("$mutt_cv_mailpath", &s);
+-      if (s.st_mode & S_IWGRP) exit (0);
+-      exit (1);
+-}], mutt_cv_groupwrite=yes, mutt_cv_groupwrite=no, mutt_cv_groupwrite=no)])
+-
+-              if test $mutt_cv_groupwrite = yes; then
+-                      AC_DEFINE(USE_DOTLOCK)
+-                      AC_DEFINE(USE_SETGID)
+-                      mutt_cv_setgid=yes
+-              fi
+-      fi
++      AC_DEFINE(USE_DOTLOCK)
++      AC_DEFINE(USE_SETGID)
+ fi
+ AC_ARG_ENABLE(external_dotlock, [  --enable-external-dotlock  Force use of an external dotlock program],
index 5df41465bdb2f01b3d0e958ad0d843ecd70fb3be..6a158def83fcca258ae30a9d1b7064bd5d95dc9d 100644 (file)
--- a/mutt.spec
+++ b/mutt.spec
@@ -15,6 +15,7 @@ Group(pt):    Aplica
 Source0:       ftp://ftp.mutt.org/pub/mutt/devel/%{name}-%{version}.tar.gz
 Source1:       %{name}.desktop
 Source2:       %{name}.png
+Patch0:                %{name}-forcedotlock.patch
 URL:           http://www.mutt.org/
 Requires:      smtpdaemon
 Requires:      mailcap
@@ -56,6 +57,7 @@ deste
 
 %prep
 %setup -q -n %{name}-%(echo %{version} | sed 's/i$//')
+%patch0 -p1
 
 %build
 aclocal -I m4
This page took 0.032578 seconds and 4 git commands to generate.