diff options
| author | Jason Schonberg <schonm@gmail.com> | 2025-09-28 12:51:43 -0400 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-09-28 23:16:43 -0700 |
| commit | 25decdf8b073c8233333888378cdcdbeb533b25d (patch) | |
| tree | 58c34e9bce998a64fad66adbb7cd7f5635650245 /meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.3.bb | |
| parent | 91e428d4cd5a1c0de7d2ca4826705eb5eee7ec29 (diff) | |
| download | meta-openembedded-25decdf8b073c8233333888378cdcdbeb533b25d.tar.gz | |
webkitgtk3: upgrade 2.48.3 -> 2.48.7
WebKitGTK 2.48.7 release:
Fix a number of GStreamer memory leaks.
Fix several crashes and rendering issues.
WebKitGTK 2.48.6 release:
Fix emojis incorrectly rendered in their text variant.
Add support for font collection / fragment identifiers.
Fix web process deadlock on exit.
Fix stuttering when playing WebP animations.
Fix CSS animations with cubic-bezier timing function.
Do not start the MemoryPressureMonitor if it’s disabled.
Fix several crashes and rendering issues.
WebKitGTK 2.48.5 release:
Fix several crashes.
WebKitGTK 2.48.4 release:
Improve emoji font selection with USE_SKIA=ON.
Improve playback of multimedia streams from blob URLs.
Fix the build with USE_SKIA_OPENTYPE_SVG=ON and USE_SYSPROF_CAPTURE=ON.
Fix the build on LoongArch with USE_SKIA=ON.
Fix crash when using a WebKitWebView widget in an offscreen window.
Fix several crashes and rendering issues.
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.3.bb')
| -rw-r--r-- | meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.3.bb | 182 |
1 files changed, 0 insertions, 182 deletions
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.3.bb b/meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.3.bb deleted file mode 100644 index b848008910..0000000000 --- a/meta-oe/recipes-support/webkitgtk/webkitgtk3_2.48.3.bb +++ /dev/null | |||
| @@ -1,182 +0,0 @@ | |||
| 1 | SUMMARY = "WebKit web rendering engine for the GTK+ platform" | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | This recipe builds with Gtk3 (instead of Gtk4) which results in API version 4.1 \ | ||
| 4 | (having javascriptcoregtk-4.1.pc instead of 6.0). \ | ||
| 5 | " | ||
| 6 | HOMEPAGE = "https://www.webkitgtk.org/" | ||
| 7 | BUGTRACKER = "https://bugs.webkit.org/" | ||
| 8 | |||
| 9 | LICENSE = "BSD-2-Clause & LGPL-2.0-or-later" | ||
| 10 | LIC_FILES_CHKSUM = "file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d84286dda758da57bd691 \ | ||
| 11 | file://Source/WebCore/LICENSE-APPLE;md5=4646f90082c40bcf298c285f8bab0b12 \ | ||
| 12 | file://Source/WebCore/LICENSE-LGPL-2;md5=36357ffde2b64ae177b2494445b79d21 \ | ||
| 13 | file://Source/WebCore/LICENSE-LGPL-2.1;md5=a778a33ef338abbaf8b8a7c36b6eec80 \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRC_URI = "https://www.webkitgtk.org/releases/webkitgtk-${PV}.tar.xz \ | ||
| 17 | file://0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch \ | ||
| 18 | file://reproducibility.patch \ | ||
| 19 | file://no-musttail-arm.patch \ | ||
| 20 | file://sys_futex.patch \ | ||
| 21 | file://0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch \ | ||
| 22 | file://fix-ftbfs-riscv64.patch \ | ||
| 23 | file://0001-CMake-Add-a-variable-to-control-macro-__PAS_ALWAYS_I.patch \ | ||
| 24 | " | ||
| 25 | SRC_URI[sha256sum] = "d4dc5970f0fc6a529ff7fd67bcbfab2bbb5e91be789b2e9279640b3217a782c3" | ||
| 26 | |||
| 27 | inherit cmake pkgconfig gobject-introspection perlnative features_check upstream-version-is-even gi-docgen | ||
| 28 | |||
| 29 | S = "${UNPACKDIR}/webkitgtk-${PV}" | ||
| 30 | |||
| 31 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" | ||
| 32 | REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'opengl', '', d)}" | ||
| 33 | |||
| 34 | CVE_PRODUCT = "webkitgtk webkitgtk\+" | ||
| 35 | |||
| 36 | DEPENDS += " \ | ||
| 37 | ruby-native \ | ||
| 38 | gperf-native \ | ||
| 39 | unifdef-native \ | ||
| 40 | cairo \ | ||
| 41 | harfbuzz \ | ||
| 42 | jpeg \ | ||
| 43 | atk \ | ||
| 44 | libwebp \ | ||
| 45 | gtk+3 \ | ||
| 46 | libxslt \ | ||
| 47 | libtasn1 \ | ||
| 48 | libnotify \ | ||
| 49 | gstreamer1.0 \ | ||
| 50 | gstreamer1.0-plugins-base \ | ||
| 51 | glib-2.0-native \ | ||
| 52 | gettext-native \ | ||
| 53 | " | ||
| 54 | |||
| 55 | # using soup2 builds (JavaScript) API version 4.0 | ||
| 56 | # using soup3 builds (JavaScript) API version 4.1 | ||
| 57 | PACKAGECONFIG_SOUP ?= "soup3" | ||
| 58 | PACKAGECONFIG ??= " \ | ||
| 59 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd wayland x11', d)} \ | ||
| 60 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'webgl opengl', '', d)} \ | ||
| 61 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'webgl gles2', d)} \ | ||
| 62 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl-or-es', '', d)} \ | ||
| 63 | enchant \ | ||
| 64 | libsecret \ | ||
| 65 | ${PACKAGECONFIG_SOUP} \ | ||
| 66 | " | ||
| 67 | |||
| 68 | PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND_TARGET=ON,-DENABLE_WAYLAND_TARGET=OFF,wayland libwpe wpebackend-fdo wayland-native" | ||
| 69 | PACKAGECONFIG[angle] = "-DUSE_ANGLE_WEBGL=ON,-DUSE_ANGLE_WEBGL=OFF" | ||
| 70 | PACKAGECONFIG[x11] = "-DENABLE_X11_TARGET=ON,-DENABLE_X11_TARGET=OFF,virtual/libx11 libxcomposite libxdamage libxrender libxt" | ||
| 71 | PACKAGECONFIG[geoclue] = "-DENABLE_GEOLOCATION=ON,-DENABLE_GEOLOCATION=OFF,geoclue" | ||
| 72 | PACKAGECONFIG[enchant] = "-DENABLE_SPELLCHECK=ON,-DENABLE_SPELLCHECK=OFF,enchant2" | ||
| 73 | PACKAGECONFIG[gles2] = "-DENABLE_GLES2=ON,-DENABLE_GLES2=OFF,virtual/libgles2" | ||
| 74 | PACKAGECONFIG[jpegxl] = " -DUSE_JPEGXL=ON,-DUSE_JPEGXL=OFF,libjxl" | ||
| 75 | PACKAGECONFIG[webgl] = "-DENABLE_WEBGL=ON,-DENABLE_WEBGL=OFF,virtual/egl" | ||
| 76 | PACKAGECONFIG[opengl] = "-DENABLE_GRAPHICS_CONTEXT_GL=ON,-DENABLE_GRAPHICS_CONTEXT_GL=OFF,virtual/egl" | ||
| 77 | PACKAGECONFIG[opengl-or-es] = "-DUSE_OPENGL_OR_ES=ON,-DUSE_OPENGL_OR_ES=OFF" | ||
| 78 | PACKAGECONFIG[libsecret] = "-DUSE_LIBSECRET=ON,-DUSE_LIBSECRET=OFF,libsecret" | ||
| 79 | PACKAGECONFIG[libhyphen] = "-DUSE_LIBHYPHEN=ON,-DUSE_LIBHYPHEN=OFF,libhyphen" | ||
| 80 | PACKAGECONFIG[woff2] = "-DUSE_WOFF2=ON,-DUSE_WOFF2=OFF,woff2" | ||
| 81 | PACKAGECONFIG[openjpeg] = "-DUSE_OPENJPEG=ON,-DUSE_OPENJPEG=OFF,openjpeg" | ||
| 82 | PACKAGECONFIG[systemd] = "-DUSE_SYSTEMD=ON,-DUSE_SYSTEMD=off,systemd" | ||
| 83 | PACKAGECONFIG[reduce-size] = "-DCMAKE_BUILD_TYPE=MinSizeRel,-DCMAKE_BUILD_TYPE=Release,," | ||
| 84 | PACKAGECONFIG[lcms] = "-DUSE_LCMS=ON,-DUSE_LCMS=OFF,lcms" | ||
| 85 | PACKAGECONFIG[soup2] = "-DUSE_SOUP2=ON,-DUSE_SOUP2=OFF,libsoup-2.4,,,soup3" | ||
| 86 | PACKAGECONFIG[soup3] = ",,libsoup,,,soup2" | ||
| 87 | PACKAGECONFIG[journald] = "-DENABLE_JOURNALD_LOG=ON,-DENABLE_JOURNALD_LOG=OFF,systemd" | ||
| 88 | PACKAGECONFIG[avif] = "-DUSE_AVIF_LOG=ON,-DUSE_AVIF=OFF,libavif" | ||
| 89 | PACKAGECONFIG[media-recorder] = "-DENABLE_MEDIA_RECORDER=ON,-DENABLE_MEDIA_RECORDER=OFF,gstreamer1.0-plugins-bad" | ||
| 90 | PACKAGECONFIG[gamepad] = "-DENABLE_GAMEPAD=ON,-DENABLE_GAMEPAD=OFF,libmanette" | ||
| 91 | PACKAGECONFIG[webrtc] = "-DENABLE_WEB_RTC=ON,-DENABLE_WEB_RTC=OFF" | ||
| 92 | PACKAGECONFIG[bubblewrap] = "-DENABLE_BUBBLEWRAP_SANDBOX=ON -DBWRAP_EXECUTABLE=${bindir}/bwrap -DDBUS_PROXY_EXECUTABLE=${bindir}/xdg-dbus-proxy,-DENABLE_BUBBLEWRAP_SANDBOX=OFF,,bubblewrap xdg-dbus-proxy" | ||
| 93 | PACKAGECONFIG[backtrace] = "-DUSE_LIBBACKTRACE=ON,-DUSE_LIBBACKTRACE=OFF,libbacktrace" | ||
| 94 | PACKAGECONFIG[sysprof-capture] = "-DUSE_SYSTEM_SYSPROF_CAPTURE=YES,-DUSE_SYSTEM_SYSPROF_CAPTURE=NO,sysprof" | ||
| 95 | PACKAGECONFIG[speech] = "-DENABLE_SPEECH_SYNTHESIS=ON,-DENABLE_SPEECH_SYNTHESIS=OFF,flite" | ||
| 96 | |||
| 97 | EXTRA_OECMAKE = " \ | ||
| 98 | -DPORT=GTK \ | ||
| 99 | -DUSE_GTK4=OFF \ | ||
| 100 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DENABLE_INTROSPECTION=ON', '-DENABLE_INTROSPECTION=OFF', d)} \ | ||
| 101 | ${@bb.utils.contains('GIDOCGEN_ENABLED', 'True', '-DENABLE_DOCUMENTATION=ON', '-DENABLE_DOCUMENTATION=OFF', d)} \ | ||
| 102 | ${@oe.utils.vartrue('DEBUG_BUILD', '-DWEBKIT_NO_INLINE_HINTS=ON', '-DWEBKIT_NO_INLINE_HINTS=OFF', d)} \ | ||
| 103 | -DENABLE_MINIBROWSER=ON \ | ||
| 104 | -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF \ | ||
| 105 | " | ||
| 106 | # pass -g1 to massively reduce the size of the debug symbols (4.3GB to 700M at time of writing) | ||
| 107 | DEBUG_LEVELFLAG = "-g1" | ||
| 108 | |||
| 109 | # Javascript JIT is not supported on ARC | ||
| 110 | EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF " | ||
| 111 | # By default 25-bit "medium" calls are used on ARC | ||
| 112 | # which is not enough for binaries larger than 32 MiB | ||
| 113 | CFLAGS:append:arc = " -mlong-calls" | ||
| 114 | CXXFLAGS:append:arc = " -mlong-calls" | ||
| 115 | |||
| 116 | # Needed for non-mesa graphics stacks when x11 is disabled | ||
| 117 | CXXFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}" | ||
| 118 | |||
| 119 | # Javascript JIT is not supported on powerpc | ||
| 120 | EXTRA_OECMAKE:append:powerpc = " -DENABLE_JIT=OFF " | ||
| 121 | EXTRA_OECMAKE:append:powerpc64 = " -DENABLE_JIT=OFF " | ||
| 122 | |||
| 123 | # ARM JIT code does not build on ARMv4/5/6 anymore | ||
| 124 | EXTRA_OECMAKE:append:armv4 = " -DENABLE_JIT=OFF " | ||
| 125 | EXTRA_OECMAKE:append:armv5 = " -DENABLE_JIT=OFF " | ||
| 126 | EXTRA_OECMAKE:append:armv6 = " -DENABLE_JIT=OFF " | ||
| 127 | |||
| 128 | # JIT does not work on RISCV | ||
| 129 | EXTRA_OECMAKE:append:riscv32 = " -DENABLE_JIT=OFF" | ||
| 130 | |||
| 131 | # JIT not supported on MIPS either | ||
| 132 | EXTRA_OECMAKE:append:mipsarch = " -DENABLE_JIT=OFF -DENABLE_C_LOOP=ON " | ||
| 133 | |||
| 134 | # JIT not supported on X32 | ||
| 135 | # An attempt was made to upstream JIT support for x32 in | ||
| 136 | # https://bugs.webkit.org/show_bug.cgi?id=100450, but this was closed as | ||
| 137 | # unresolved due to limited X32 adoption. | ||
| 138 | EXTRA_OECMAKE:append:x86-x32 = " -DENABLE_JIT=OFF " | ||
| 139 | |||
| 140 | SECURITY_CFLAGS:remove:aarch64 = "-fpie" | ||
| 141 | SECURITY_CFLAGS:append:aarch64 = " -fPIE" | ||
| 142 | |||
| 143 | FILES:${PN} += "${libdir}/webkit2gtk-4.*/injected-bundle/libwebkit2gtkinjectedbundle.so" | ||
| 144 | |||
| 145 | RRECOMMENDS:${PN} += "ca-certificates shared-mime-info" | ||
| 146 | |||
| 147 | # http://errors.yoctoproject.org/Errors/Details/20370/ | ||
| 148 | ARM_INSTRUCTION_SET:armv4 = "arm" | ||
| 149 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
| 150 | ARM_INSTRUCTION_SET:armv6 = "arm" | ||
| 151 | |||
| 152 | # https://bugzilla.yoctoproject.org/show_bug.cgi?id=9474 | ||
| 153 | # https://bugs.webkit.org/show_bug.cgi?id=159880 | ||
| 154 | # JSC JIT can build on ARMv7 with -marm, but doesn't work on runtime. | ||
| 155 | # Upstream only tests regularly the JSC JIT on ARMv7 with Thumb2 (-mthumb). | ||
| 156 | ARM_INSTRUCTION_SET:armv7a = "thumb" | ||
| 157 | ARM_INSTRUCTION_SET:armv7r = "thumb" | ||
| 158 | ARM_INSTRUCTION_SET:armv7ve = "thumb" | ||
| 159 | |||
| 160 | # ANGLE requires SSE support as of webkit 2.40.x on 32 bit x86 | ||
| 161 | COMPATIBLE_HOST:x86 = "${@bb.utils.contains_any('TUNE_FEATURES', 'core2 corei7', '.*', 'null', d)}" | ||
| 162 | |||
| 163 | # introspection inside qemu-arm hangs forever on musl/arm builds | ||
| 164 | # therefore disable GI_DATA | ||
| 165 | GI_DATA_ENABLED:libc-musl:armv7a = "False" | ||
| 166 | GI_DATA_ENABLED:libc-musl:armv7ve = "False" | ||
| 167 | |||
| 168 | do_install:append() { | ||
| 169 | mv ${D}${bindir}/WebKitWebDriver ${D}${bindir}/WebKitWebDriver3 | ||
| 170 | } | ||
| 171 | |||
| 172 | PACKAGE_PREPROCESS_FUNCS += "src_package_preprocess" | ||
| 173 | src_package_preprocess () { | ||
| 174 | # Trim build paths from comments in generated sources to ensure reproducibility | ||
| 175 | sed -i -e "s,${WORKDIR},,g" \ | ||
| 176 | ${B}/JavaScriptCore/DerivedSources/*.h \ | ||
| 177 | ${B}/JavaScriptCore/DerivedSources/yarr/*.h \ | ||
| 178 | ${B}/JavaScriptCore/PrivateHeaders/JavaScriptCore/*.h \ | ||
| 179 | ${B}/WebCore/DerivedSources/*.cpp \ | ||
| 180 | ${B}/WebKitGTK/DerivedSources/webkit/*.cpp | ||
| 181 | } | ||
| 182 | |||
