summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@linux.intel.com>2022-10-10 17:19:15 +0800
committerKhem Raj <raj.khem@gmail.com>2022-10-10 10:19:33 -0700
commit8ae057a2e6862e4312ed4fa2fc635ce92b22d7ca (patch)
tree1c3f670d01ae241bc20803a370ee5547e551f19b
parenta0570e0c438ec56050a907cad0ef052f02fc7604 (diff)
downloadmeta-openembedded-8ae057a2e6862e4312ed4fa2fc635ce92b22d7ca.tar.gz
openldap: Upgrade 2.5.12 -> 2.5.13
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/openldap/openldap/0001-ldif-filter-fix-parallel-build-failure.patch32
-rw-r--r--meta-oe/recipes-support/openldap/openldap/0001-libraries-Makefile.in-ignore-the-mkdir-errors.patch33
-rw-r--r--meta-oe/recipes-support/openldap/openldap/0001-librewrite-include-ldap_pvt_thread.h-before-redefini.patch54
-rw-r--r--meta-oe/recipes-support/openldap/openldap_2.5.13.bb (renamed from meta-oe/recipes-support/openldap/openldap_2.5.12.bb)5
4 files changed, 1 insertions, 123 deletions
diff --git a/meta-oe/recipes-support/openldap/openldap/0001-ldif-filter-fix-parallel-build-failure.patch b/meta-oe/recipes-support/openldap/openldap/0001-ldif-filter-fix-parallel-build-failure.patch
deleted file mode 100644
index b42bd9764f..0000000000
--- a/meta-oe/recipes-support/openldap/openldap/0001-ldif-filter-fix-parallel-build-failure.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From 9e4ccd1e78ceac8de1ab66ee62ee216f1fbd4956 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Thu, 2 Dec 2021 11:38:15 +0800
4Subject: [PATCH] ldif-filter: fix parallel build failure
5
6Add slapd-common.o as dependency for ldif-filter to fix the parallel
7build failure:
8 ld: cannot find slapd-common.o: No such file or directory
9
10Upstream-Status: Pending
11
12Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
13---
14 tests/progs/Makefile.in | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/tests/progs/Makefile.in b/tests/progs/Makefile.in
18index 13f1e8be2..e4f4ccf98 100644
19--- a/tests/progs/Makefile.in
20+++ b/tests/progs/Makefile.in
21@@ -56,7 +56,7 @@ slapd-modify: slapd-modify.o $(OBJS) $(XLIBS)
22 slapd-bind: slapd-bind.o $(OBJS) $(XLIBS)
23 $(LTLINK) -o $@ slapd-bind.o $(OBJS) $(LIBS)
24
25-ldif-filter: ldif-filter.o $(XLIBS)
26+ldif-filter: ldif-filter.o $(OBJS) $(XLIBS)
27 $(LTLINK) -o $@ ldif-filter.o $(OBJS) $(LIBS)
28
29 slapd-mtread: slapd-mtread.o $(OBJS) $(XLIBS)
30--
312.25.1
32
diff --git a/meta-oe/recipes-support/openldap/openldap/0001-libraries-Makefile.in-ignore-the-mkdir-errors.patch b/meta-oe/recipes-support/openldap/openldap/0001-libraries-Makefile.in-ignore-the-mkdir-errors.patch
deleted file mode 100644
index 552726bb0a..0000000000
--- a/meta-oe/recipes-support/openldap/openldap/0001-libraries-Makefile.in-ignore-the-mkdir-errors.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From 690f69791eb6cd0d7e94b4d73219ee864de27f62 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Mon, 10 Jan 2022 10:13:51 +0800
4Subject: [PATCH] libraries/Makefile.in: ignore the mkdir errors
5
6Ignore the mkdir errors to fix the parallel build failure:
7
8../../build/shtool mkdir -p TOPDIR/tmp-glibc/work/cortexa15t2hf-neon-wrs-linux-gnueabi/openldap/2.5.9-r0/image/usr/lib
9mkdir: cannot create directory 'TOPDIR/tmp-glibc/work/cortexa15t2hf-neon-wrs-linux-gnueabi/openldap/2.5.9-r0/image/usr/lib': File exists
10
11Upstream-Status: Pending
12
13Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
14---
15 libraries/Makefile.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/libraries/Makefile.in b/libraries/Makefile.in
19index d9cb2ff..c6b251f 100644
20--- a/libraries/Makefile.in
21+++ b/libraries/Makefile.in
22@@ -24,7 +24,7 @@ PKGCONFIG_DIR=$(DESTDIR)$(libdir)/pkgconfig
23 PKGCONFIG_SRCDIRS=liblber libldap
24
25 install-local:
26- @$(MKDIR) $(PKGCONFIG_DIR)
27+ @-$(MKDIR) $(PKGCONFIG_DIR)
28 @for i in $(PKGCONFIG_SRCDIRS); do \
29 $(INSTALL_DATA) $$i/*.pc $(PKGCONFIG_DIR); \
30 done
31--
322.17.1
33
diff --git a/meta-oe/recipes-support/openldap/openldap/0001-librewrite-include-ldap_pvt_thread.h-before-redefini.patch b/meta-oe/recipes-support/openldap/openldap/0001-librewrite-include-ldap_pvt_thread.h-before-redefini.patch
deleted file mode 100644
index bcd1525b67..0000000000
--- a/meta-oe/recipes-support/openldap/openldap/0001-librewrite-include-ldap_pvt_thread.h-before-redefini.patch
+++ /dev/null
@@ -1,54 +0,0 @@
1From 79381ab335898c9184e22dd25b544adefa9bf6c5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 7 Feb 2022 16:26:57 -0800
4Subject: [PATCH] librewrite: include ldap_pvt_thread.h before redefining
5 calloc
6
7This helps compiling with musl, where sched.h is included by
8ldap_pvt_thread.h which provides prototype for calloc() and conflicts
9
10/usr/include/sched.h:84:7: error: conflicting types for 'ber_memcalloc'
11| void *calloc(size_t, size_t);
12| ^1
13| warning and 1 error generated.
14| ./rewrite-int.h:44:21: note: expanded from macro 'calloc'
15| #define calloc(x,y) ber_memcalloc(x,y)
16| ^
17
18Upstream-Status: Pending
19Signed-off-by: Khem Raj <raj.khem@gmail.com>
20---
21 libraries/librewrite/rewrite-int.h | 10 +++++-----
22 1 file changed, 5 insertions(+), 5 deletions(-)
23
24diff --git a/libraries/librewrite/rewrite-int.h b/libraries/librewrite/rewrite-int.h
25index 4481dd3..5ec226d 100644
26--- a/libraries/librewrite/rewrite-int.h
27+++ b/libraries/librewrite/rewrite-int.h
28@@ -40,6 +40,11 @@
29
30 #include <rewrite.h>
31
32+#ifndef NO_THREADS
33+#define USE_REWRITE_LDAP_PVT_THREADS
34+#include <ldap_pvt_thread.h>
35+#endif
36+
37 #define malloc(x) ber_memalloc(x)
38 #define calloc(x,y) ber_memcalloc(x,y)
39 #define realloc(x,y) ber_memrealloc(x,y)
40@@ -47,11 +52,6 @@
41 #undef strdup
42 #define strdup(x) ber_strdup(x)
43
44-#ifndef NO_THREADS
45-#define USE_REWRITE_LDAP_PVT_THREADS
46-#include <ldap_pvt_thread.h>
47-#endif
48-
49 /*
50 * For details, see RATIONALE.
51 */
52--
532.35.1
54
diff --git a/meta-oe/recipes-support/openldap/openldap_2.5.12.bb b/meta-oe/recipes-support/openldap/openldap_2.5.13.bb
index a8ea84d70f..b117677f9b 100644
--- a/meta-oe/recipes-support/openldap/openldap_2.5.12.bb
+++ b/meta-oe/recipes-support/openldap/openldap_2.5.13.bb
@@ -18,14 +18,11 @@ SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/$
18 file://initscript \ 18 file://initscript \
19 file://slapd.service \ 19 file://slapd.service \
20 file://remove-user-host-pwd-from-version.patch \ 20 file://remove-user-host-pwd-from-version.patch \
21 file://0001-ldif-filter-fix-parallel-build-failure.patch \
22 file://0001-build-top.mk-unset-STRIP_OPTS.patch \ 21 file://0001-build-top.mk-unset-STRIP_OPTS.patch \
23 file://0001-libraries-Makefile.in-ignore-the-mkdir-errors.patch \
24 file://0001-librewrite-include-ldap_pvt_thread.h-before-redefini.patch \
25 file://0001-configure-Pass-pthread_t-to-pthread_detach.patch \ 22 file://0001-configure-Pass-pthread_t-to-pthread_detach.patch \
26" 23"
27 24
28SRC_URI[sha256sum] = "d5086cbfc49597fa7d0670a429a9054552d441b16ee8b2435412797ab0e37b96" 25SRC_URI[sha256sum] = "ee3c430c4ef7b87c57b622108c7339376d6c27fbbf2767770be3de1df63d008c"
29 26
30DEPENDS = "util-linux groff-native" 27DEPENDS = "util-linux groff-native"
31 28