diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-03-19 18:14:55 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-03-20 09:51:45 -0700 |
| commit | b368ce1790e076d6591b91e3cdf019d9fb4b4312 (patch) | |
| tree | 0ff020fc939efc64e423f273b4c9344c6bc6e947 | |
| parent | 635c7328f90733d1b197b48462290ed2177c2d2f (diff) | |
| download | meta-openembedded-b368ce1790e076d6591b91e3cdf019d9fb4b4312.tar.gz | |
qad: add patch to build with glibc 2.43
As the subject says. Fixes 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, '/');
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/qad/qad/0001-fix-compilation-with-glibc-2.43.patch | 30 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/qad/qad_git.bb | 3 |
2 files changed, 32 insertions, 1 deletions
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 new file mode 100644 index 0000000000..3bebcc1b11 --- /dev/null +++ b/meta-oe/recipes-extended/qad/qad/0001-fix-compilation-with-glibc-2.43.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 030b4983e3515b214f4faa61ce1b7c552c007340 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Thu, 19 Mar 2026 18:05:00 +0100 | ||
| 4 | Subject: [PATCH] fix compilation with glibc 2.43 | ||
| 5 | |||
| 6 | Fioxes compilation error: | ||
| 7 | | ../sources/qad-0.0+git/src/server.c:212:22: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] | ||
| 8 | | 212 | char *pLastSlash = strrchr(url, '/'); | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://gitlab.com/CodethinkLabs/qad/qad/-/merge_requests/56] | ||
| 11 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 12 | --- | ||
| 13 | src/server.c | 4 ++-- | ||
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/src/server.c b/src/server.c | ||
| 17 | index 648fb46..11ec114 100644 | ||
| 18 | --- a/src/server.c | ||
| 19 | +++ b/src/server.c | ||
| 20 | @@ -307,8 +307,8 @@ void qad_text(const char *post_data, int post_data_size, qad_backend_t *backend, | ||
| 21 | void qad_screenshot(struct MHD_Connection *connection, const char *url, | ||
| 22 | qad_backend_t *backend, connection_info_struct_t *con_info, | ||
| 23 | char *error) { | ||
| 24 | - char *pLastSlash = strrchr(url, '/'); | ||
| 25 | - char *screenName = pLastSlash ? pLastSlash + 1 : NULL; | ||
| 26 | + const char *pLastSlash = strrchr(url, '/'); | ||
| 27 | + const char *screenName = pLastSlash ? pLastSlash + 1 : NULL; | ||
| 28 | int screenNumber = -1; | ||
| 29 | |||
| 30 | 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 189d2f9d15..4a80b6738f 100644 --- a/meta-oe/recipes-extended/qad/qad_git.bb +++ b/meta-oe/recipes-extended/qad/qad_git.bb | |||
| @@ -10,7 +10,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=402cce7fbcb6ea9ab5a0378dd7f40806 \ | |||
| 10 | file://openqa/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 10 | file://openqa/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 11 | " | 11 | " |
| 12 | SRC_URI = "git://gitlab.com/CodethinkLabs/qad/qad;branch=main;protocol=https \ | 12 | SRC_URI = "git://gitlab.com/CodethinkLabs/qad/qad;branch=main;protocol=https \ |
| 13 | file://0001-Fix-warnings-found-by-clang-compiler.patch" | 13 | file://0001-Fix-warnings-found-by-clang-compiler.patch \ |
| 14 | file://0001-fix-compilation-with-glibc-2.43.patch" | ||
| 14 | 15 | ||
| 15 | SRCREV = "ae0c099c1fdc0ca6f5d631cea6b302937122b362" | 16 | SRCREV = "ae0c099c1fdc0ca6f5d631cea6b302937122b362" |
| 16 | 17 | ||
