Date: Saturday, November 13, 2021 @ 20:09:16
  Author: foutrelis
Revision: 428333

Use local autoconf-2.70.patch patch

Added:
  cyrus-sasl/trunk/autoconf-2.70.patch
Modified:
  cyrus-sasl/trunk/PKGBUILD

---------------------+
 PKGBUILD            |    4 +-
 autoconf-2.70.patch |   79 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-11-13 20:04:38 UTC (rev 428332)
+++ PKGBUILD    2021-11-13 20:09:16 UTC (rev 428333)
@@ -23,7 +23,7 @@
         0022-Fix-keytab-option-for-MIT-Kerberos.patch
         0032-Add-with_pgsql-include-postgresql-to-include-path.patch
         gdbm-errno.patch
-        
autoconf-2.70.patch::https://patch-diff.githubusercontent.com/raw/cyrusimap/cyrus-sasl/pull/644.patch
+        autoconf-2.70.patch
         saslauthd.service
         saslauthd.conf.d
         tmpfiles.conf)
@@ -37,7 +37,7 @@
             '1a0ae7bd722d57feb6fab12c05eb1922982c68bd9be1c165d405954012e6634f'
             '3c375f8755fdbd98a21c4ee195bebbd2a146901fee327e4dd6cfde7a4dcba7c3'
             '03a57cbcec85602fb8e39b7c8a3ff1a22d2c20a28e771b8b326a570d733bf432'
-            'c6d1036cb8b3772cab10983413c46a9d766e07551ad457c59d9cdd3842c8142c'
+            '91cb2026e7f41374ec181809c862bbfaf4e4b3346dc8294285718d2dd17101a5'
             '5c6453050a5f594ca1d53baf3a6188d8f3cdc7a28467ad7c844ad51f663dae9a'
             'fa57b4f374ae633633091b1c8b44e1e0be814e4fddbfa75f16eb3dd1f16b8640'
             '16ca1a4185847b0c6c70ef6c7c314cb466f698d3ed02185a5f50e8179822f024')

Added: autoconf-2.70.patch
===================================================================
--- autoconf-2.70.patch                         (rev 0)
+++ autoconf-2.70.patch 2021-11-13 20:09:16 UTC (rev 428333)
@@ -0,0 +1,79 @@
+From 56d3138b309b19cb9460ed4d05bb63302a97b703 Mon Sep 17 00:00:00 2001
+From: Pavel Raiskup <prais...@redhat.com>
+Date: Thu, 1 Apr 2021 17:17:52 +0200
+Subject: [PATCH] configure.ac: avoid side-effects in AC_CACHE_VAL
+
+In the COMMANDS-TO-SET-IT argument, per Autoconf docs:
+https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Caching-Results.html
+
+Signed-off-by: Pavel Raiskup <prais...@redhat.com>
+---
+ configure.ac | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index a106d35e..d333496d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -220,11 +220,14 @@ void foo() { int i=0;}
+ int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
+     if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
+     if(ptr1 && !ptr2) exit(0); } exit(1); } 
+-], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no
+-      AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for 
dlsym?]),
++], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no,
+       AC_MSG_WARN(cross-compiler, we'll do our best)))
+       LIBS="$cmu_save_LIBS"
+       AC_MSG_RESULT($sasl_cv_dlsym_adds_uscore)
++
++      if test "$sasl_cv_dlsym_adds_uscore" = no; then
++        AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for 
dlsym?])
++      fi
+   fi
+ fi
+ 
+
+From 004869fdf66a2d951fdf0e1c7809652394188368 Mon Sep 17 00:00:00 2001
+From: Pavel Raiskup <prais...@redhat.com>
+Date: Thu, 1 Apr 2021 17:26:28 +0200
+Subject: [PATCH] configure.ac: properly quote macro arguments
+
+Autoconf 2.70+ is more picky about the quotation (even though with
+previous versions the arguments should have been quoted, too).  When we
+don't quote macros inside the AC_CACHE_VAL macro - some of the Autoconf
+initialization is wrongly ordered in ./configure script and we keep
+seeing bugs like:
+
+    ./configure: line 2165: ac_fn_c_try_run: command not found
+
+Original report: https://bugzilla.redhat.com/1943013
+
+Signed-off-by: Pavel Raiskup <prais...@redhat.com>
+---
+ configure.ac | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index d333496d..7281cba0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -213,15 +213,16 @@ if test $sasl_cv_uscore = yes; then
+       AC_MSG_CHECKING(whether dlsym adds the underscore for us)
+       cmu_save_LIBS="$LIBS"
+       LIBS="$LIBS $SASL_DL_LIB"
+-      AC_CACHE_VAL(sasl_cv_dlsym_adds_uscore,AC_TRY_RUN( [
++      AC_CACHE_VAL([sasl_cv_dlsym_adds_uscore],
++                   [AC_TRY_RUN([
+ #include <dlfcn.h>
+ #include <stdio.h>
+ void foo() { int i=0;}
+ int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
+     if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
+     if(ptr1 && !ptr2) exit(0); } exit(1); } 
+-], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no,
+-      AC_MSG_WARN(cross-compiler, we'll do our best)))
++], [sasl_cv_dlsym_adds_uscore=yes], [sasl_cv_dlsym_adds_uscore=no],
++      [AC_MSG_WARN(cross-compiler, we'll do our best)])])
+       LIBS="$cmu_save_LIBS"
+       AC_MSG_RESULT($sasl_cv_dlsym_adds_uscore)
+ 

Reply via email to