From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: [PATCH 09/15] wpebackend-fdo: upgrade 1.16.0 -> 1.16.1
Date: Mon, 22 Dec 2025 21:44:27 +0100 [thread overview]
Message-ID: <20251222204455.2284529-9-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20251222204455.2284529-1-alex.kanavin@gmail.com>
From: Alexander Kanavin <alex@linutronix.de>
Add a patch to fix musl failures.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
| 36 +++++++++++++++++++
...fdo_1.16.0.bb => wpebackend-fdo_1.16.1.bb} | 6 ++--
2 files changed, 40 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-sato/webkit/wpebackend-fdo/0001-src-ws-egl.cpp-add-missing-unistd.h-header.patch
rename meta/recipes-sato/webkit/{wpebackend-fdo_1.16.0.bb => wpebackend-fdo_1.16.1.bb} (77%)
--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
index 0000000000..ccb79cfd8f
--- /dev/null
+++ b/meta/recipes-sato/webkit/wpebackend-fdo/0001-src-ws-egl.cpp-add-missing-unistd.h-header.patch
@@ -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
diff --git a/meta/recipes-sato/webkit/wpebackend-fdo_1.16.0.bb b/meta/recipes-sato/webkit/wpebackend-fdo_1.16.1.bb
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 aa6c58d176..11a1ce6bd7 100644
--- a/meta/recipes-sato/webkit/wpebackend-fdo_1.16.0.bb
+++ b/meta/recipes-sato/webkit/wpebackend-fdo_1.16.1.bb
@@ -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
--
2.47.3
next prev parent reply other threads:[~2025-12-22 20:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-22 20:44 [PATCH 01/15] sysstat: upgrade 12.7.8 -> 12.7.9 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 02/15] util-linux: upgrade 2.41.2 -> 2.41.3 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 03/15] virglrenderer: upgrade 1.1.1 -> 1.2.0 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 04/15] vte: upgrade 0.82.1 -> 0.82.2 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 05/15] vulkan: upgrade 1.4.328.1 -> 1.4.335.0 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 06/15] vulkan-samples: upgrade to latest revision Alexander Kanavin
2025-12-22 20:44 ` [PATCH 07/15] wayland-protocols: upgrade 1.45 -> 1.47 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 08/15] wayland-utils: upgrade 1.2.0 -> 1.3.0 Alexander Kanavin
2025-12-22 20:44 ` Alexander Kanavin [this message]
2025-12-22 20:44 ` [PATCH 10/15] x264: upgrade to latest revision Alexander Kanavin
2025-12-22 20:44 ` [PATCH 11/15] xcb-util-cursor: upgrade 0.1.5 -> 0.1.6 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 12/15] xkbcomp: upgrade 1.4.7 -> 1.5.0 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 13/15] xkeyboard-config: upgrade 2.45 -> 2.46 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 14/15] xserver-xorg: upgrade 21.1.18 -> 21.1.21 Alexander Kanavin
2025-12-22 20:44 ` [PATCH 15/15] xwayland: upgrade 24.1.8 -> 24.1.9 Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251222204455.2284529-9-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=alex@linutronix.de \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox