mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
mozjs-78: Shelve breaking lib rename/linking & split lib to separate package
* our rename broke gjs: | /usr/bin/gjs: error while loading shared libraries: libmozjs-78.so: cannot open shared object file: No such file or directory * to reduce image size and to avoid warnings, follow mozjs-91 by splitting library into seperate package Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -127,16 +127,11 @@ do_install:prepend() {
|
||||
prepare_python_and_rust
|
||||
}
|
||||
|
||||
MAJOR_VERSION = "${@oe.utils.trim_version("${PV}", 1)}"
|
||||
do_install:append() {
|
||||
# tidy up installation
|
||||
chmod -x ${D}${libdir}/pkgconfig/*.pc
|
||||
sed -i 's:\x24{includedir}/mozjs-78/js/RequiredDefines.h:js/RequiredDefines.h:g' ${D}${libdir}/pkgconfig/*.pc
|
||||
|
||||
mv ${D}${libdir}/libmozjs-${MAJOR_VERSION}.so ${D}${libdir}/libmozjs-${MAJOR_VERSION}.so.${PV}
|
||||
ln -s libmozjs-${MAJOR_VERSION}.so.${PV} ${D}${libdir}/libmozjs-${MAJOR_VERSION}.so.${MAJOR_VERSION}
|
||||
ln -s libmozjs-${MAJOR_VERSION}.so.${PV} ${D}${libdir}/libmozjs-${MAJOR_VERSION}.so
|
||||
|
||||
rm -f ${D}${libdir}/libjs_static.ajs
|
||||
}
|
||||
|
||||
@@ -144,3 +139,6 @@ ARM_INSTRUCTION_SET:armv5 = "arm"
|
||||
ARM_INSTRUCTION_SET:armv4 = "arm"
|
||||
|
||||
DISABLE_STATIC = ""
|
||||
|
||||
PACKAGES =+ "lib${BPN}"
|
||||
FILES:lib${BPN} += "${libdir}/lib*"
|
||||
|
||||
Reference in New Issue
Block a user