diff mbox series

[meta-oe,59/72] qad: Update to latest tip on main

Message ID 20261130084643.1500716-60-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upgrades, tip updates, removals and build fixes | expand

Commit Message

Khem Raj Nov. 30, 2026, 8:46 a.m. UTC
Move SRCREV from ae0c099c1fdc (2023-08-08) to e70b84fd915a (2026-03-23), 40 commits.

Adds an optional ILM (Wayland IVI) screen backend next to KMS, an option
to stop swipes at the final coordinates and pause intervals between key
strokes, fixes the evdev button handling, memory leaks and the build
without KMS, and documents uinput usage. The glibc 2.43 and clang
warning fixes are upstream; drop both patches.

Upstream now builds cJSON from git submodules listed in .gitmodules.
Fetch each with its own git SRC_URI entry, pinned to the revision qad
records, which keeps the pins visible and the build reproducible: cJSON
v1.7.16 (cb8693b058ba) in src/cjson and wayland-ivi-extension 2.3.1
(469400ad40a3) in src/wayland-ivi-extension. Add the bundled cJSON's MIT
license to LIC_FILES_CHKSUM and drop cjson from DEPENDS.

The build now defaults to static linking (-static); pass -Dstatic=false.
qad then links the shared libmicrohttpd although meson.build asks for it
with static: true.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...Fix-warnings-found-by-clang-compiler.patch | 53 -------------------
 ...0001-fix-compilation-with-glibc-2.43.patch | 30 -----------
 meta-oe/recipes-extended/qad/qad_git.bb       | 20 +++++--
 3 files changed, 15 insertions(+), 88 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/qad/qad/0001-Fix-warnings-found-by-clang-compiler.patch
 delete mode 100644 meta-oe/recipes-extended/qad/qad/0001-fix-compilation-with-glibc-2.43.patch
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/qad/qad/0001-Fix-warnings-found-by-clang-compiler.patch b/meta-oe/recipes-extended/qad/qad/0001-Fix-warnings-found-by-clang-compiler.patch
deleted file mode 100644
index 7a9937d685..0000000000
--- a/meta-oe/recipes-extended/qad/qad/0001-Fix-warnings-found-by-clang-compiler.patch
+++ /dev/null
@@ -1,53 +0,0 @@ 
-From 2e871d6d6d13955ff363ff756adfdd257e72e9e8 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Thu, 10 Aug 2023 23:58:43 -0700
-Subject: [PATCH] Fix warnings found by clang compiler
-
-Fix diagnostics found with -Wdeprecated-non-prototype using clang
-compiler
-
-e.g.
-| ../git/src/server.c:108:35: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]  |   108 |   if (backend->input_backend->move(x, y, event) < 0) {                                                                                                                              |       |                                   ^
-
-Upstream-Status: Submitted [https://gitlab.com/CodethinkLabs/qad/qad/-/merge_requests/33]
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- include/backend.h                 | 8 ++++----
- src/backends/input/input_common.h | 2 +-
- 2 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/include/backend.h b/include/backend.h
-index 8f4c7c1..4bfe510 100644
---- a/include/backend.h
-+++ b/include/backend.h
-@@ -41,10 +41,10 @@ typedef struct qad_screen_buffer_s {
- } qad_screen_buffer_t;
- 
- typedef struct qad_backend_input_s {
--  int (*move)();
--  int (*button)();
--  int (*touch)();
--  int (*swipe)();
-+  int (*move)(int, int, int);
-+  int (*button)(int, int);
-+  int (*touch)(int, int, int, int);
-+  int (*swipe)(int, int, int, int, int, int);
-   void *data;
- } qad_backend_input_t;
- 
-diff --git a/src/backends/input/input_common.h b/src/backends/input/input_common.h
-index 8e099a5..f2ea73f 100644
---- a/src/backends/input/input_common.h
-+++ b/src/backends/input/input_common.h
-@@ -28,7 +28,7 @@
- #define BTN_DOWN 1
- #define BTN_UP 0
- 
--qad_backend_input_t *create_input_backend();
-+qad_backend_input_t *create_input_backend(char input_type[]);
- 
- // int move(int x, int y, int event);
- 
--- 
-2.41.0
-
diff --git a/meta-oe/recipes-extended/qad/qad/0001-fix-compilation-with-glibc-2.43.patch b/meta-oe/recipes-extended/qad/qad/0001-fix-compilation-with-glibc-2.43.patch
deleted file mode 100644
index 3bebcc1b11..0000000000
--- a/meta-oe/recipes-extended/qad/qad/0001-fix-compilation-with-glibc-2.43.patch
+++ /dev/null
@@ -1,30 +0,0 @@ 
-From 030b4983e3515b214f4faa61ce1b7c552c007340 Mon Sep 17 00:00:00 2001
-From: Gyorgy Sarvari <skandigraun@gmail.com>
-Date: Thu, 19 Mar 2026 18:05:00 +0100
-Subject: [PATCH] fix compilation with glibc 2.43
-
-Fioxes compilation error:
-| ../sources/qad-0.0+git/src/server.c:212:22: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
-|   212 |   char *pLastSlash = strrchr(url, '/');
-
-Upstream-Status: Submitted [https://gitlab.com/CodethinkLabs/qad/qad/-/merge_requests/56]
-Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
----
- src/server.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/server.c b/src/server.c
-index 648fb46..11ec114 100644
---- a/src/server.c
-+++ b/src/server.c
-@@ -307,8 +307,8 @@ void qad_text(const char *post_data, int post_data_size, qad_backend_t *backend,
- void qad_screenshot(struct MHD_Connection *connection, const char *url,
-                     qad_backend_t *backend, connection_info_struct_t *con_info,
-                     char *error) {
--  char *pLastSlash = strrchr(url, '/');
--  char *screenName = pLastSlash ? pLastSlash + 1 : NULL;
-+  const char *pLastSlash = strrchr(url, '/');
-+  const char *screenName = pLastSlash ? pLastSlash + 1 : NULL;
-   int screenNumber = -1;
- 
-   if (screenName && *screenName != '\0') {
diff --git a/meta-oe/recipes-extended/qad/qad_git.bb b/meta-oe/recipes-extended/qad/qad_git.bb
index 7a50fbe334..010febaaab 100644
--- a/meta-oe/recipes-extended/qad/qad_git.bb
+++ b/meta-oe/recipes-extended/qad/qad_git.bb
@@ -8,23 +8,33 @@  for tasks to be carried out entirely automatically."
 LICENSE = "GPL-2.0-or-later AND MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=402cce7fbcb6ea9ab5a0378dd7f40806 \
                     file://openqa/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+                    file://src/cjson/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \
                    "
-SRC_URI = "git://gitlab.com/CodethinkLabs/qad/qad;branch=main;protocol=https \
-           file://0001-Fix-warnings-found-by-clang-compiler.patch \
-           file://0001-fix-compilation-with-glibc-2.43.patch"
+SRC_URI = "git://gitlab.com/CodethinkLabs/qad/qad;branch=main;protocol=https;name=qad \
+           git://github.com/DaveGamble/cJSON.git;branch=master;protocol=https;name=cjson;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/cjson \
+           git://github.com/COVESA/wayland-ivi-extension.git;branch=master;protocol=https;name=ivi;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/wayland-ivi-extension \
+"
 
-SRCREV = "ae0c099c1fdc0ca6f5d631cea6b302937122b362"
+# Submodules listed in .gitmodules, at the revisions qad pins
+SRCREV_qad = "e70b84fd915a8bfec5fd00d298892f33bb4230eb"
+# v1.7.16
+SRCREV_cjson = "cb8693b058ba302f4829ec6d03f609ac6f848546"
+# 2.3.1
+SRCREV_ivi = "469400ad40a3b4fbd2b61c9a092d8f30ed3fcb33"
+SRCREV_FORMAT = "qad"
 
 # Upstream repo does not tag
 UPSTREAM_CHECK_COMMITS = "1"
 
 PV = "0.0+git"
 
-DEPENDS = "cjson libmicrohttpd libdrm libpng"
+DEPENDS = "libmicrohttpd libdrm libpng"
 
 FILES:${PN} += "qad"
 inherit meson pkgconfig
 
+EXTRA_OEMESON += "-Dstatic=false"
+
 do_install () {
     install -d ${D}${bindir}
     install -p -m 755 qad ${D}${bindir}/