1
0
forked from brl/citadel
citadel/meta-gnome/recipes-support/mozjs/mozjs-102_102.3.0.bb
Bruce Leidl 3db0a6b032 Upgrade to Yocto 4.1 and GNOME 43
poky:

  Upgrade to Yocto 4.1 Langdale

meta-citadel/recipes-kernel:

  citadel-kernel             5.19.9 -> 6.0.8

meta-citadel/recipes-sway:

  sway                       1.5.1  -> 1.7      (meta-wayland)
  wlroots                    0.12.0 -> 0.15.1   (meta-wayland)

meta-gnome/recipes-connectivity:

  iwd                        1.27   -> 1.30     (meta-oe)
  modemmanager               1.18.2 -> 1.18.6   (meta-oe)
  networkmanager             1.36.2 -> 1.40.0   (meta-oe)

meta-gnome/recipes-freedesktop:

  libgusb                    0.3.7  -> 0.3.10   (meta-oe)

meta-gnome/recipes-gnome:

  adwaita-icon-theme         42     -> 43       (oe-core)
  geocode-glib               3.26.2 -> 3.26.4   (meta-oe)
  gjs                        1.72.0 -> 1.73.2   (meta-oe)
  gnome-bluetooth            42.0   -> 42.4     (meta-oe)
  gnome-control-center       42.1   -> 43.0
  gnome-desktop              42.1   -> 43.rc
  gnome-settings-daemon      42.1   -> 43.0
  gnome-shell                42.1   -> 43.0
  gsettings-desktop-schema   41.0   -> 43.0
  gtk4                       4.6.4  -> 4.6.7    (meta-oe)
  gvfs                       1.50.0 -> 1.50.2   (meta-oe)
  libadwaita                 1.1.1  -> 1.2.0    (meta-oe)
  libgee                     0.20.4 -> 0.20.6   (meta-oe)
  mutter                     42.1   -> 43.0
  rest                       0.8.1  -> 0.9.0    (meta-oe)

meta-gnome/recipes-support:

  ell                        0.50   -> 0.53     (poky)
  exiv2                      0.26   -> 0.27.3   (meta-oe)
  graphene                   1.10.2 -> 1.10.8   (meta-oe)
  gsound                     1.0.2  -> 1.0.3    (meta-oe)
  icu_71.1                   (removed from meta-gnome because this version is in poky)
  jansson                    2.12   -> 2.14     (meta-oe)
  lcms                       2.9    -> 2.14     (meta-oe)
  libdvdread                 6.1.1  -> 6.1.3    (meta-oe)
  libndp                     1.6    -> 1.8      (meta-oe)
  mozjs                      91.8.0 -> 102.3.0
  power-profiles-daemon      0.12      (new-recipe)
2022-11-15 12:25:32 -05:00

78 lines
2.7 KiB
BlitzBasic

SUMMARY = "SpiderMonkey is Mozilla's JavaScript engine written in C/C++"
HOMEPAGE = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dc9b6ecd19a14a54a628edaaf23733bf"
SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/firefox-${PV}esr.source.tar.xz \
file://0001-Cargo.toml-do-not-abort-on-panic.patch \
file://0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch \
file://0004-use-asm-sgidefs.h.patch \
file://fix-musl-build.patch \
file://0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch \
file://riscv32.patch \
file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch \
file://0001-rewrite-cargo-host-linker-in-python3.patch \
file://0009-moz.configure-do-not-look-for-llvm-dump.patch \
"
SRC_URI[sha256sum] = "308e23b6dcf964e342cf95fd0c8a386127371b620a489ae26e537d728341b55a"
S = "${WORKDIR}/firefox-${@d.getVar("PV").replace("esr", "")}"
inherit pkgconfig perlnative python3native rust
DEPENDS += "zlib cargo-native python3 icu"
DEPENDS:remove:mipsarch = "icu"
DEPENDS:remove:powerpc:toolchain-clang = "icu"
B = "${WORKDIR}/build"
export PYTHONPATH = "${S}/build:${S}/third_party/python/PyYAML/lib3:${S}/testing/mozbase/mozfile:${S}/python/mozboot:${S}/third_party/python/distro:${S}/testing/mozbase/mozinfo:${S}/config:${S}/testing/mozbase/manifestparser:${S}/third_party/python/pytoml:${S}/testing/mozbase/mozprocess:${S}/third_party/python/six:${S}/python/mozbuild:${S}/python/mozbuild/mozbuild:${S}/python/mach:${S}/third_party/python/jsmin:${S}/python/mozversioncontrol"
export HOST_CC = "${BUILD_CC}"
export HOST_CXX = "${BUILD_CXX}"
export HOST_CFLAGS = "${BUILD_CFLAGS}"
export HOST_CPPFLAGS = "${BUILD_CPPFLAGS}"
export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}"
export AS = "${CC}"
export RUSTFLAGS
JIT ?= ""
JIT:mipsarch = "--disable-jit"
ICU ?= "--with-system-icu"
ICU:mipsarch = ""
ICU:powerpc:toolchain-clang = ""
do_configure() {
cd ${B}
python3 ${S}/configure.py \
--enable-project=js \
--target=${RUST_HOST_SYS} \
--host=${BUILD_SYS} \
--prefix=${prefix} \
--libdir=${libdir} \
--disable-jemalloc \
--disable-strip \
${JIT} \
${ICU}
}
do_install() {
oe_runmake 'DESTDIR=${D}' install
}
inherit multilib_script multilib_header
MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js91-config"
do_install:append() {
oe_multilib_header mozjs-102/js-config.h
sed -e 's@${STAGING_DIR_HOST}@@g' \
-i ${D}${bindir}/js102-config
rm -f ${D}${libdir}/libjs_static.ajs
}
PACKAGES =+ "lib${BPN}"
FILES:lib${BPN} += "${libdir}/lib*"