Skip to contentSkip to conversation

zlib: remove historical movement of libz.so to /lib

RFC PATCH New Ross Burton 1 participant 1 message Mar 29, 2022

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 zlib: remove historical movement of libz.so to /lib

Historically there's been a split between /lib for early boot and /usr/lib for everything else, but with modern systems this split is meaningless and incomplete. If a minimal system for early boot is needed, it should be a full minimal system in a initramfs.

---
 meta/recipes-core/zlib/zlib_1.2.12.bb | 12 ------------
 1 file changed, 12 deletions(-)
meta/recipes-core/zlib/zlib_1.2.12.bb +0 -12
index 95e873584ba..45c31f1e678 100644
@@ -38,16 +38,4 @@ do_install_ptest() {
 	install ${B}/examplesh ${D}${PTEST_PATH}
 }
 
-# Move zlib shared libraries for target builds to $base_libdir so the library
-# can be used in early boot before $prefix is mounted.
-do_install:append:class-target() {
-	if [ ${base_libdir} != ${libdir} ]
-	then
-		mkdir -p ${D}/${base_libdir}
-		mv ${D}/${libdir}/libz.so.* ${D}/${base_libdir}
-		libname=`readlink ${D}/${libdir}/libz.so`
-		ln -sf ${@oe.path.relative("${libdir}", "${base_libdir}")}/$libname ${D}${libdir}/libz.so
-	fi
-}
-
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1