1 |
commit: 6d0711ff5c0e069faa6aed313e975b8800e48a65 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 22 09:51:41 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 22 09:51:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d0711ff |
7 |
|
8 |
dev-libs/cyrus-sasl: fix autoconf 2.71 compatibility (breaks gssapi detection) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/825342 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
....1.27-r5.ebuild => cyrus-sasl-2.1.27-r6.ebuild} | 1 + |
14 |
.../files/cyrus-sasl-2.1.27-autoconf-2.71.patch | 45 ++++++++++++++++++++++ |
15 |
2 files changed, 46 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r5.ebuild b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild |
18 |
similarity index 99% |
19 |
rename from dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r5.ebuild |
20 |
rename to dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild |
21 |
index 1a07aa6eace3..3f20ae795401 100644 |
22 |
--- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r5.ebuild |
23 |
+++ b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r6.ebuild |
24 |
@@ -58,6 +58,7 @@ PATCHES=( |
25 |
"${FILESDIR}/${PN}-2.1.27-CVE-2019-19906.patch" |
26 |
"${FILESDIR}/${PN}-2.1.27-slibtool.patch" |
27 |
"${FILESDIR}/${PN}-2.1.27-db_gdbm-fix-gdbm_errno-overlay-from-gdbm_close.patch" |
28 |
+ "${FILESDIR}/${PN}-2.1.27-autoconf-2.71.patch" |
29 |
) |
30 |
|
31 |
pkg_setup() { |
32 |
|
33 |
diff --git a/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch |
34 |
new file mode 100644 |
35 |
index 000000000000..b346cd7e5002 |
36 |
--- /dev/null |
37 |
+++ b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.27-autoconf-2.71.patch |
38 |
@@ -0,0 +1,45 @@ |
39 |
+https://bugs.gentoo.org/825342 |
40 |
+ |
41 |
+commit 5664c3f535289ce9efb513a2897991b5c436bb44 |
42 |
+Author: Pavel Raiskup <praiskup@××××××.com> |
43 |
+Date: Thu Apr 1 17:26:28 2021 +0200 |
44 |
+ |
45 |
+ configure.ac: properly quote macro arguments |
46 |
+ |
47 |
+ Autoconf 2.70+ is more picky about the quotation (even though with |
48 |
+ previous versions the arguments should have been quoted, too). When we |
49 |
+ don't quote macros inside the AC_CACHE_VAL macro - some of the Autoconf |
50 |
+ initialization is wrongly ordered in ./configure script and we keep |
51 |
+ seeing bugs like: |
52 |
+ |
53 |
+ ./configure: line 2165: ac_fn_c_try_run: command not found |
54 |
+ |
55 |
+ Original report: https://bugzilla.redhat.com/1943013 |
56 |
+ |
57 |
+ Signed-off-by: Pavel Raiskup <praiskup@××××××.com> |
58 |
+ |
59 |
+--- a/configure.ac |
60 |
++++ b/configure.ac |
61 |
+@@ -213,7 +213,8 @@ if test $sasl_cv_uscore = yes; then |
62 |
+ AC_MSG_CHECKING(whether dlsym adds the underscore for us) |
63 |
+ cmu_save_LIBS="$LIBS" |
64 |
+ LIBS="$LIBS $SASL_DL_LIB" |
65 |
+- AC_CACHE_VAL(sasl_cv_dlsym_adds_uscore,AC_TRY_RUN( [ |
66 |
++ AC_CACHE_VAL([sasl_cv_dlsym_adds_uscore], |
67 |
++ [AC_TRY_RUN([ |
68 |
+ #include <dlfcn.h> |
69 |
+ #include <stdio.h> |
70 |
+ #include <stdlib.h> |
71 |
+@@ -221,9 +222,9 @@ void foo() { int i=0;} |
72 |
+ int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY); |
73 |
+ if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo"); |
74 |
+ if(ptr1 && !ptr2) exit(0); } exit(1); } |
75 |
+-], [sasl_cv_dlsym_adds_uscore=yes], sasl_cv_dlsym_adds_uscore=no |
76 |
+- AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for dlsym?]), |
77 |
+- AC_MSG_WARN(cross-compiler, we'll do our best))) |
78 |
++], [sasl_cv_dlsym_adds_uscore=yes], [sasl_cv_dlsym_adds_uscore=no |
79 |
++ AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, [], [Do we need a leading _ for dlsym?])], |
80 |
++ [AC_MSG_WARN(cross-compiler, we'll do our best)])]) |
81 |
+ LIBS="$cmu_save_LIBS" |
82 |
+ AC_MSG_RESULT($sasl_cv_dlsym_adds_uscore) |
83 |
+ |