diff options
| -rw-r--r-- | meta/recipes-graphics/wayland/weston/0001-libweston-tools-Include-libgen.h-for-basename-signat.patch | 48 | ||||
| -rw-r--r-- | meta/recipes-graphics/wayland/weston_12.0.2.bb | 1 |
2 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston/0001-libweston-tools-Include-libgen.h-for-basename-signat.patch b/meta/recipes-graphics/wayland/weston/0001-libweston-tools-Include-libgen.h-for-basename-signat.patch new file mode 100644 index 0000000000..1d281fa832 --- /dev/null +++ b/meta/recipes-graphics/wayland/weston/0001-libweston-tools-Include-libgen.h-for-basename-signat.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | From 2b53236ac637dfa7fb0f438f7391a73f6ef92a06 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 14 Dec 2023 09:13:54 -0800 | ||
| 4 | Subject: [PATCH] libweston,tools: Include libgen.h for basename signature | ||
| 5 | |||
| 6 | Latest musl has removed the declaration from string.h [1] as it only | ||
| 7 | implements POSIX version alone and string.h in glibc implements GNU | ||
| 8 | version of basename. This now results in compile errors on musl. | ||
| 9 | |||
| 10 | This might be a warning with older compilers but it is error with | ||
| 11 | Clang-17+ as it treats -Wimplicit-function-declaration as error | ||
| 12 | |||
| 13 | [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 | ||
| 14 | |||
| 15 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1420] | ||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | libweston/backend-drm/libbacklight.c | 1 + | ||
| 19 | tools/zunitc/src/zunitc_impl.c | 1 + | ||
| 20 | 2 files changed, 2 insertions(+) | ||
| 21 | |||
| 22 | diff --git a/libweston/backend-drm/libbacklight.c b/libweston/backend-drm/libbacklight.c | ||
| 23 | index ca7f2d68..74690fa7 100644 | ||
| 24 | --- a/libweston/backend-drm/libbacklight.c | ||
| 25 | +++ b/libweston/backend-drm/libbacklight.c | ||
| 26 | @@ -41,6 +41,7 @@ | ||
| 27 | #include <drm.h> | ||
| 28 | #include <fcntl.h> | ||
| 29 | #include <malloc.h> | ||
| 30 | +#include <libgen.h> | ||
| 31 | #include <string.h> | ||
| 32 | #include <errno.h> | ||
| 33 | |||
| 34 | diff --git a/tools/zunitc/src/zunitc_impl.c b/tools/zunitc/src/zunitc_impl.c | ||
| 35 | index 18f03015..9b460fa0 100644 | ||
| 36 | --- a/tools/zunitc/src/zunitc_impl.c | ||
| 37 | +++ b/tools/zunitc/src/zunitc_impl.c | ||
| 38 | @@ -27,6 +27,7 @@ | ||
| 39 | |||
| 40 | #include <errno.h> | ||
| 41 | #include <fcntl.h> | ||
| 42 | +#include <libgen.h> | ||
| 43 | #include <stdarg.h> | ||
| 44 | #include <stdbool.h> | ||
| 45 | #include <stdio.h> | ||
| 46 | -- | ||
| 47 | 2.43.0 | ||
| 48 | |||
diff --git a/meta/recipes-graphics/wayland/weston_12.0.2.bb b/meta/recipes-graphics/wayland/weston_12.0.2.bb index 5a179e6770..cfcaaca9c7 100644 --- a/meta/recipes-graphics/wayland/weston_12.0.2.bb +++ b/meta/recipes-graphics/wayland/weston_12.0.2.bb | |||
| @@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \ | |||
| 7 | " | 7 | " |
| 8 | 8 | ||
| 9 | SRC_URI = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz \ | 9 | SRC_URI = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz \ |
| 10 | file://0001-libweston-tools-Include-libgen.h-for-basename-signat.patch \ | ||
| 10 | file://weston.png \ | 11 | file://weston.png \ |
| 11 | file://weston.desktop \ | 12 | file://weston.desktop \ |
| 12 | file://xwayland.weston-start \ | 13 | file://xwayland.weston-start \ |
