]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
wpebackend-fdo: upgrade 1.16.0 -> 1.16.1
authorAlexander Kanavin <alex@linutronix.de>
Mon, 22 Dec 2025 20:44:27 +0000 (21:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Dec 2025 12:21:52 +0000 (12:21 +0000)
Add a patch to fix musl failures.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-sato/webkit/wpebackend-fdo/0001-src-ws-egl.cpp-add-missing-unistd.h-header.patch [new file with mode: 0644]
meta/recipes-sato/webkit/wpebackend-fdo_1.16.1.bb [moved from meta/recipes-sato/webkit/wpebackend-fdo_1.16.0.bb with 77% similarity]

diff --git a/meta/recipes-sato/webkit/wpebackend-fdo/0001-src-ws-egl.cpp-add-missing-unistd.h-header.patch b/meta/recipes-sato/webkit/wpebackend-fdo/0001-src-ws-egl.cpp-add-missing-unistd.h-header.patch
new file mode 100644 (file)
index 0000000..ccb79cf
--- /dev/null
@@ -0,0 +1,36 @@
+From cc7c8ef7b92849ad97f402f51d88bc6136a1eb9b Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex@linutronix.de>
+Date: Fri, 19 Dec 2025 15:00:16 +0100
+Subject: [PATCH] src/ws-egl.cpp: add missing unistd.h header
+
+This addresses build failures with musl:
+
+| ../../../../../../workspace/sources/wpebackend-fdo/src/ws-egl.cpp: In destructor 'virtual WS::ImplEGL::~ImplEGL()':
+| ../../../../../../workspace/sources/wpebackend-fdo/src/ws-egl.cpp:83:9: error: 'close' was not declared in this scope; did you mean 'clone'?
+|    83 |         close(m_dmabuf.formatTable.fd);
+|       |         ^~~~~
+|       |         clone
+| ../../../../../../workspace/sources/wpebackend-fdo/src/ws-egl.cpp: In member function 'void WS::ImplEGL::initFormatTable()':
+| ../../../../../../workspace/sources/wpebackend-fdo/src/ws-egl.cpp:397:15: error: 'ftruncate' was not declared in this scope; did you mean 'strncat'?
+|   397 |         ret = ftruncate(fd, size);
+|       |               ^~~~~~~~~
+|       |               strncat
+
+Upstream-Status: Submitted [https://github.com/Igalia/WPEBackend-fdo/pull/203]
+Signed-off-by: Alexander Kanavin <alex@linutronix.de>
+---
+ src/ws-egl.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ws-egl.cpp b/src/ws-egl.cpp
+index 76d6194..cc7a8f2 100644
+--- a/src/ws-egl.cpp
++++ b/src/ws-egl.cpp
+@@ -33,6 +33,7 @@
+ #include <vector>
+ #include <sys/mman.h>
+ #include <sys/stat.h>
++#include <unistd.h>
+ #ifndef EGL_WL_bind_wayland_display
+ #define EGL_WAYLAND_BUFFER_WL 0x31D5
similarity index 77%
rename from meta/recipes-sato/webkit/wpebackend-fdo_1.16.0.bb
rename to meta/recipes-sato/webkit/wpebackend-fdo_1.16.1.bb
index aa6c58d1766aaaefe65b1932fa94d7f742d24abf..11a1ce6bd7868c60d2be3f6e7a39229485fba183 100644 (file)
@@ -12,8 +12,10 @@ inherit meson features_check pkgconfig
 
 REQUIRED_DISTRO_FEATURES = "opengl"
 
-SRC_URI = "https://wpewebkit.org/releases/${BPN}-${PV}.tar.xz"
-SRC_URI[sha256sum] = "beddf321232d5bd08106c179dbc600f8ce88eb3620b4a59a6329063b78f64635"
+SRC_URI = "https://wpewebkit.org/releases/${BPN}-${PV}.tar.xz \
+           file://0001-src-ws-egl.cpp-add-missing-unistd.h-header.patch \
+           "
+SRC_URI[sha256sum] = "544ae14012f8e7e426b8cb522eb0aaaac831ad7c35601d1cf31d37670e0ebb3b"
 
 # Especially helps compiling with clang which enable this as error when
 # using c++11