Skip to contentSkip to conversation

glibc: Delete ldconfig when USE_LDCONFIG is not set

PATCH New Khem Raj 1 participant 2 messages Oct 24, 2014

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 glibc: Delete ldconfig when USE_LDCONFIG is not set

This avoids below QA error/warning
/sbin/ldconfig [installed-vs-shipped]

Change-Id I028b692eefeaa6e0e0e6507ab4108caa29e41e91
---
 meta/recipes-core/glibc/glibc-package.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/glibc/glibc-package.inc +2 -1
index 13209f5..6212e5b 100644
@@ -92,8 +92,9 @@ do_install_append () {
 	fi
 
 	if [ "${USE_LDCONFIG}" != "1" ]; then
-		# We won't ship this file (see FILES above) so let's not install it
+		# We won't ship these files (see FILES above) so let's not install them
 		rm -f ${D}${sysconfdir}/ld.so.conf
+		rm -f ${D}${base_sbindir}/ldconfig
 		# This directory will be empty now so remove it too.
 		# But check whether it exists first, since it won't for glibc-initial.
 		if [ -d ${D}${sysconfdir} ]; then
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/2 mklibs: Fix loader for mipsel

Additionally treat ld.so to be searched in sysroot

Change-Id I8b4acb821d9855a1163c7149bc8e369c7c438856
---
 meta/classes/image-mklibs.bbclass                      |  2 +-
 .../recipes-devtools/mklibs/files/sysrooted-ldso.patch | 18 ++++++++++++++++++
 meta/recipes-devtools/mklibs/mklibs-native_0.1.39.bb   |  1 +
 3 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch
meta/classes/image-mklibs.bbclass +1 -1
index 11f082b..c455a8e 100644
@@ -16,7 +16,7 @@ mklibs_optimize_image_doit() {
 		> ${WORKDIR}/mklibs/executables.list
 
 	case ${TARGET_ARCH} in
-		powerpc | mips | microblaze )
+		powerpc | mips | mipsel | microblaze )
 			dynamic_loader="${base_libdir}/ld.so.1"
 			;;
 		powerpc64)
meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch new file +18 -0
new file mode 100644
index 0000000..75500a0
@@ -0,0 +1,18 @@
+In cross builds we will have to respect sysroot
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Pending
+
+Index: mklibs-0.1.39/src/mklibs
+===================================================================
+--- mklibs-0.1.39.orig/src/mklibs	2014-03-01 18:25:36.000000000 +0000
++++ mklibs-0.1.39/src/mklibs	2014-10-19 00:51:46.813534596 +0000
+@@ -495,7 +495,7 @@
+     present_symbols = {}
+     checked_libs = small_libs
+     checked_libs.extend(available_libs)
+-    checked_libs.append(ldlib)
++    checked_libs.append(sysroot + ldlib)
+     for lib in checked_libs:
+         for symbol in provided_symbols(lib):
+             debug(DEBUG_SPAM, "present_symbols adding %s" % symbol)
meta/recipes-devtools/mklibs/mklibs-native_0.1.39.bb +1 -0
index ff8d500..9885561 100644
@@ -9,6 +9,7 @@ DEPENDS = "python-native dpkg-native"
 SRC_URI = "http://ftp.de.debian.org/debian/pool/main/m/mklibs/${BPN}_${PV}.tar.xz \
 	file://ac_init_fix.patch\
 	file://fix_STT_GNU_IFUNC.patch\
+	file://sysrooted-ldso.patch \
 "
 
 SRC_URI[md5sum] = "38a579a531401eb76f4bab4ccfb774a2"
Signature · 1 line
1.9.1