From a6825e697d48751b88d2d180240675ae96af64b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Wed, 4 Apr 2001 21:36:05 +0000 Subject: [PATCH] always compile with dotlocking enabled Changed files: mutt-forcedotlock.patch -> 1.1 mutt.spec -> 1.69 --- mutt-forcedotlock.patch | 47 +++++++++++++++++++++++++++++++++++++++++ mutt.spec | 2 ++ 2 files changed, 49 insertions(+) create mode 100644 mutt-forcedotlock.patch diff --git a/mutt-forcedotlock.patch b/mutt-forcedotlock.patch new file mode 100644 index 0000000..4b7c077 --- /dev/null +++ b/mutt-forcedotlock.patch @@ -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 +-#include +- +-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 +-#include +- +-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], diff --git a/mutt.spec b/mutt.spec index 5df4146..6a158de 100644 --- 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 -- 2.43.0