mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-27 10:14:34 +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:
parent
112cca9f47
commit
bfa98138ac
@ -127,16 +127,11 @@ do_install:prepend() {
|
|||||||
prepare_python_and_rust
|
prepare_python_and_rust
|
||||||
}
|
}
|
||||||
|
|
||||||
MAJOR_VERSION = "${@oe.utils.trim_version("${PV}", 1)}"
|
|
||||||
do_install:append() {
|
do_install:append() {
|
||||||
# tidy up installation
|
# tidy up installation
|
||||||
chmod -x ${D}${libdir}/pkgconfig/*.pc
|
chmod -x ${D}${libdir}/pkgconfig/*.pc
|
||||||
sed -i 's:\x24{includedir}/mozjs-78/js/RequiredDefines.h:js/RequiredDefines.h:g' ${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
|
rm -f ${D}${libdir}/libjs_static.ajs
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,3 +139,6 @@ ARM_INSTRUCTION_SET:armv5 = "arm"
|
|||||||
ARM_INSTRUCTION_SET:armv4 = "arm"
|
ARM_INSTRUCTION_SET:armv4 = "arm"
|
||||||
|
|
||||||
DISABLE_STATIC = ""
|
DISABLE_STATIC = ""
|
||||||
|
|
||||||
|
PACKAGES =+ "lib${BPN}"
|
||||||
|
FILES:lib${BPN} += "${libdir}/lib*"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user