summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/openldap/openldap/0001-build-top.mk-unset-STRIP_OPTS.patch38
-rw-r--r--meta-oe/recipes-support/openldap/openldap/install-strip.patch17
-rw-r--r--meta-oe/recipes-support/openldap/openldap_2.5.9.bb6
3 files changed, 39 insertions, 22 deletions
diff --git a/meta-oe/recipes-support/openldap/openldap/0001-build-top.mk-unset-STRIP_OPTS.patch b/meta-oe/recipes-support/openldap/openldap/0001-build-top.mk-unset-STRIP_OPTS.patch
new file mode 100644
index 0000000000..9d25f2c599
--- /dev/null
+++ b/meta-oe/recipes-support/openldap/openldap/0001-build-top.mk-unset-STRIP_OPTS.patch
@@ -0,0 +1,38 @@
1From 321839cbd1d57f12d3d6695254d2003473d8dd1a Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 8 Dec 2021 16:58:55 +0800
4Subject: [PATCH] build/top.mk: unset STRIP_OPTS
5
6Unset STRIP_OPTS to disable strip to fix QA errors:
7
8ERROR: openldap-2.5.9-r0 do_package: QA Issue: File
9'/usr/bin/ldapcompare' from openldap was already stripped, this will
10prevent future debugging! [already-stripped]
11
12ERROR: openldap-2.5.9-r0 do_package: QA Issue: File
13'/usr/bin/ldapdelete' from openldap was already stripped, this will
14prevent future debugging! [already-stripped]
15
16Upstream-Status: Inappropriate [embedded specific]
17
18Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
19---
20 build/top.mk | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/build/top.mk b/build/top.mk
24index 38ce146..6e9fe1f 100644
25--- a/build/top.mk
26+++ b/build/top.mk
27@@ -60,7 +60,7 @@ INSTALL_PROGRAM = $(INSTALL)
28 INSTALL_DATA = $(INSTALL) -m 644
29 INSTALL_SCRIPT = $(INSTALL)
30
31-STRIP_OPTS = -s
32+STRIP_OPTS =
33
34 LINT = lint
35 5LINT = 5lint
36--
372.17.1
38
diff --git a/meta-oe/recipes-support/openldap/openldap/install-strip.patch b/meta-oe/recipes-support/openldap/openldap/install-strip.patch
deleted file mode 100644
index fb7ad8f59f..0000000000
--- a/meta-oe/recipes-support/openldap/openldap/install-strip.patch
+++ /dev/null
@@ -1,17 +0,0 @@
1# This patch ensures that the install operations which strip
2# programs and libraries (LTINSTALL) work in a cross build
3# environment.
4
5Upstream-Status: Inappropriate [embedded specific]
6
7--- a/build/top.mk
8+++ b/build/top.mk
9@@ -125,7 +125,7 @@ LTCOMPILE_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=compile \
10 LTLINK_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=link \
11 $(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS_MOD)
12
13-LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
14+LTINSTALL = STRIPPROG="" $(LIBTOOL) --mode=install $(top_srcdir)/contrib/ldapc++/install-sh -c
15 LTFINISH = $(LIBTOOL) --mode=finish
16
17 # Misc UNIX commands used in build environment
diff --git a/meta-oe/recipes-support/openldap/openldap_2.5.9.bb b/meta-oe/recipes-support/openldap/openldap_2.5.9.bb
index d95d6912e1..c008c7b4bc 100644
--- a/meta-oe/recipes-support/openldap/openldap_2.5.9.bb
+++ b/meta-oe/recipes-support/openldap/openldap_2.5.9.bb
@@ -21,6 +21,7 @@ SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/$
21 file://slapd.service \ 21 file://slapd.service \
22 file://remove-user-host-pwd-from-version.patch \ 22 file://remove-user-host-pwd-from-version.patch \
23 file://0001-ldif-filter-fix-parallel-build-failure.patch \ 23 file://0001-ldif-filter-fix-parallel-build-failure.patch \
24 file://0001-build-top.mk-unset-STRIP_OPTS.patch \
24" 25"
25 26
26SRC_URI[md5sum] = "237fc2d881c27f8dd5d9f396e2865c11" 27SRC_URI[md5sum] = "237fc2d881c27f8dd5d9f396e2865c11"
@@ -28,11 +29,6 @@ SRC_URI[sha256sum] = "c08e12f4ca5803d5d9f9948c70ad3491282cda3c17ec8b655dcbcb2364
28 29
29DEPENDS = "util-linux groff-native" 30DEPENDS = "util-linux groff-native"
30 31
31# The original top.mk used INSTALL, not INSTALL_STRIP_PROGRAM when
32# installing .so and executables, this fails in cross compilation
33# environments
34SRC_URI += "file://install-strip.patch"
35
36inherit autotools-brokensep update-rc.d systemd pkgconfig 32inherit autotools-brokensep update-rc.d systemd pkgconfig
37 33
38# CV SETTINGS 34# CV SETTINGS