Package: 389-ds-base / 1.4.0.21-1

fix-saslpath.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--- a/ldap/servers/slapd/ldaputil.c
+++ b/ldap/servers/slapd/ldaputil.c
@@ -962,10 +962,14 @@ ldaputil_get_saslpath()
         if (PR_SUCCESS != PR_Access(saslpath, PR_ACCESS_EXISTS)) {
 #ifdef CPU_arm
             /* the 64-bit ARMv8 architecture. */
-            saslpath = "/usr/lib/aarch64-linux-gnu";
+            saslpath = "/usr/lib/aarch64-linux-gnu/sasl2";
+#elif defined(CPU_powerpc64le)
+            saslpath = "/usr/lib/powerpc64le-linux-gnu/sasl2";
+#elif defined(CPU_s390x)
+            saslpath = "/usr/lib/s390x-linux-gnu/sasl2";
 #else
             /* Try x86_64 gnu triplet */
-            saslpath = "/usr/lib/x86_64-linux-gnu";
+            saslpath = "/usr/lib/x86_64-linux-gnu/sasl2";
 #endif
         }
 #else
@@ -973,14 +977,14 @@ ldaputil_get_saslpath()
         if (PR_SUCCESS != PR_Access(saslpath, PR_ACCESS_EXISTS)) {
 #ifdef CPU_arm
             /* the latest 32 bit ARM architecture using the hard-float version of EABI. */
-            saslpath = "/usr/lib/arm-linux-gnueabihf";
+            saslpath = "/usr/lib/arm-linux-gnueabihf/sasl2";
             if (PR_SUCCESS != PR_Access(saslpath, PR_ACCESS_EXISTS)) {
                 /* the 32 bit ARM architecture of EABI. */
-                saslpath = "/usr/lib/arm-linux-gnueabi";
+                saslpath = "/usr/lib/arm-linux-gnueabi/sasl2";
             }
 #else
             /* Try i386 gnu triplet */
-            saslpath = "/usr/lib/i386-linux-gnu";
+            saslpath = "/usr/lib/i386-linux-gnu/sasl2";
 #endif
         }
 #endif
--- a/configure.ac
+++ b/configure.ac
@@ -563,7 +563,8 @@ case $host in
       arm-*-linux*)
         AC_DEFINE([CPU_arm], [], [cpu type arm])
         ;;
-      ppc64le-*-linux*)
+      powerpc64le-*-linux*)
+        AC_DEFINE([CPU_powerpc64le], [], [cpu type powerpc64le])
         ;;
       ppc64-*-linux*)
         ;;
@@ -572,6 +573,7 @@ case $host in
       s390-*-linux*)
         ;;
       s390x-*-linux*)
+        AC_DEFINE([CPU_s390x], [], [cpu type s390x])
         ;;
     esac
     # some programs use the native thread library directly