libpcre_%.bbappend: add missing symlink libpcre.so.1
PATCH 1/1 libpcre_%.bbappend: add missing symlink libpcre.so.1
This bbappend moves sysroot lib libpcre.so.x.x.x from /usr/lib to /lib and symlinks /usr/lib/libpcre.so to ../../lib/libpcre.so.x.x.x, but this causes certain recipes dependent on libpcre (like pango) to fail because they also expect libpcre.so.1 to exist which this recipe omits to create.
(the reason why the lib is moved in the first place is to avoid a QA issue because there's a risk for /usr to be on another partition)
--- recipes-support/libpcre/libpcre_%.bbappend | 1 + 1 file changed, 1 insertion(+)
recipes-support/libpcre/libpcre_%.bbappend +1 -0
@@ -7,6 +7,7 @@ do_install_append () { mv -f ${D}${libdir}/libpcre.so.* ${D}${base_libdir}/ relpath=${@os.path.relpath("${base_libdir}", "${libdir}")} ln -sf ${relpath}/${realsofile} ${D}${libdir}/libpcre.so + ln -sf ${relpath}/${realsofile} ${D}${libdir}/libpcre.so.1 fi }
Signature · 1 line
2.10.0
Quoted 3 lines · Ioan-Adrian Ratiu
(the reason why the lib is moved in the first place is to avoid a QA issue because there's a risk for /usr to be on another partition)
I'm not a meta-selinux maintainer but this is where I ask is there actually a risk, or is this something people have been saying for years without any basis.
If someone is booting a system with /usr separate from / then they should just use an initramfs with a complete minimal file system in, instead of moving libraries one at a time into /lib and hoping for the best.
Ross