mirror of
https://github.com/openwrt/video.git
synced 2026-10-12 14:37:34 +04:00
Switch to WPEPlatform only: ENABLE_WPE_LEGACY_API=OFF drops the libwpe API and with it the wpebackend-fdo backend, which served no other package. MiniBrowser builds against WPEPlatform without them. WPEWebKit now needs 128-bit atomics, so add libatomic. libstdcpp and libxkbcommon used to arrive through libwpe and are linked directly, so declare them. Patch 122 is upstream and is dropped; 126 keeps only its DWARF register mapping hunk. 138 and 147 are ported to the refactored atomic op macros, where upstream hoisted 63 inline bodies out into named macros, and 147's compare-exchange slow path gains the expected-value argument and the result move it was missing. Eight patches are new. The WebDriver log channel is read unguarded while it is only declared when logging is compiled in. WPE reports prefers-reduced-motion inverted, so animations are disabled by default. WebKit cannot resolve a WebCore header that another WebCore header includes by bare name, which stops the prefix header compiling as the translation unit of its own that a precompiled header needs. libpas picks a __uint128_t for pas_pair wherever the compiler is not Clang and the target is not 32-bit ARM, which leaves 32-bit x86 without a type, and its pair atomics then need the same unreachable stub that 32-bit ARM already uses. The remaining four are RISCV64. The offlineasm backend cannot lower a call to a local label, nor a floating-point branch to a global label, both of which the LLInt asm emits. B3 declares u64 inside the ARM64 and X86_64 arms of isValidFPImm64Form and reads it after the #endif, which no other architecture compiles. The MacroAssembler is missing the store64(TrustedImm32, BaseIndex) and immediate-valued moveConditionally32 forms that DFGSpeculativeJIT calls. Add test-version.sh: nothing the packages install reports the version, so the generic test cannot probe for it. The helper processes take no arguments and print nothing, WPEWebDriver has no --version, and the .pc file that carries the version belongs to Build/InstallDev. Regenerate the whole series with git format-patch so every patch carries a git-am header and a description, refresh it for the new line numbers, and correct two descriptions that referred to WebKitGTK. Link: https://wpewebkit.org/release/wpewebkit-2.54.0.html Signed-off-by: Daniel Golle <daniel@makrotopia.org>
52 lines
1.7 KiB
Bash
Executable File
52 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
# Version check override for the generic package tests.
|
|
#
|
|
# Nothing these packages install reports the package version. The three
|
|
# programs in libwpewebkit are helper processes the library spawns
|
|
# (WPEGPUProcess, WPENetworkProcess, WPEWebProcess); they take no arguments
|
|
# and print nothing. WPEWebDriver has no --version option, only --help,
|
|
# --port, --host, --target and --replace-on-new-session. The one file that
|
|
# does carry the version, wpe-webkit-2.0.pc, belongs to Build/InstallDev and
|
|
# is not shipped. The library soname encodes the libtool triple, 1.11.3 for
|
|
# 2.54.0, not the package version.
|
|
#
|
|
# So this cannot verify the version, and does not pretend to. It checks that
|
|
# the package installed the artefacts it is supposed to, which is the useful
|
|
# part the probe was standing in for.
|
|
|
|
set -e
|
|
|
|
pkg="$1"
|
|
version="$2"
|
|
|
|
[ -n "$pkg" ] || exit 1
|
|
[ -n "$version" ] || exit 1
|
|
|
|
case "$pkg" in
|
|
libwpewebkit)
|
|
# The versioned library, the SONAME symlink pointing at it, the
|
|
# injected bundle, and the three helper processes.
|
|
lib=$(ls /usr/lib/libWPEWebKit-2.0.so.*.*.* 2>/dev/null | head -n 1)
|
|
[ -n "$lib" ] || exit 1
|
|
[ -f "$lib" ] || exit 1
|
|
[ -e /usr/lib/libWPEWebKit-2.0.so.1 ] || exit 1
|
|
[ -f /usr/lib/wpe-webkit-2.0/injected-bundle/libWPEInjectedBundle.so ] || exit 1
|
|
for helper in WPEGPUProcess WPENetworkProcess WPEWebProcess; do
|
|
[ -x "/usr/libexec/wpe-webkit-2.0/$helper" ] || exit 1
|
|
done
|
|
[ -f /usr/share/wpe-webkit-2.0/inspector.gresource ] || exit 1
|
|
;;
|
|
wpewebkit-driver)
|
|
[ -x /usr/bin/WPEWebDriver ] || exit 1
|
|
;;
|
|
wpewebkit-minibrowser)
|
|
[ -x /usr/libexec/wpe-webkit-2.0/MiniBrowser ] || exit 1
|
|
;;
|
|
*)
|
|
# An unknown subpackage means this override is out of date.
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|