libutempter: Upgrade to 1.2.2-alt1
PATCH 1/63 libutempter: Upgrade to 1.2.2-alt1
License-Update: Whitespace removal [1]
Drop glibc assumptions patch its fixed upstream
---
.../libutempter/0001-Fix-macro-error.patch | 7 +-
.../libutempter-remove-glibc-assumption.patch | 81 -------------------
...butempter.bb => libutempter_1.2.2-alt1.bb} | 8 +-
3 files changed, 4 insertions(+), 92 deletions(-)
delete mode 100644 meta-oe/recipes-support/libutempter/libutempter/libutempter-remove-glibc-assumption.patch
rename meta-oe/recipes-support/libutempter/{libutempter.bb => libutempter_1.2.2-alt1.bb} (83%)meta-oe/recipes-support/libutempter/libutempter/0001-Fix-macro-error.patch +1 -6
@@ -11,15 +11,13 @@ Signed-off-by: Qian Lei <[email protected]> iface.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -diff --git a/iface.c b/iface.c -index 5951d81..27793f0 100644 --- a/iface.c +++ b/iface.c @@ -43,7 +43,14 @@ __result; })) #endif --#define UTEMPTER_DEFAULT_PATHNAME LIBEXECDIR "/utempter/utempter" +-#define UTEMPTER_DEFAULT_PATHNAME LIBEXECDIR "/utempter/utempter" +#ifdef LIBEXECDIR +# define CAT_PATH(DIR1,DIR2) DIR1##DIR2 +# define RAW_UTEMPTER_PATH CAT_PATH(LIBEXECDIR,/utempter/utempter)
@@ -31,6 +29,3 @@ index 5951d81..27793f0 100644 static const char *utempter_pathname; static int saved_fd = -1; --- -1.8.3.1 -
meta-oe/recipes-support/libutempter/libutempter/libutempter-remove-glibc-assumption.patch deleted +0 -81
81 lines not on this page · raw message
meta-oe/recipes-support/libutempter/libutempter_1.2.2-alt1.bb renamed from meta-oe/recipes-support/libutempter/libutempter.bb +3 -5
@@ -5,16 +5,14 @@ screen and xterm to record user sessions to utmp and wtmp files." HOMEPAGE = "ftp://ftp.altlinux.org/pub/people/ldv/utempter" SECTION = "System Environment/Libraries" LICENSE = "GPL-2.0-only & GPL-2.0-or-later & LGPL-2.0-only & MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1" +LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de" -SRCREV = "3ef74fff310f09e2601e241b9f042cd39d591018" -PV = "1.1.6-alt2+git${SRCPV}" +SRCREV = "63825e2244629d44dae21132b1065d7ecc0491c0" SRC_URI = "git://git.altlinux.org/people/ldv/packages/libutempter.git;branch=master \ file://0001-Fix-macro-error.patch \ file://0002-Proper-macro-path-generation.patch \ - file://libutempter-remove-glibc-assumption.patch \ - " + " S = "${WORKDIR}/git/${BPN}"
Signature · 1 line
2.37.3
PATCH 2/63 libuio: Update to latest tip of trunk
Drop upstreamed 0001-include-fcntl.h-for-O_RDWR-define.patch Drop replace_inline_with_static-inline.patch, it has been fixed differently
--- ...01-include-fcntl.h-for-O_RDWR-define.patch | 38 ------ .../replace_inline_with_static-inline.patch | 121 ------------------ .../recipes-extended/libuio/libuio_0.2.1.bb | 11 +- 3 files changed, 4 insertions(+), 166 deletions(-) delete mode 100644 meta-oe/recipes-extended/libuio/libuio/0001-include-fcntl.h-for-O_RDWR-define.patch delete mode 100644 meta-oe/recipes-extended/libuio/libuio/replace_inline_with_static-inline.patch
meta-oe/recipes-extended/libuio/libuio/0001-include-fcntl.h-for-O_RDWR-define.patch deleted +0 -38
@@ -1,38 +0,0 @@ -From d39c78d322585a32f9a55c67c25a99602ce08b12 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sat, 1 Apr 2017 09:01:33 -0700 -Subject: [PATCH] include fcntl.h for O_RDWR define - -Signed-off-by: Khem Raj <[email protected]> ---- - tools/lsuio.c | 1 + - tools/rwuio.c | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/tools/lsuio.c b/tools/lsuio.c -index 58eb922..4769446 100644 ---- a/tools/lsuio.c -+++ b/tools/lsuio.c -@@ -19,6 +19,7 @@ - #include <stdio.h> - #include <sys/types.h> - #include <getopt.h> -+#include <fcntl.h> - - #include "system.h" - #include "uio_helper.h" -diff --git a/tools/rwuio.c b/tools/rwuio.c -index aef9e90..ebc71e1 100644 ---- a/tools/rwuio.c -+++ b/tools/rwuio.c -@@ -20,6 +20,7 @@ - */ - #include <stdio.h> - #include <stdlib.h> -+#include <fcntl.h> - #include <sys/types.h> - #include <getopt.h> - --- -2.12.1 -
meta-oe/recipes-extended/libuio/libuio/replace_inline_with_static-inline.patch deleted +0 -121
121 lines not on this page · raw message
meta-oe/recipes-extended/libuio/libuio_0.2.1.bb +4 -7
@@ -3,16 +3,13 @@ SECTION = "base" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" -SRC_URI = "git://git.code.sf.net/p/libuio/code;branch=master \ - file://replace_inline_with_static-inline.patch \ - file://0001-include-fcntl.h-for-O_RDWR-define.patch \ - " +SRCREV = "17d96e8f9a5bce7cee5e2222855ab46a246dba51" -inherit autotools +SRC_URI = "git://git.code.sf.net/p/libuio/code;branch=master;protocol=https" -SRCREV = "ed4f07ea147ac403c28105ab44d01bbf524d36f9" +PV .= "+0.2.2+git${SRCPV}" -PV .= "+git${SRCPV}" +inherit autotools S = "${WORKDIR}/git"
Signature · 1 line
2.37.3
PATCH 3/63 serial-forward: Correct typo in specifying string.h header
In reply to Khem Raj--- ...e-typo-in-include-file-name-string.h.patch | 27 +++++++++++++++++++ .../serial-utils/serial-forward_git.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta-oe/recipes-support/serial-utils/serial-forward/0001-correct-the-typo-in-include-file-name-string.h.patch
meta-oe/recipes-support/serial-utils/serial-forward/0001-correct-the-typo-in-include-file-name-string.h.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 2897794c337625d1951eb0b402cd8840ae2182a8 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 10:33:57 -0700 +Subject: [PATCH] correct the typo in include file name string.h + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + tools/serial_forward/src/forward.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/serial_forward/src/forward.c b/tools/serial_forward/src/forward.c +index 9fad6f9b..4c0dd9df 100644 +--- a/tools/serial_forward/src/forward.c ++++ b/tools/serial_forward/src/forward.c +@@ -20,7 +20,7 @@ + #include <stdlib.h> + #include <unistd.h> + #include <termios.h> +-#include <strings.h> ++#include <string.h> + #include <getopt.h> + + #include "forward.h" +-- +2.37.3 +
meta-oe/recipes-support/serial-utils/serial-forward_git.bb +1 -0
@@ -8,6 +8,7 @@ PV = "1.1+gitr${SRCPV}" SRC_URI = "git://github.com/freesmartphone/cornucopia.git;branch=master;protocol=https \ file://0001-serial_forward-Disable-default-static-linking.patch;striplevel=3 \ + file://0001-correct-the-typo-in-include-file-name-string.h.patch;striplevel=3 \ " S = "${WORKDIR}/git/tools/serial_forward"
Signature · 1 line
2.37.3
PATCH 4/63 mcelog: Upgrade to v189
In reply to Khem RajFix build with clang while here
Drop 0001-genconfig.py-update-shebang.patch its fixed upstream now
---
...tring.h-form-mem-function-prototypes.patch | 26 +++++++++++++++
.../0001-genconfig.py-update-shebang.patch | 33 -------------------
.../mcelog/{mcelog_180.bb => mcelog_189.bb} | 4 +--
3 files changed, 28 insertions(+), 35 deletions(-)
create mode 100644 meta-oe/recipes-support/mcelog/mcelog/0001-client-Include-string.h-form-mem-function-prototypes.patch
delete mode 100644 meta-oe/recipes-support/mcelog/mcelog/0001-genconfig.py-update-shebang.patch
rename meta-oe/recipes-support/mcelog/{mcelog_180.bb => mcelog_189.bb} (89%)meta-oe/recipes-support/mcelog/mcelog/0001-client-Include-string.h-form-mem-function-prototypes.patch new file +26 -0
@@ -0,0 +1,26 @@ +From c7753f82261d49862d5e0f9691bf87799d36ef0c Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 16:20:03 -0700 +Subject: [PATCH] client: Include string.h form mem* function prototypes + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + client.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/client.c b/client.c +index 883b1de..e474e55 100644 +--- a/client.c ++++ b/client.c +@@ -16,6 +16,7 @@ + on your Linux system; if not, write to the Free Software Foundation, + Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include <stdio.h> ++#include <string.h> + #include <sys/socket.h> + #include <sys/un.h> + #include <unistd.h> +-- +2.37.3 +
meta-oe/recipes-support/mcelog/mcelog/0001-genconfig.py-update-shebang.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From b09ff147e9383d33e6adbcb356b52236610fceda Mon Sep 17 00:00:00 2001 -From: Kai Kang <[email protected]> -Date: Fri, 1 Apr 2022 10:00:00 +0800 -Subject: [PATCH] genconfig.py: update shebang - -It fails to call genconfig.py if no /usr/bin/python on build machine: - -| ./genconfig.py mcelog.conf config-intro.man > mcelog.conf.5 -| /bin/sh: ./genconfig.py: /usr/bin/python: bad interpreter: No such file or directory -| Makefile:71: recipe for target 'mcelog.conf.5' failed - -Update shebang with 'env python3' instead. - -Upstream-Status: Pending - -Signed-off-by: Kai Kang <[email protected]> ---- - genconfig.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/genconfig.py b/genconfig.py -index ce9987f..982cac6 100755 ---- a/genconfig.py -+++ b/genconfig.py -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/env python3 - # generate man config documentation from mcelog.conf example - # genconfig.py mcelog.conf intro.html - from __future__ import print_function --- -2.17.1 -
meta-oe/recipes-support/mcelog/mcelog_189.bb renamed from meta-oe/recipes-support/mcelog/mcelog_180.bb +2 -2
@@ -7,11 +7,11 @@ SECTION = "System Environment/Base" SRC_URI = "\ git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git;protocol=http;;branch=master \ + file://0001-client-Include-string.h-form-mem-function-prototypes.patch \ file://run-ptest \ - file://0001-genconfig.py-update-shebang.patch \ " -SRCREV = "4146c9296a0cbd26f1c5e411cb44877f350053bd" +SRCREV = "b8dfb1fa34eb627a03adfb315326a29ec51214b3" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Signature · 1 line
2.37.3
PATCH 5/63 fvwm: Disable int-conversion and implicit-int warnings as errors
In reply to Khem Raj--- meta-oe/recipes-graphics/fvwm/fvwm_2.6.9.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/fvwm/fvwm_2.6.9.bb +2 -0
@@ -75,6 +75,8 @@ EXTRA_OECONF = " \ EXTRA_OEMAKE = " \ V=1 \ " +# clang treats them as errors by default now starting with 15.0+ +CFLAGS += "-Wno-error=int-conversion -Wno-error=implicit-int" do_install:append() { install -d -m 0755 ${D}/${sysconfdir}/xdg/fvwm
Signature · 1 line
2.37.3
PATCH 6/63 hddtemp: Add missing prototype for ata_get_powermode in sata.c
In reply to Khem Raj--- ...-Declare-ata_get_powermode-prototype.patch | 33 +++++++++++++++++++ .../hddtemp/hddtemp_0.3-beta15.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch
meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch new file +33 -0
@@ -0,0 +1,33 @@ +From c5ca31940d1d1889ef2cc6974c18ff24ab406748 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 16:42:23 -0700 +Subject: [PATCH] sata.c: Declare ata_get_powermode prototype + +Fixes build warnings/errors + +sata.c:127:10: error: call to undeclared function 'ata_get_powermode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +| switch(ata_get_powermode(dsk->fd)) + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/sata.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/sata.c b/src/sata.c +index d67621f..4172245 100644 +--- a/src/sata.c ++++ b/src/sata.c +@@ -52,7 +52,8 @@ + (((u16)(__x) & (u16)0xff00U) >> 8) )); \ + }) + +- ++extern enum e_powermode ata_get_powermode(int device); ++ + static int sata_probe(int device) { + int bus_num; + unsigned char cmd[4] = { WIN_IDENTIFY, 0, 0, 1 }; +-- +2.37.3 +
meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb +1 -0
@@ -10,6 +10,7 @@ SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/hddtemp/hddtemp-0.3-beta15.tar.bz2 \ file://hddtemp-0.3-beta15-autodetect-717479.patch \ file://0001-backtrace-Replace-struct-ucontext-with-ucontext_t.patch \ file://0001-configure.ac-Rename-to-configure.ac-and-use-external.patch \ + file://0001-sata.c-Declare-ata_get_powermode-prototype.patch \ file://hddtemp.db \ file://init \ "
Signature · 1 line
2.37.3
PATCH 7/63 nana: Include stdlib.h form exit() and abort() functions
In reply to Khem Raj--- ...dlib.h-for-exit-and-abort-prototypes.patch | 52 +++++++++++++++++++ meta-oe/recipes-extended/nana/nana_2.5.bb | 1 + 2 files changed, 53 insertions(+) create mode 100644 meta-oe/recipes-extended/nana/nana/0001-Include-stdlib.h-for-exit-and-abort-prototypes.patch
meta-oe/recipes-extended/nana/nana/0001-Include-stdlib.h-for-exit-and-abort-prototypes.patch new file +52 -0
@@ -0,0 +1,52 @@ +From 0e32b1a07b1b032576c7b0a73d7f1a090a50dd23 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 10:40:52 -0700 +Subject: [PATCH] Include stdlib.h for exit and abort prototypes + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/I.c | 1 + + src/nana_error.c | 1 + + src/nanafilter.c | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/src/I.c b/src/I.c +index e4577ae..4761af4 100644 +--- a/src/I.c ++++ b/src/I.c +@@ -30,6 +30,7 @@ + + + #include <stdio.h> ++#include <stdlib.h> + #include <I.h> + + /* +diff --git a/src/nana_error.c b/src/nana_error.c +index 51f99f2..c3a67d2 100644 +--- a/src/nana_error.c ++++ b/src/nana_error.c +@@ -30,6 +30,7 @@ + + #include <nana_error.h> + #include <stdio.h> ++#include <stdlib.h> + + void nana_error(const char *message) { + fprintf(stderr, "nana_error: %s\n", message); +diff --git a/src/nanafilter.c b/src/nanafilter.c +index 191e8ef..1ab1978 100644 +--- a/src/nanafilter.c ++++ b/src/nanafilter.c +@@ -33,6 +33,7 @@ + static const char rcs[] ="Id: nanafilter.c,v 1.2 1998/06/10 06:58:55 pjm Exp "; + + #include <stdio.h> ++#include <stdlib.h> + + void do_input(void); + void do_string(void); +-- +2.37.3 +
meta-oe/recipes-extended/nana/nana_2.5.bb +1 -0
@@ -7,6 +7,7 @@ SECTION = "Development/Languages/C and C++" SRC_URI = "http://download.savannah.gnu.org/releases/${BPN}/${BP}.tar.gz \ file://change-mandir-to-DESTDIR.patch \ file://modify-acinclude.m4-and-configure.in.patch \ + file://0001-Include-stdlib.h-for-exit-and-abort-prototypes.patch \ " SRC_URI[md5sum] = "66c88aa0ad095b2e67673773135475f1" SRC_URI[sha256sum] = "fd1819ffea94b209513959447e4802afe2719600e7d161cd78b265a42812affa"
Signature · 1 line
2.37.3
PATCH 8/63 libsmi: Fix build with clang 15
In reply to Khem RajAdd flex and bison dependencies to make deterministic builds
--- ...ntifierRef-prototype-in-yang-complex.patch | 53 +++++++++++++++++++ .../recipes-support/libsmi/libsmi_0.5.0.bb | 5 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/libsmi/libsmi/0001-Define-createIdentifierRef-prototype-in-yang-complex.patch
meta-oe/recipes-support/libsmi/libsmi/0001-Define-createIdentifierRef-prototype-in-yang-complex.patch new file +53 -0
@@ -0,0 +1,53 @@ +From 77b520a8ee193b6d9f12e049f505d8d98204c11c Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 17:13:32 -0700 +Subject: [PATCH] Define createIdentifierRef prototype in yang-complex-types.c + +Provide needed prototype to make compiler happy + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + lib/parser-yang.y | 3 ++- + lib/yang-complex-types.c | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +--- a/lib/parser-yang.y ++++ b/lib/parser-yang.y +@@ -41,7 +41,8 @@ + #include "yang-complex-types.h" + #include "util.h" + #include "error.h" +- ++#include "yang-check.h" ++ + #ifdef HAVE_DMALLOC_H + #include <dmalloc.h> + #endif +@@ -61,7 +62,8 @@ + #define debug + #endif + +- ++extern void createIdentifierRef(struct _YangNode *node, char* prefix, char* ident); ++extern void smiyyerror(char *msg, Parser *parserPtr); + /* + * NOTE: The argument lvalp ist not really a void pointer. Unfortunately, + * we don't know it better at this point. bison generated C code declares +--- a/lib/yang-complex-types.c ++++ b/lib/yang-complex-types.c +@@ -35,12 +35,13 @@ + #include "yang-data.h" + #include "yang-check.h" + #include "yang-complex-types.h" +- + /* + * Current parser defined in parser-yang. Workaround - can't include data.h + */ + extern Parser *currentParser; + ++extern void createIdentifierRef(struct _YangNode *node, char* prefix, char* ident); ++ + static const int parents_complex_type[] = { + YANG_DECL_MODULE, YANG_DECL_SUBMODULE, YANG_DECL_CONTAINER, + YANG_DECL_LIST, YANG_DECL_RPC, YANG_DECL_INPUT,
meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb +4 -1
@@ -7,14 +7,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7" SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \ file://smi.conf \ file://libsmi-fix-the-test-dump-files.patch \ + file://0001-Define-createIdentifierRef-prototype-in-yang-complex.patch \ " SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11" SRC_URI[sha256sum] = "f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3" +DEPENDS += "bison-native flex-native" + RDEPENDS:${PN} += "wget" -inherit autotools +inherit autotools-brokensep EXTRA_OECONF = "ac_cv_path_SH=/bin/sh ac_cv_path_WGET=${bindir}/wget ac_cv_path_AWK=${bindir}/awk"
Signature · 1 line
2.37.3
PATCH 9/63 ckermit: Fix build with clang
In reply to Khem Raj--- .../0001-Fix-function-prototype-errors.patch | 106 ++++++++++++++++++ .../recipes-support/ckermit/ckermit_302.bb | 4 +- 2 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/ckermit/ckermit/0001-Fix-function-prototype-errors.patch
meta-oe/recipes-support/ckermit/ckermit/0001-Fix-function-prototype-errors.patch new file +106 -0
@@ -0,0 +1,106 @@ +From f73eade85b7a1b93f7b9ef6ca9ead9d2441f8f84 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 19:01:38 -0700 +Subject: [PATCH] Fix function prototype errors + +Clang 15 is strict, therefore ensure that right headers are pulled in +and also right function prototypes are used. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + ckcmai.c | 4 ++++ + ckucmd.c | 2 +- + ckucmd.h | 2 -- + ckucon.c | 2 +- + ckufio.c | 2 +- + ckuusx.c | 2 +- + 6 files changed, 8 insertions(+), 6 deletions(-) + +diff --git a/ckcmai.c b/ckcmai.c +index a5640e5..a4e322d 100644 +--- a/ckcmai.c ++++ b/ckcmai.c +@@ -561,6 +561,10 @@ ACKNOWLEDGMENTS: + #include "ckntap.h" + #endif /* NT */ + ++#ifndef VMS ++#include <time.h> /* time() */ ++#endif ++ + #ifndef NOSERVER + /* Text message definitions.. each should be 256 chars long, or less. */ + #ifdef MINIX +diff --git a/ckucmd.c b/ckucmd.c +index 274dc2d..730f20d 100644 +--- a/ckucmd.c ++++ b/ckucmd.c +@@ -7356,7 +7356,7 @@ cmdgetc(timelimit) int timelimit; { /* Get a character from the tty. */ + Returns 0 or greater always. + */ + int +-cmdconchk() { ++cmdconchk(void) { + int x = 0, y; + y = pushc ? 1 : 0; /* Have command character pushed? */ + #ifdef OS2 +diff --git a/ckucmd.h b/ckucmd.h +index 7cd4ced..5c43cc4 100644 +--- a/ckucmd.h ++++ b/ckucmd.h +@@ -280,9 +280,7 @@ _PROTOTYP( int cmdsquo, (int) ); + _PROTOTYP( int cmdgquo, (void) ); + _PROTOTYP( char * ckcvtdate, (char *, int) ); + _PROTOTYP( int cmdgetc, (int)); +-#ifndef NOARROWKEYS + _PROTOTYP( int cmdconchk, (void) ); +-#endif /* NOARROWKEYS */ + + #ifdef CK_RECALL + _PROTOTYP( char * cmgetcmd, (char *) ); +diff --git a/ckucon.c b/ckucon.c +index 50ceb7e..954719e 100644 +--- a/ckucon.c ++++ b/ckucon.c +@@ -39,8 +39,8 @@ _PROTOTYP( static VOID concld, (void) ); + + #ifdef NEXT + #undef NSIG +-#include <sys/wait.h> /* For wait() */ + #endif /* NEXT */ ++#include <sys/wait.h> /* For wait() */ + + #include <signal.h> /* Signals */ + +diff --git a/ckufio.c b/ckufio.c +index b5bfaae..2a8d4e5 100644 +--- a/ckufio.c ++++ b/ckufio.c +@@ -142,8 +142,8 @@ _PROTOTYP( int parser, ( int ) ); + + #ifdef UNIX /* Pointer arg to wait() allowed */ + #define CK_CHILD /* Assume this is safe in all UNIX */ ++#include <sys/wait.h> /* wait() API */ + #endif /* UNIX */ +- + extern int binary, recursive, stathack; + #ifdef CK_CTRLZ + extern int eofmethod; +diff --git a/ckuusx.c b/ckuusx.c +index d332bed..253f992 100644 +--- a/ckuusx.c ++++ b/ckuusx.c +@@ -9144,7 +9144,7 @@ char *s; /* a string */ + #ifndef CK_CURPOS + /* Dummies for when cursor control is not supported */ + int +-ck_curpos(row, col) { ++ck_curpos(int row, int col) { + return(-1); + } + +-- +2.37.3 +
meta-oe/recipes-support/ckermit/ckermit_302.bb +3 -1
@@ -8,7 +8,9 @@ SECTION = "console/network" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING.TXT;md5=932ca542d6c6cb8a59a0bcd76ab67cc3" -SRC_URI = "http://www.kermitproject.org/ftp/kermit/archives/cku${PV}.tar.gz;subdir=${BPN}-${PV}" +SRC_URI = "http://www.kermitproject.org/ftp/kermit/archives/cku${PV}.tar.gz;subdir=${BPN}-${PV} \ + file://0001-Fix-function-prototype-errors.patch \ + " SRC_URI[md5sum] = "eac4dbf18b45775e4cdee5a7c74762b0" SRC_URI[sha256sum] = "0d5f2cd12bdab9401b4c836854ebbf241675051875557783c332a6a40dac0711"
Signature · 1 line
2.37.3
PATCH 10/63 linuxptp: Include string.h for strncpy()
In reply to Khem Raj--- .../0001-include-string.h-for-strncpy.patch | 27 +++++++++++++++++++ .../linuxptp/linuxptp_3.1.1.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta-oe/recipes-connectivity/linuxptp/linuxptp/0001-include-string.h-for-strncpy.patch
meta-oe/recipes-connectivity/linuxptp/linuxptp/0001-include-string.h-for-strncpy.patch new file +27 -0
@@ -0,0 +1,27 @@ +From d49b4fb8063ecd89617587e5ea566cc9da9393ef Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 19:09:18 -0700 +Subject: [PATCH] include string.h for strncpy() + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + interface.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/interface.c b/interface.c +index 65bdff0..5228db9 100644 +--- a/interface.c ++++ b/interface.c +@@ -5,6 +5,7 @@ + * @note SPDX-License-Identifier: GPL-2.0+ + */ + #include <stdlib.h> ++#include <string.h> + #include "interface.h" + + struct interface { +-- +2.37.3 +
meta-oe/recipes-connectivity/linuxptp/linuxptp_3.1.1.bb +1 -0
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "http://sourceforge.net/projects/linuxptp/files/v3.1/linuxptp-${PV}.tgz \ file://build-Allow-CC-and-prefix-to-be-overriden.patch \ file://Use-cross-cpp-in-incdefs.patch \ + file://0001-include-string.h-for-strncpy.patch \ " UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/linuxptp/files/"
Signature · 1 line
2.37.3
PATCH 11/63 wifi-test-suite: Fix build with clang
In reply to Khem Raj---
...roc-Store-return-value-into-location.patch | 32 +++++++++++++++++++
...uite_git.bb => wifi-test-suite_10.10.1.bb} | 3 +-
2 files changed, 34 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch
rename meta-oe/recipes-connectivity/wifi-test-suite/{wifi-test-suite_git.bb => wifi-test-suite_10.10.1.bb} (92%)meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 2b7d6cf62296ff4e25e5ad909aa39a257bf9ff78 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 19:37:35 -0700 +Subject: [PATCH] wfa_cmdproc: Store return value into location + +Fixes +| wfa_cmdproc.c:100:20: error: incompatible integer to pointer conversion assigning to 'int *' from 'int' [-Wint-conversion] +| paramValue = atoi(str); +| ^ ~~~~~~~~~ + +Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/57] +Signed-off-by: Khem Raj <[email protected]> +--- + lib/wfa_cmdproc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/wfa_cmdproc.c b/lib/wfa_cmdproc.c +index 9f5fd16..49a3f16 100644 +--- a/lib/wfa_cmdproc.c ++++ b/lib/wfa_cmdproc.c +@@ -97,7 +97,7 @@ int getParamValueInt(char *pcmdStr, char *pParam, int *paramValue) + if(strcasecmp(pcmdStr, pParam) == 0) + { + str = strtok_r(NULL, ",", &pcmdStr); +- paramValue = atoi(str); ++ *paramValue = atoi(str); + return 0; + } + return -1; +-- +2.37.3 +
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb renamed from meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb +2 -1
@@ -8,13 +8,14 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32" SECTION = "test" S = "${WORKDIR}/git" -SRCREV = "2da947374c8324f88a0e2155aeba4cf75464b0d8" +SRCREV = "12e85fbeca8ca21a632d18e55089a8a7606d64aa" SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git;branch=master;protocol=https \ file://0001-Use-toolchain-from-environment-variables.patch \ file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \ file://0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch \ file://0004-run-ranlib-per-library-and-use-AR.patch \ file://fno-common.patch \ + file://0001-wfa_cmdproc-Store-return-value-into-location.patch \ " # to avoid host path QA error
Signature · 1 line
2.37.3
PATCH 12/63 xf86-video-nouveau: Do not treat implicit-function-declaration as error
In reply to Khem Rajclang 15 treats it as error by default.
--- .../recipes-graphics/xorg-driver/xf86-video-nouveau_1.0.17.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau_1.0.17.bb +2 -0
@@ -15,5 +15,7 @@ REQUIRED_DISTRO_FEATURES += "opengl" COMPATIBLE_HOST = '(i.86|x86_64).*-linux' +CFLAGS += "-Wno-error=implicit-function-declaration" + SRC_URI += "file://0001-nouveau-fixup-driver-for-new-X-server-ABI.patch" SRC_URI[sha256sum] = "499322e27a55c8183166bf2dd1e47d085eb834143e0d7036baba8427b90c156b"
Signature · 1 line
2.37.3
PATCH 13/63 android-tools: Add protoype declaration for b64_pton
In reply to Khem Raj--- .../core/b64_pton_function_decl.patch | 14 ++++++++++++++ .../android-tools/android-tools_5.1.1.r37.bb | 1 + 2 files changed, 15 insertions(+) create mode 100644 meta-oe/recipes-devtools/android-tools/android-tools/core/b64_pton_function_decl.patch
meta-oe/recipes-devtools/android-tools/android-tools/core/b64_pton_function_decl.patch new file +14 -0
@@ -0,0 +1,14 @@ +Add protoype declaration for b64_pton + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- a/adb/adb_auth_client.c ++++ b/adb/adb_auth_client.c +@@ -29,6 +29,7 @@ + + #define TRACE_TAG TRACE_AUTH + ++extern int b64_pton(const char* src, uint8_t* target, size_t targsize); + + struct adb_public_key { + struct listnode node;
meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb +1 -0
@@ -39,6 +39,7 @@ SRC_URI = " \ file://core/0011-Remove-bionic-specific-calls.patch;patchdir=system/core \ file://core/0012-Fix-implicit-declaration-of-stlcat-strlcopy-function.patch;patchdir=system/core \ file://core/adb_libssl_11.diff;patchdir=system/core \ + file://core/b64_pton_function_decl.patch;patchdir=system/core \ file://core/0013-adb-Support-riscv64.patch;patchdir=system/core \ file://core/0014-add-u3-ss-descriptor-support-for-adb.patch;patchdir=system/core \ file://core/0015-libsparse-Split-off-most-of-sparse_file_read_normal-.patch;patchdir=system/core \
Signature · 1 line
2.37.3
PATCH 14/63 libio-pty-perl: Fix build on musl
In reply to Khem Raj--- ...Tty.xs-Do-not-mark-strlcpy-as-static.patch | 45 +++++++++++++++++++ .../perl/libio-pty-perl_1.16.bb | 4 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/perl/libio-pty-perl/0001-Tty.xs-Do-not-mark-strlcpy-as-static.patch
meta-oe/recipes-devtools/perl/libio-pty-perl/0001-Tty.xs-Do-not-mark-strlcpy-as-static.patch new file +45 -0
@@ -0,0 +1,45 @@ +From fae771aefc593a0ef798bc0c1e21b0524eb85e2d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 20:32:35 -0700 +Subject: [PATCH] Tty.xs: Do not mark strlcpy as static + +Some libcs e.g. musl do not provide implementation of strlcpy but they +do provide the signature in string.h, if we mark it static here then it +conflicts with the libc define and compiler may warn/error + +Fixes +Tty.xs:190:1: error: static declaration of 'strlcpy' follows non-static declaration +strlcpy( ^ +/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libio-pty-perl/1.16-r0/recipe-sysroot/usr/include/string.h:86:8: note: previous declaration is here +size_t strlcpy (char *, const char *, size_t); ^ + +Upstream-Status: Submitted [https://github.com/toddr/IO-Tty/pull/33] +Signed-off-by: Khem Raj <[email protected]> +--- + Tty.xs | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/Tty.xs b/Tty.xs +index aa638f4..4bab39d 100644 +--- a/Tty.xs ++++ b/Tty.xs +@@ -186,11 +186,11 @@ mysignal(int sig, mysig_t act) + * will be copied. Always NUL terminates (unless siz == 0). + * Returns strlen(src); if retval >= siz, truncation occurred. + */ +-static size_t +-strlcpy(dst, src, siz) +- char *dst; +- const char *src; +- size_t siz; ++size_t ++strlcpy( ++ char *dst, ++ const char *src, ++ size_t siz) + { + register char *d = dst; + register const char *s = src; +-- +2.37.3 +
meta-oe/recipes-devtools/perl/libio-pty-perl_1.16.bb +3 -1
@@ -3,7 +3,9 @@ SECTION = "libs" LICENSE = "Artistic-1.0 | GPL-1.0-or-later" LIC_FILES_CHKSUM = "file://META.yml;beginline=11;endline=12;md5=b2562f94907eeb42e8ce9d45f628e587" -SRC_URI = "http://www.cpan.org/modules/by-module/IO/IO-Tty-${PV}.tar.gz" +SRC_URI = "http://www.cpan.org/modules/by-module/IO/IO-Tty-${PV}.tar.gz \ + file://0001-Tty.xs-Do-not-mark-strlcpy-as-static.patch \ + " SRC_URI[md5sum] = "5ee30bf7c76f00cc69f92388ad776e2a" SRC_URI[sha256sum] = "8f1a09c070738adc695df903f2e7f74308dd8d991b914c0bc390a0e6021294dd"
Signature · 1 line
2.37.3
PATCH 15/63 xrdp: Fix build with clang-15
In reply to Khem Raj--- ...001-mark-count-with-unused-attribute.patch | 31 +++++++++++++++++++ meta-oe/recipes-support/xrdp/xrdp_0.9.19.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 meta-oe/recipes-support/xrdp/xrdp/0001-mark-count-with-unused-attribute.patch
meta-oe/recipes-support/xrdp/xrdp/0001-mark-count-with-unused-attribute.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 492f74dbea1d9a15fbc3e870e78ab52e7fc5583b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 20:19:32 -0700 +Subject: [PATCH] mark count with unused attribute + +This may throw a warning when devel logs are disabled +Fixed +../../../xrdp-0.9.19/sesman/chansrv/chansrv.c:198:9: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] int count; ^ 1 error generated. + +Upstream-Status: Submitted [https://github.com/neutrinolabs/xrdp/pull/2353] +Signed-off-by: Khem Raj <[email protected]> +--- + sesman/chansrv/chansrv.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c +index 4452d998..b818bff3 100644 +--- a/sesman/chansrv/chansrv.c ++++ b/sesman/chansrv/chansrv.c +@@ -195,7 +195,7 @@ check_timeout(void) + struct timeout_obj *tobj; + struct timeout_obj *last_tobj; + struct timeout_obj *temp_tobj; +- int count; ++ int count __attribute__((unused)); + tui32 now; + + LOG_DEVEL(LOG_LEVEL_DEBUG, "check_timeout:"); +-- +2.37.3 +
meta-oe/recipes-support/xrdp/xrdp_0.9.19.bb +1 -0
@@ -15,6 +15,7 @@ SRC_URI = "https://github.com/neutrinolabs/${BPN}/releases/download/v${PV}/${BPN file://0001-Added-req_distinguished_name-in-etc-xrdp-openssl.con.patch \ file://0001-Fix-the-compile-error.patch \ file://0001-arch-Define-NO_NEED_ALIGN-on-ppc64.patch \ + file://0001-mark-count-with-unused-attribute.patch \ " SRC_URI[sha256sum] = "94017d30e475c6d7a24f651e16791551862ae46f82d8de62385e63393f5f93d0"
Signature · 1 line
2.37.3
PATCH 16/63 libpwquality: Do not use fgetpwent_r on musl
In reply to Khem RajIt does not exist
--- .../files/0001-fix-musl-build.patch | 72 +++++++++++++++++++ .../libpwquality/libpwquality_1.4.4.bb | 1 + 2 files changed, 73 insertions(+) create mode 100644 meta-oe/recipes-extended/libpwquality/files/0001-fix-musl-build.patch
meta-oe/recipes-extended/libpwquality/files/0001-fix-musl-build.patch new file +72 -0
@@ -0,0 +1,72 @@ +Do not use fgetpwent_r + +fgetpwent_r does not exist on musl + +Source: https://git.alpinelinux.org/aports/tree/community/libpwquality/0001-fix-musl-build.patch +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- a/src/pam_pwquality.c ++++ b/src/pam_pwquality.c +@@ -19,6 +19,7 @@ + #include <stdio.h> + #include <pwd.h> + #include <errno.h> ++#include <security/pam_modutil.h> + #include "pwquality.h" + + /* +@@ -43,8 +44,6 @@ struct module_options { + + #define CO_RETRY_TIMES 1 + +-#define PATH_PASSWD "/etc/passwd" +- + static int + _pam_parse (pam_handle_t *pamh, struct module_options *opt, + int argc, const char **argv) +@@ -98,44 +97,7 @@ static int + check_local_user (pam_handle_t *pamh, + const char *user) + { +- struct passwd pw, *pwp; +- char buf[4096]; +- int found = 0; +- FILE *fp; +- int errn; +- +- fp = fopen(PATH_PASSWD, "r"); +- if (fp == NULL) { +- pam_syslog(pamh, LOG_ERR, "unable to open %s: %s", +- PATH_PASSWD, pam_strerror(pamh, errno)); +- return -1; +- } +- +- for (;;) { +- errn = fgetpwent_r(fp, &pw, buf, sizeof (buf), &pwp); +- if (errn == ERANGE) { +- pam_syslog(pamh, LOG_WARNING, "%s contains very long lines; corrupted?", +- PATH_PASSWD); +- /* we can continue here as next call will read further */ +- continue; +- } +- if (errn != 0) +- break; +- if (strcmp(pwp->pw_name, user) == 0) { +- found = 1; +- break; +- } +- } +- +- fclose (fp); +- +- if (errn != 0 && errn != ENOENT) { +- pam_syslog(pamh, LOG_ERR, "unable to enumerate local accounts: %s", +- pam_strerror(pamh, errn)); +- return -1; +- } else { +- return found; +- } ++ return pam_modutil_check_user_in_passwd(pamh, user, NULL) == PAM_SUCCESS; + } + + PAM_EXTERN int
meta-oe/recipes-extended/libpwquality/libpwquality_1.4.4.bb +1 -0
@@ -8,6 +8,7 @@ SRCNAME = "libpwquality" SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/${SRCNAME}-${PV}/${SRCNAME}-${PV}.tar.bz2 \ file://add-missing-python-include-dir-for-cross.patch \ " +SRC_URI:append:libc-musl = " file://0001-fix-musl-build.patch " SRC_URI[md5sum] = "1fe43f6641dbf1e1766e2a02cf68a9c3" SRC_URI[sha256sum] = "d43baf23dc6887fe8f8e9b75cabaabc5f4bbbaa0f9eff44278d276141752a545"
Signature · 1 line
2.37.3
PATCH 17/63 lmbench: Add patch to fix typo including string.h header
In reply to Khem RajMove all patches under one directory, to keep it simple
---
...efine-guard-before-redefining-sockle.patch | 0
...ch.h-Fix-typo-in-specifying-string.h.patch | 27 +++++++++++++++++++
...ypos-in-lat_unix_connect-manual-page.patch | 0
.../0001-doc-Fix-typos-in-manual-pages.patch | 0
.../0001-lat_fifo-Fix-cleanup-sequence.patch | 0
.../0001-lat_http.c-Add-printf-format.patch | 0
...Point-webpage-lm-to-target-directory.patch | 0
...-use-libdir-instead-of-hardcoded-lib.patch | 0
...AGS-LDFLAGS-to-append-values-passed-.patch | 0
.../fix-lmbench-memory-check-failure.patch | 0
.../lmbench_result_html_report.patch | 0
.../obey-ranlib.patch | 0
.../update-config-script.patch | 0
.../update-results-script.patch | 0
.../lmbench/lmbench_3.0-a9.bb | 1 +
15 files changed, 28 insertions(+)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/0001-Check-for-musl-define-guard-before-redefining-sockle.patch (100%)
create mode 100644 meta-oe/recipes-benchmark/lmbench/lmbench/0001-bench.h-Fix-typo-in-specifying-string.h.patch
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/0001-doc-Fix-typos-in-lat_unix_connect-manual-page.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/0001-doc-Fix-typos-in-manual-pages.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/0001-lat_fifo-Fix-cleanup-sequence.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/0001-lat_http.c-Add-printf-format.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/0001-lmbench-Point-webpage-lm-to-target-directory.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/0001-src-Makefile-use-libdir-instead-of-hardcoded-lib.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/fix-lmbench-memory-check-failure.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/lmbench_result_html_report.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/obey-ranlib.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/update-config-script.patch (100%)
rename meta-oe/recipes-benchmark/lmbench/{lmbench-3.0-a9 => lmbench}/update-results-script.patch (100%)meta-oe/recipes-benchmark/lmbench/lmbench/0001-Check-for-musl-define-guard-before-redefining-sockle.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-Check-for-musl-define-guard-before-redefining-sockle.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/0001-bench.h-Fix-typo-in-specifying-string.h.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 4bbedd25e74adb5cb181a9ae589adb2052ade630 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 23:34:48 -0700 +Subject: [PATCH] bench.h: Fix typo in specifying string.h + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/bench.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/bench.h b/src/bench.h +index 2ebdf5a..750bebf 100644 +--- a/src/bench.h ++++ b/src/bench.h +@@ -21,7 +21,7 @@ typedef unsigned char bool_t; + #include <signal.h> + #include <errno.h> + #ifndef WIN32 +-#include <strings.h> ++#include <string.h> + #endif + #include <sys/types.h> + #ifndef WIN32 +-- +2.37.3 +
meta-oe/recipes-benchmark/lmbench/lmbench/0001-doc-Fix-typos-in-lat_unix_connect-manual-page.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-doc-Fix-typos-in-lat_unix_connect-manual-page.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/0001-doc-Fix-typos-in-manual-pages.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-doc-Fix-typos-in-manual-pages.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/0001-lat_fifo-Fix-cleanup-sequence.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-lat_fifo-Fix-cleanup-sequence.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/0001-lat_http.c-Add-printf-format.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-lat_http.c-Add-printf-format.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/0001-lmbench-Point-webpage-lm-to-target-directory.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-lmbench-Point-webpage-lm-to-target-directory.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/0001-src-Makefile-use-libdir-instead-of-hardcoded-lib.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-src-Makefile-use-libdir-instead-of-hardcoded-lib.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/fix-lmbench-memory-check-failure.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/fix-lmbench-memory-check-failure.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/lmbench_result_html_report.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/lmbench_result_html_report.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/obey-ranlib.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/obey-ranlib.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/update-config-script.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench/update-results-script.patch renamed from meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-results-script.patch +0 -0
meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb +1 -0
@@ -30,6 +30,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \ file://0001-doc-Fix-typos-in-manual-pages.patch \ file://0001-lat_fifo-Fix-cleanup-sequence.patch \ file://0001-doc-Fix-typos-in-lat_unix_connect-manual-page.patch \ + file://0001-bench.h-Fix-typo-in-specifying-string.h.patch \ " SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf" SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551"
Signature · 1 line
2.37.3
PATCH 18/63 lxdm: Fix msghdr initialization on musl
In reply to Khem Raj--- ...lize-msghdr-struct-in-a-portable-way.patch | 40 +++++++++++++++++++ meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta-oe/recipes-graphics/lxdm/lxdm/0001-Initialize-msghdr-struct-in-a-portable-way.patch
meta-oe/recipes-graphics/lxdm/lxdm/0001-Initialize-msghdr-struct-in-a-portable-way.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 7c370576b4fb7c7d3b6dbf33125136a4ae70a330 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 21:52:16 -0700 +Subject: [PATCH] Initialize msghdr struct in a portable way + +Initializing the structure assuming glibc layout results in +compile errors on musl, therefore do partial intialization and then +assigning the members individually. + +Upstream-Status: Submitted [https://sourceforge.net/p/lxdm/code/merge-requests/4/] +Signed-off-by: Khem Raj <[email protected]> +--- + src/lxcom.c | 9 +++++++-- + 2 files changed, 10 insertions(+), 5 deletions(-) + +diff --git a/src/lxcom.c b/src/lxcom.c +index 397d1b5..517c775 100644 +--- a/src/lxcom.c ++++ b/src/lxcom.c +@@ -117,10 +117,15 @@ static gboolean lxcom_dispatch (GSource *source,GSourceFunc callback,gpointer us + char ctrl[/*CMSG_SPACE(sizeof(LXDM_CRED))*/1024]; + struct sockaddr_un peer; + struct iovec v={buf,sizeof(buf)}; +- struct msghdr h={&peer,sizeof(peer),&v,1,ctrl,sizeof(ctrl),0}; ++ struct msghdr h={0}; + struct cmsghdr *cmptr; + int ret; +- ++ h.msg_name = &peer; ++ h.msg_namelen = sizeof(peer); ++ h.msg_iov = &v; ++ h.msg_iovlen = 1; ++ h.msg_control = ctrl; ++ h.msg_controllen = sizeof(ctrl); + while(1) + { + peer.sun_family=0; +-- +2.37.3 +
meta-oe/recipes-graphics/lxdm/lxdm_0.5.3.bb +1 -0
@@ -19,6 +19,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}%20${PV}/${BPN}-${PV}.tar. file://0008-greeter.c-show-information-on-gtk-label-info.patch \ file://0009-greeter.c-disallow-empty-new-password.patch \ file://0001-systemd-lxdm.service-remove-plymouth-quit-conflicts.patch \ + file://0001-Initialize-msghdr-struct-in-a-portable-way.patch \ " SRC_URI[md5sum] = "061caae432634e6db38bbdc84bc6ffa0" SRC_URI[sha256sum] = "4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f"
Signature · 1 line
2.37.3
PATCH 19/63 zabbix: Upgrade to 6.2.2
In reply to Khem RajFix build on musl while here
---
.../0001-initialize-msghdr-portably.patch | 52 +++++++++++++++++++
.../{zabbix_6.2.1.bb => zabbix_6.2.2.bb} | 4 +-
2 files changed, 54 insertions(+), 2 deletions(-)
create mode 100644 meta-oe/recipes-connectivity/zabbix/zabbix/0001-initialize-msghdr-portably.patch
rename meta-oe/recipes-connectivity/zabbix/{zabbix_6.2.1.bb => zabbix_6.2.2.bb} (95%)meta-oe/recipes-connectivity/zabbix/zabbix/0001-initialize-msghdr-portably.patch new file +52 -0
@@ -0,0 +1,52 @@ +From 37b662cf44e14b33e93759d4b129d23095b41372 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 31 Aug 2022 23:55:02 -0700 +Subject: [PATCH] initialize msghdr portably + +on linux we have musl as an option for system C library and current +initialization assumes the structure to be same as glibc, therefore +initialize the elements of structure instead, so it can work on both +glibc and musl. + +Fixes +net.c:115:79: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion] + struct msghdr s_msg = { (void *)&s_sa, sizeof(struct sockaddr_nl), s_io, 1, NULL, 0, 0}; + ^~~~ + +Upstream-Status: Submitted [https://github.com/zabbix/zabbix/pull/77] +Signed-off-by: Khem Raj <[email protected]> +--- + src/libs/zbxsysinfo/linux/net.c | 12 ++++++++++-- + 1 file changed, 10 insertions(+), 2 deletions(-) + +diff --git a/src/libs/zbxsysinfo/linux/net.c b/src/libs/zbxsysinfo/linux/net.c +index 1425a3604d..98f03de0dd 100644 +--- a/src/libs/zbxsysinfo/linux/net.c ++++ b/src/libs/zbxsysinfo/linux/net.c +@@ -114,13 +114,21 @@ static int find_tcp_port_by_state_nl(unsigned short port, int state, int *found) + + struct sockaddr_nl s_sa = { AF_NETLINK, 0, 0, 0 }; + struct iovec s_io[1] = { { &request, sizeof(request) } }; +- struct msghdr s_msg = { (void *)&s_sa, sizeof(struct sockaddr_nl), s_io, 1, NULL, 0, 0}; ++ struct msghdr s_msg = { 0 }; ++ s_msg.msg_name = (void *)&s_sa; ++ s_msg.msg_namelen = sizeof(struct sockaddr_nl); ++ s_msg.msg_iov = s_io; ++ s_msg.msg_iovlen = 1; + + char buffer[BUFSIZ] = { 0 }; + + struct sockaddr_nl r_sa = { AF_NETLINK, 0, 0, 0 }; + struct iovec r_io[1] = { { buffer, BUFSIZ } }; +- struct msghdr r_msg = { (void *)&r_sa, sizeof(struct sockaddr_nl), r_io, 1, NULL, 0, 0}; ++ struct msghdr r_msg = { 0 }; ++ r_msg.msg_name = (void *)&r_sa; ++ r_msg.msg_namelen = sizeof(struct sockaddr_nl); ++ r_msg.msg_iov = r_io; ++ r_msg.msg_iovlen = 1; + + struct nlmsghdr *r_hdr; + +-- +2.37.3 +
meta-oe/recipes-connectivity/zabbix/zabbix_6.2.2.bb renamed from meta-oe/recipes-connectivity/zabbix/zabbix_6.2.1.bb +2 -2
@@ -25,10 +25,10 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" SRC_URI = "https://cdn.zabbix.com/zabbix/sources/stable/6.2/${BPN}-${PV}.tar.gz \ file://0001-Fix-configure.ac.patch \ + file://0001-initialize-msghdr-portably.patch \ file://zabbix-agent.service \ " - -SRC_URI[sha256sum] = "f3d6b7cf4e67d820ce7d28cd54ac67724f7453f261f668877e6410cd21ab9ea1" +SRC_URI[sha256sum] = "f0e7a9abb0f65d700f531253b91c31165077a9c94769cc8d238a423ada852773" inherit autotools-brokensep linux-kernel-base pkgconfig systemd useradd
Signature · 1 line
2.37.3
PATCH 20/63 epeg: Fix AC_CHECK_LIB for libjpeg and libexif
In reply to Khem Raj--- ...e-Fix-checks-for-libjpeg-and-libexif.patch | 32 +++++++++++++++++++ meta-oe/recipes-support/epeg/epeg_git.bb | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/epeg/epeg/0001-configure-Fix-checks-for-libjpeg-and-libexif.patch
meta-oe/recipes-support/epeg/epeg/0001-configure-Fix-checks-for-libjpeg-and-libexif.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 4e0c62634b0db6dbad0d41377bb71a8012abd75b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 12:56:54 -0700 +Subject: [PATCH] configure: Fix checks for libjpeg and libexif + +Use the functions from the respective library instead of using main +function which is not part of library + +Upstream-Status: Submitted [https://github.com/mattes/epeg/pull/27] +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index a4f6ebd..e474b1d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -31,8 +31,8 @@ AC_SUBST(version_info) + dnl AC_CHECK_FUNCS(fmemopen) + dnl AC_CHECK_FUNCS(open_memstream) + +-AC_CHECK_LIB([jpeg], [main], [], [echo "libjpeg library not found. Please install it before proceeding"; exit -1]) +-AC_CHECK_LIB([exif], [main], [], [echo "libexif library not found. Please install it before proceeding"; exit -1]) ++AC_CHECK_LIB([jpeg], [jpeg_simple_progression], [], [echo "libjpeg library not found. Please install it before proceeding"; exit -1]) ++AC_CHECK_LIB([exif], [exif_data_new_from_file], [], [echo "libexif library not found. Please install it before proceeding"; exit -1]) + + my_includes="" + my_libs="-ljpeg -lexif" +-- +2.37.3 +
meta-oe/recipes-support/epeg/epeg_git.bb +3 -1
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e7732a9290ea1e4b034fdc15cf49968d \ file://COPYING-PLAIN;md5=f59cacc08235a546b0c34a5422133035" DEPENDS = "jpeg libexif" -SRC_URI = "git://github.com/mattes/epeg.git;branch=master;protocol=https" +SRC_URI = "git://github.com/mattes/epeg.git;branch=master;protocol=https \ + file://0001-configure-Fix-checks-for-libjpeg-and-libexif.patch \ + " SRCREV = "9a175cd67eaa61fe45413d8da82da72936567047" S = "${WORKDIR}/git"
Signature · 1 line
2.37.3
PATCH 21/63 gensio: Fix AC_CHECK_LIB for libwrap
In reply to Khem Raj--- ...for-request_init-API-when-probing-fo.patch | 31 +++++++++++++++++++ .../gensio/gensio_2.5.2.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 meta-oe/recipes-connectivity/gensio/files/0001-configure-Check-for-request_init-API-when-probing-fo.patch
meta-oe/recipes-connectivity/gensio/files/0001-configure-Check-for-request_init-API-when-probing-fo.patch new file +31 -0
@@ -0,0 +1,31 @@ +From f56e59712d8708c74a4cf66d24b5703fc16b22ae Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 11:31:48 -0700 +Subject: [PATCH] configure: Check for request_init API when probing for + libwrap + +checking for main() is not right check, since this function is not part +of libwrap but the app. Newer autocof and toolchain may fail + +Upstream-Status: Submitted [https://github.com/cminyard/gensio/pull/48] +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 90cfcb6b..1c06d918 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -109,7 +109,7 @@ AC_ARG_WITH(tcp-wrappers, + if test "$tcp_wrappers" != "no" + then + AC_CHECK_HEADERS([tcpd.h]) +- AC_CHECK_LIB(wrap,main) ++ AC_CHECK_LIB(wrap,request_init) + fi + + AC_ARG_ENABLE([doc], +-- +2.37.3 +
meta-oe/recipes-connectivity/gensio/gensio_2.5.2.bb +1 -0
@@ -9,6 +9,7 @@ SRCREV = "b6cd354afe6d5f63bc859c94fd3a455a3cdf0449" SRC_URI = "git://github.com/cminyard/gensio;protocol=https;branch=master \ file://0001-tools-gensiot-Fix-build-with-musl.patch \ + file://0001-configure-Check-for-request_init-API-when-probing-fo.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
2.37.3
PATCH 22/63 pam-plugin-ccreds: Fix AC_CHECK_LIB for libdb
In reply to Khem Raj--- ...for-function-from-libdb-during-confi.patch | 34 +++++++++++++++++++ .../pam/pam-plugin-ccreds_11.bb | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/pam/pam-plugin-ccreds/0001-configure-Check-for-function-from-libdb-during-confi.patch
meta-oe/recipes-extended/pam/pam-plugin-ccreds/0001-configure-Check-for-function-from-libdb-during-confi.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 1915754179401b6ee00f0e2ffd844596778e43a2 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 12:05:02 -0700 +Subject: [PATCH] configure: Check for function from libdb during configure + +checking for main in AC_CHECK_LIB is not the right check to find out if +a library exists or not, using a function provided by library is more +appropriate and will help using newer compilers and autoconf in future + +Upstream-Status: Submitted [https://github.com/PADL/pam_ccreds/pull/2] +Signed-off-by: Khem Raj <[email protected]> +--- + configure.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.in b/configure.in +index 3829d9f..3d52933 100644 +--- a/configure.in ++++ b/configure.in +@@ -72,9 +72,9 @@ AC_CHECK_HEADERS(pam/pam_appl.h pam/pam_misc.h pam/pam_modules.h) + + AC_CHECK_HEADERS(db.h) + +-AC_CHECK_LIB(db, main,[LIBS="-ldb $LIBS" found_db_lib=yes],,$LIBS) ++AC_CHECK_LIB(db, db_create,[LIBS="-ldb $LIBS" found_db_lib=yes],,$LIBS) + if test -z "$found_db_lib"; then +- AC_CHECK_LIB(db1, main,[LIBS="-ldb1 $LIBS" found_db_lib=yes],,$LIBS) ++ AC_CHECK_LIB(db1, db_create,[LIBS="-ldb1 $LIBS" found_db_lib=yes],,$LIBS) + fi + + AC_CHECK_LIB(pam, pam_start) +-- +2.37.3 +
meta-oe/recipes-extended/pam/pam-plugin-ccreds_11.bb +3 -1
@@ -11,7 +11,9 @@ REQUIRED_DISTRO_FEATURES = "pam" SRCREV = "e2145df09469bf84878e4729b4ecd814efb797d1" -SRC_URI = "git://github.com/PADL/pam_ccreds;branch=master;protocol=https" +SRC_URI = "git://github.com/PADL/pam_ccreds;branch=master;protocol=https \ + file://0001-configure-Check-for-function-from-libdb-during-confi.patch \ + " S = "${WORKDIR}/git"
Signature · 1 line
2.37.3
PATCH 23/63 sblim-sfcb: Fix AC_CHECK_LIB tests for various libraries
In reply to Khem Raj--- ...for-function-from-respective-library.patch | 72 +++++++++++++++++++ .../sblim-sfcb/sblim-sfcb_1.4.9.bb | 1 + 2 files changed, 73 insertions(+) create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-configure-Check-for-function-from-respective-library.patch
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-configure-Check-for-function-from-respective-library.patch new file +72 -0
@@ -0,0 +1,72 @@ +From 366c4a1c8b7724241ad2b703e48615ca5affa32e Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 12:46:07 -0700 +Subject: [PATCH] configure: Check for function from respective library in + AC_CHECK_LIB + +This helps in doing correct checks especially with newer autoconf and +toolchain + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/configure.ac b/configure.ac +index d4915a1..6154514 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -332,8 +332,8 @@ if [test "$enable_tests"]; then + fi + + if [test "$test_gcov" == "yes"]; then +- AC_CHECK_LIB(gcc,main) +- AC_CHECK_LIB(gcov,main) ++ AC_CHECK_LIB(gcc,_Unwind_GetIP) ++ AC_CHECK_LIB(gcov,gcov_write_summary) + AC_PATH_PROG(LCOV,lcov,yes,no) + AC_PATH_PROG(GENHTML,genhtml,yes,no) + if test "$LCOV" == "no" -o "$GENHTML" == "no" ; then +@@ -400,7 +400,7 @@ fi + + if test "$enable_pam" == "yes"; then + AC_DEFINE(HAVE_PAM,,[PAM support enabled.]) +- AC_CHECK_LIB(pam,main,[SFCB_LIBPAM=-lpam],[AC_MSG_ERROR(Could not find required pam library.)]) ++ AC_CHECK_LIB(pam,pam_start,[SFCB_LIBPAM=-lpam],[AC_MSG_ERROR(Could not find required pam library.)]) + SFCB_CONF_BASICAUTHLIB=sfcBasicPAMAuthentication + SFCB_CONF_DOBASICAUTH=true + else +@@ -470,16 +470,16 @@ if test "$HAVE_UNZIP" = "no" ; then + fi + + # Checks for libraries. +-AC_CHECK_LIB(pthread,main) +-AC_CHECK_LIB(dl,main) +-AC_CHECK_LIB(z,main,[SFCB_LIBZ=-lz],[AC_MSG_ERROR([Could not find required libz])]) ++AC_CHECK_LIB(pthread,pthread_create) ++AC_CHECK_LIB(dl,dlopen) ++AC_CHECK_LIB(z,inflate,[SFCB_LIBZ=-lz],[AC_MSG_ERROR([Could not find required libz])]) + # Test for the newest function here to make sure it's up to date. + AC_CHECK_LIB(sfcUtil,invalid_uint,, \ + [AC_MSG_ERROR([Function invalid_uint not found. Is the required version of sfcCommon installed?])]) + if test "$enable_indications" = "yes" ; then + LOAD_INDICATION_PROVIDER= + AC_DEFINE(HAVE_INDICATIONS,1,[Indication support enabled.]) +- AC_CHECK_LIB(curl,main) ++ AC_CHECK_LIB(curl,curl_easy_init) + else + LOAD_INDICATION_PROVIDER='#' + fi +@@ -487,7 +487,7 @@ fi + AC_SUBST(LOAD_INDICATION_PROVIDER) + + if test "$enable_ssl" = "yes"; then +- AC_CHECK_LIB(ssl,main) ++ AC_CHECK_LIB(ssl,SSL_CTX_new) + SFCB_CONF_HTTPS=true + SFCB_CONF_HTTP=false + else +-- +2.37.3 +
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb +1 -0
@@ -27,6 +27,7 @@ SRC_URI = "http://downloads.sourceforge.net/sblim/${BP}.tar.bz2 \ file://0001-Replace-need-for-error.h-when-it-does-not-exist.patch \ file://sblim-sfcb-1.4.9-fix-sfcbinst2mof.patch \ file://0001-Avoid-variable-definition-in-header-files.patch \ + file://0001-configure-Check-for-function-from-respective-library.patch \ " SRC_URI[md5sum] = "28021cdabc73690a94f4f9d57254ce30"
Signature · 1 line
2.37.3
PATCH 24/63 rdfind: Fix AC_CHECK_LIB for libnettle
In reply to Khem Raj--- ...configure-Fix-check-for-AC_CHECK_LIB.patch | 30 +++++++++++++++++++ .../recipes-support/rdfind/rdfind_1.4.1.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-support/rdfind/rdfind/0001-configure-Fix-check-for-AC_CHECK_LIB.patch
meta-oe/recipes-support/rdfind/rdfind/0001-configure-Fix-check-for-AC_CHECK_LIB.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 823a4deb61f6f9b91b0cfc4a7e7b20922c635777 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 13:13:50 -0700 +Subject: [PATCH] configure: Fix check for AC_CHECK_LIB + +Check for nettle_pbkdf2_hmac_sha256 from libnettle instead of main() +which is not in nettle library + +Upstream-Status: Submitted [https://github.com/pauldreik/rdfind/pull/115] +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index be1b2fd..157a7d7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -46,7 +46,7 @@ AC_CHECK_HEADER(nettle/sha.h,,[AC_MSG_ERROR([ + On Debian-ish systems, use "apt-get install nettle-dev" to get a system + wide nettle install. + ])]) +-AC_CHECK_LIB(nettle,main,,[AC_MSG_ERROR([ ++AC_CHECK_LIB(nettle,nettle_pbkdf2_hmac_sha256,,[AC_MSG_ERROR([ + Could not link to libnettle. Please install nettle + first. If you have already done so; please run ldconfig + as root or check whether the path libnettle was installed +-- +2.37.3 +
meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb +1 -0
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fa22e16ebbe6638b2bd253338fbded9f" DEPENDS = "nettle autoconf-archive" SRC_URI = "https://rdfind.pauldreik.se/${BP}.tar.gz \ + file://0001-configure-Fix-check-for-AC_CHECK_LIB.patch \ " SRC_URI[md5sum] = "180418c863b861d1df221bc486a07ce7"
Signature · 1 line
2.37.3
PATCH 25/63 srecord: Fix AC_CHECK_LIB for gpg-error
In reply to Khem Raj--- ...-Fix-AC_CHECK_LIB-test-for-gpg-error.patch | 29 +++++++++++++++++++ .../recipes-support/srecord/srecord_1.64.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-oe/recipes-support/srecord/files/0001-configure-Fix-AC_CHECK_LIB-test-for-gpg-error.patch
meta-oe/recipes-support/srecord/files/0001-configure-Fix-AC_CHECK_LIB-test-for-gpg-error.patch new file +29 -0
@@ -0,0 +1,29 @@ +From f9e50aba10f9d2c58e5d88f51810ca7143f4372b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 13:20:01 -0700 +Subject: [PATCH] configure: Fix AC_CHECK_LIB test for gpg-error + +Use check function which is found in libgpg-error + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + etc/configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/etc/configure.ac b/etc/configure.ac +index d4ae290..ea0936d 100644 +--- a/etc/configure.ac ++++ b/etc/configure.ac +@@ -30,7 +30,7 @@ AC_CHECK_PROGS(SOELIM, gsoelim soelim roffpp) + AC_CHECK_FUNCS(snprintf vsnprintf) + + dnl! This is needed for MingGW build, but not for Unix or Linux, etc. +-AC_CHECK_LIB(gpg-error, main) ++AC_CHECK_LIB(gpg-error, gpg_strerror_r) + + dnl! @synopsis AC_ADD_CFLAGS + dnl! +-- +2.37.3 +
meta-oe/recipes-support/srecord/srecord_1.64.bb +1 -0
@@ -7,6 +7,7 @@ SRC_URI = " \ http://srecord.sourceforge.net/srecord-${PV}.tar.gz \ file://add-option-to-remove-docs.patch \ file://libtool.patch \ + file://0001-configure-Fix-AC_CHECK_LIB-test-for-gpg-error.patch \ " SRC_URI[md5sum] = "4de4a7497472d7972645c2af91313769"
Signature · 1 line
2.37.3
PATCH 26/63 tokyocabinet: Fix AC_CHECK_LIB test functions
In reply to Khem Raj--- ...heck-functions-for-AC_CHECK_LIB-test.patch | 58 +++++++++++++++++++ .../tokyocabinet/tokyocabinet_1.4.48.bb | 1 + 2 files changed, 59 insertions(+) create mode 100644 meta-oe/recipes-support/tokyocabinet/tokyocabinet/0001-configure-Fix-check-functions-for-AC_CHECK_LIB-test.patch
meta-oe/recipes-support/tokyocabinet/tokyocabinet/0001-configure-Fix-check-functions-for-AC_CHECK_LIB-test.patch new file +58 -0
@@ -0,0 +1,58 @@ +From e192da006dd9b0ecbbef540a3e86b65ff88e89e2 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 13:28:29 -0700 +Subject: [PATCH] configure: Fix check functions for AC_CHECK_LIB test + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + configure.in | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/configure.in b/configure.in +index 5b24947..0542490 100644 +--- a/configure.in ++++ b/configure.in +@@ -247,30 +247,30 @@ test -n "$LDFLAGS" && MYLDFLAGS="$LDFLAGS $MYLDFLAGS" + AC_C_BIGENDIAN(MYCPPFLAGS="$MYCPPFLAGS -D_MYBIGEND") + + # Underlying libraries +-AC_CHECK_LIB(c, main) +-AC_CHECK_LIB(m, main) ++AC_CHECK_LIB(c, printf) ++AC_CHECK_LIB(m, pow) + if test "$enable_pthread" != "no" + then +- AC_CHECK_LIB(pthread, main) +- AC_CHECK_LIB(rt, main) ++ AC_CHECK_LIB(pthread, pthread_create) ++ AC_CHECK_LIB(rt, clock_gettime) + fi + if test "$enable_zlib" != "no" + then +- AC_CHECK_LIB(z, main) ++ AC_CHECK_LIB(z, inflate) + fi + if test "$enable_bzip" != "no" + then +- AC_CHECK_LIB(bz2, main) ++ AC_CHECK_LIB(bz2, BZ2_bzCompressInit) + fi + if test "$enable_exlzma" = "yes" + then +- AC_CHECK_LIB(lzma, main) ++ AC_CHECK_LIB(lzma, lzma_easy_buffer_encode) + fi + if test "$enable_exlzo" = "yes" + then +- AC_CHECK_LIB(lzo2, main) ++ AC_CHECK_LIB(lzo2, lzo1x_1_compress) + fi +-AC_CHECK_LIB(tokyocabinet, main, AC_MSG_WARN([old version of Tokyo Cabinet was detected])) ++AC_CHECK_LIB(tokyocabinet, tcbdbopen, AC_MSG_WARN([old version of Tokyo Cabinet was detected])) + + # Necessary headers + AC_CHECK_HEADER(stdlib.h, true, AC_MSG_ERROR([stdlib.h is required])) +-- +2.37.3 +
meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb +1 -0
@@ -17,6 +17,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" SRC_URI = "http://fallabs.com/tokyocabinet/${BP}.tar.gz \ file://remove-hard-coded-include-and-lib-paths.patch \ + file://0001-configure-Fix-check-functions-for-AC_CHECK_LIB-test.patch \ " SRC_URI[md5sum] = "fd03df6965f8f56dd5b8518ca43b4f5e"
Signature · 1 line
2.37.3
PATCH 27/63 libcereal: Do not use uniform_int_distribution<char> template
In reply to Khem Raj--- ...se-int8_t-in-std-uniform_int_distrib.patch | 54 +++++++++++++++++++ .../libcereal/libcereal_1.3.2.bb | 1 + 2 files changed, 55 insertions(+) create mode 100644 meta-oe/recipes-support/libcereal/files/0001-sandbox-Do-not-use-int8_t-in-std-uniform_int_distrib.patch
meta-oe/recipes-support/libcereal/files/0001-sandbox-Do-not-use-int8_t-in-std-uniform_int_distrib.patch new file +54 -0
@@ -0,0 +1,54 @@ +From 36054278304945c6aef7d44e58788ca882c67d05 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 15:54:13 -0700 +Subject: [PATCH] sandbox: Do not use int8_t in std::uniform_int_distribution + +Newer versions of libc++ has dropped supporting this usecase since its +an UB see. + +https://reviews.llvm.org/D114920?id=400571 + +Fixes + +uniform_int_distribution.h:162:5: error: static assertion failed due to requirement '__libcpp_random_is_valid_inttype<char>::value': IntType must be a supported integer type + static_assert(__libcpp_random_is_valid_inttype<_IntType>::value, "IntType must be a supported integer type"); + ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libcereal/1.3.2+gitAUTOINC+ebef1e9298-r0/git/sandbox/performance.cpp:261:9: note: in instantiation of template class 'std::uniform_int_distribution<char>' requested here + c = std::uniform_int_distribution<char>(' ', '~')(gen); + ^ +/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libcereal/1.3.2+gitAUTOINC+ebef1e9298-r0/git/sandbox/performance.cpp:261:9: error: type 'std::uniform_int_distribution<char>' does not provide a call operator + c = std::uniform_int_distribution<char>(' ', '~')(gen); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 errors generated. + +Upstream-Status: Submitted [https://github.com/USCiLab/cereal/pull/764] +Signed-off-by: Khem Raj <[email protected]> +--- + sandbox/performance.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/sandbox/performance.cpp b/sandbox/performance.cpp +index f9307870..aca8c78c 100644 +--- a/sandbox/performance.cpp ++++ b/sandbox/performance.cpp +@@ -258,7 +258,7 @@ random_value(std::mt19937 & gen) + { + std::string s(std::uniform_int_distribution<int>(3, 30)(gen), ' '); + for(char & c : s) +- c = std::uniform_int_distribution<char>(' ', '~')(gen); ++ c = static_cast<char>( std::uniform_int_distribution<int>(' ', '~')(gen) ); + return s; + } + +@@ -277,7 +277,7 @@ std::string random_binary_string(std::mt19937 & gen) + { + std::string s(N, ' '); + for(auto & c : s ) +- c = std::uniform_int_distribution<char>('0', '1')(gen); ++ c = static_cast<char>( std::uniform_int_distribution<int>( '0', '1' )(gen) ); + return s; + } + +-- +2.37.3 +
meta-oe/recipes-support/libcereal/libcereal_1.3.2.bb +1 -0
@@ -19,6 +19,7 @@ PROVIDES += "${PN}-dev" PV .= "+git${SRCPV}" SRCREV = "ebef1e929807629befafbb2918ea1a08c7194554" SRC_URI = "git://github.com/USCiLab/cereal.git;branch=master;protocol=https \ + file://0001-sandbox-Do-not-use-int8_t-in-std-uniform_int_distrib.patch \ file://run-ptest \ "
Signature · 1 line
2.37.3
PATCH 28/63 raptor2: Match reutrn type from RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE
In reply to Khem Raj--- ...e-from-RAPTOR_ASSERT_OBJECT_POINTER_.patch | 47 +++++++++++++++++++ .../recipes-support/raptor2/raptor2_2.0.15.bb | 1 + 2 files changed, 48 insertions(+) create mode 100644 meta-oe/recipes-support/raptor2/files/0001-Match-reutrn-type-from-RAPTOR_ASSERT_OBJECT_POINTER_.patch
meta-oe/recipes-support/raptor2/files/0001-Match-reutrn-type-from-RAPTOR_ASSERT_OBJECT_POINTER_.patch new file +47 -0
@@ -0,0 +1,47 @@ +From 97b5dcaa6b221eb403cc92e953225d38aee18f70 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 14:48:39 -0700 +Subject: [PATCH] Match reutrn type from + RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE + +This ensures that integer type 0 is returned and not NULL +Fixes +raptor_serialize.c:243:66: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion] + RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, NULL); + ^~~~ +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/raptor_parse.c | 2 +- + src/raptor_serialize.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/raptor_parse.c b/src/raptor_parse.c +index 26911f4..0091e1e 100644 +--- a/src/raptor_parse.c ++++ b/src/raptor_parse.c +@@ -257,7 +257,7 @@ raptor_world_get_parser_factory(raptor_world *world, const char *name) + int + raptor_world_get_parsers_count(raptor_world* world) + { +- RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, NULL); ++ RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, 0); + + raptor_world_open(world); + +diff --git a/src/raptor_serialize.c b/src/raptor_serialize.c +index a1f29d7..2bf4ab2 100644 +--- a/src/raptor_serialize.c ++++ b/src/raptor_serialize.c +@@ -240,7 +240,7 @@ raptor_get_serializer_factory(raptor_world* world, const char *name) + int + raptor_world_get_serializers_count(raptor_world* world) + { +- RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, NULL); ++ RAPTOR_ASSERT_OBJECT_POINTER_RETURN_VALUE(world, raptor_world, 0); + + raptor_world_open(world); + +-- +2.37.3 +
meta-oe/recipes-support/raptor2/raptor2_2.0.15.bb +1 -0
@@ -12,6 +12,7 @@ DEPENDS = "libxml2 libxslt curl yajl" SRC_URI = " \ http://download.librdf.org/source/${BPN}-${PV}.tar.gz \ file://0001-configure.ac-do-additional-checks-on-libxml2-also-wh.patch \ + file://0001-Match-reutrn-type-from-RAPTOR_ASSERT_OBJECT_POINTER_.patch \ " SRC_URI[md5sum] = "a39f6c07ddb20d7dd2ff1f95fa21e2cd" SRC_URI[sha256sum] = "ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed"
Signature · 1 line
2.37.3
PATCH 29/63 pam-ssh-agent-auth: Fix __progname configure check
In reply to Khem RajThis check needs to include stdio.h for printf() API to work otherwise test fails.
--- ...configure-Include-stdio.h-for-printf.patch | 37 +++++++++++++++++++ .../pam/pam-ssh-agent-auth_0.10.3.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 meta-oe/recipes-extended/pam/pam-ssh-agent-auth/0001-configure-Include-stdio.h-for-printf.patch
meta-oe/recipes-extended/pam/pam-ssh-agent-auth/0001-configure-Include-stdio.h-for-printf.patch new file +37 -0
@@ -0,0 +1,37 @@ +From a0ae303fe0bcd81dfb1a649cc5e7a372d3bd878d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 20:44:42 -0700 +Subject: [PATCH] configure: Include stdio.h for printf + +Fixes test for __progname + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +--- a/configure.ac ++++ b/configure.ac +@@ -2791,7 +2791,9 @@ if test "x$ac_cv_have_control_in_msghdr" + fi + + AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [ +- AC_TRY_LINK([], ++ AC_TRY_LINK([ ++#include <stdio.h> ++], + [ extern char *__progname; printf("%s", __progname); ], + [ ac_cv_libc_defines___progname="yes" ], + [ ac_cv_libc_defines___progname="no" ] +--- a/configure ++++ b/configure +@@ -14838,7 +14838,7 @@ else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +- ++#include <stdio.h> + int + main () + {
meta-oe/recipes-extended/pam/pam-ssh-agent-auth_0.10.3.bb +1 -0
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.OpenSSL;md5=8ab01146141ded59b75f8ba7811ed05a SRC_URI = "http://sourceforge.net/projects/pamsshagentauth/files/pam_ssh_agent_auth/v${PV}/pam_ssh_agent_auth-${PV}.tar.bz2 \ file://0001-Adapt-to-OpenSSL-1.1.1.patch \ file://0002-Check-against-the-correct-OPENSSL_VERSION_NUMBER.patch \ + file://0001-configure-Include-stdio.h-for-printf.patch \ " SRC_URI[md5sum] = "8dbe90ab3625e545036333e6f51ccf1d" SRC_URI[sha256sum] = "3c53d358d6eaed1b211239df017c27c6f9970995d14102ae67bae16d4f47a763"
Signature · 1 line
2.37.3
PATCH 30/63 daemontools: Fix build with clang15 and musl
In reply to Khem Raj--- .../0001-Fix-signature-of-main-function.patch | 209 ++++++++++++++++++ .../daemontools/daemontools/warnings.patch | 74 +++++++ .../daemontools/daemontools_0.76.bb | 4 + 3 files changed, 287 insertions(+) create mode 100644 meta-oe/recipes-support/daemontools/daemontools/0001-Fix-signature-of-main-function.patch create mode 100644 meta-oe/recipes-support/daemontools/daemontools/warnings.patch
meta-oe/recipes-support/daemontools/daemontools/0001-Fix-signature-of-main-function.patch new file +209 -0
@@ -0,0 +1,209 @@ +From 269f18d5e6698fdd34fec2798f10c6fe072f3cd5 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 23:36:52 -0700 +Subject: [PATCH] Fix signature of main function + +Clang-15 errors out otherewise. +Include needed headers for missing functions + +Upstream-Status:Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/chkshsgr.c | 2 +- + src/tai64n.c | 2 +- + src/tai64nlocal.c | 2 +- + src/trycpp.c | 5 +++-- + src/tryflock.c | 4 ++-- + src/trymkffo.c | 2 +- + src/trypoll.c | 3 ++- + src/trysgact.c | 4 ++-- + src/trysgprm.c | 4 ++-- + src/tryshsgr.c | 3 ++- + src/tryulong64.c | 4 ++-- + src/trywaitp.c | 4 ++-- + src/x86cpuid.c | 2 +- + 13 files changed, 22 insertions(+), 19 deletions(-) + +diff --git a/src/chkshsgr.c b/src/chkshsgr.c +index 038afe9..9547a4c 100644 +--- a/src/chkshsgr.c ++++ b/src/chkshsgr.c +@@ -5,7 +5,7 @@ + #include <grp.h> + #include <unistd.h> + +-int main() ++int main(int argc, char *argv[]) + { + gid_t x[4]; + +diff --git a/src/tai64n.c b/src/tai64n.c +index 17bdb82..7096ab3 100644 +--- a/src/tai64n.c ++++ b/src/tai64n.c +@@ -27,7 +27,7 @@ buffer in = BUFFER_INIT(myread,0,inbuf,sizeof inbuf); + + char stamp[TIMESTAMP + 1]; + +-int main() ++int main(int argc, char *argv[]) + { + char ch; + +diff --git a/src/tai64nlocal.c b/src/tai64nlocal.c +index ce16ad8..2435737 100644 +--- a/src/tai64nlocal.c ++++ b/src/tai64nlocal.c +@@ -28,7 +28,7 @@ unsigned long nanosecs; + unsigned long u; + struct tm *t; + +-int main() ++int main(int argc, char *argv[]) + { + char ch; + +diff --git a/src/trycpp.c b/src/trycpp.c +index e4503d4..d96c955 100644 +--- a/src/trycpp.c ++++ b/src/trycpp.c +@@ -1,6 +1,7 @@ + /* Public domain. */ +- +-int main() ++#include <stdio.h> ++#include <stdlib.h> ++int main(int argc, char *argv[]) + { + #ifdef NeXT + printf("nextstep\n"); exit(0); +diff --git a/src/tryflock.c b/src/tryflock.c +index a82ffc2..5ca97d3 100644 +--- a/src/tryflock.c ++++ b/src/tryflock.c +@@ -3,8 +3,8 @@ + #include <sys/types.h> + #include <sys/file.h> + #include <fcntl.h> +- +-main() ++void ++main(int argc, char *argv[]) + { + flock(0,LOCK_EX | LOCK_UN | LOCK_NB); + } +diff --git a/src/trymkffo.c b/src/trymkffo.c +index 9356342..f92414a 100644 +--- a/src/trymkffo.c ++++ b/src/trymkffo.c +@@ -3,7 +3,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + +-void main() ++void main(int argc, char *argv[]) + { + mkfifo("temp-trymkffo",0); + } +diff --git a/src/trypoll.c b/src/trypoll.c +index 6506617..cb888cc 100644 +--- a/src/trypoll.c ++++ b/src/trypoll.c +@@ -3,8 +3,9 @@ + #include <sys/types.h> + #include <fcntl.h> + #include <poll.h> ++#include <unistd.h> + +-int main() ++int main(int argc, char *argv[]) + { + struct pollfd x; + +diff --git a/src/trysgact.c b/src/trysgact.c +index e264ef2..25da013 100644 +--- a/src/trysgact.c ++++ b/src/trysgact.c +@@ -1,8 +1,8 @@ + /* Public domain. */ + + #include <signal.h> +- +-main() ++void ++main(int argc, char *argv[]) + { + struct sigaction sa; + sa.sa_handler = 0; +diff --git a/src/trysgprm.c b/src/trysgprm.c +index a46c82c..5a9491c 100644 +--- a/src/trysgprm.c ++++ b/src/trysgprm.c +@@ -1,8 +1,8 @@ + /* Public domain. */ + + #include <signal.h> +- +-main() ++void ++main(int argc, char *argv[]) + { + sigset_t ss; + +diff --git a/src/tryshsgr.c b/src/tryshsgr.c +index c5ed6d6..d111e40 100644 +--- a/src/tryshsgr.c ++++ b/src/tryshsgr.c +@@ -1,6 +1,7 @@ + /* Public domain. */ + +-int main() ++#include <unistd.h> ++int main(int argc, char *argv[]) + { + short x[4]; + +diff --git a/src/tryulong64.c b/src/tryulong64.c +index 003548a..20a3a40 100644 +--- a/src/tryulong64.c ++++ b/src/tryulong64.c +@@ -1,6 +1,6 @@ + /* Public domain. */ +- +-int main() ++#include <unistd.h> ++int main(int argc, char *argv[]) + { + unsigned long u; + u = 1; +diff --git a/src/trywaitp.c b/src/trywaitp.c +index 319b81f..90bc5aa 100644 +--- a/src/trywaitp.c ++++ b/src/trywaitp.c +@@ -2,8 +2,8 @@ + + #include <sys/types.h> + #include <sys/wait.h> +- +-main() ++void ++main(int argc, char *argv[]) + { + waitpid(0,0,0); + } +diff --git a/src/x86cpuid.c b/src/x86cpuid.c +index f81c593..1cb1ea6 100644 +--- a/src/x86cpuid.c ++++ b/src/x86cpuid.c +@@ -7,7 +7,7 @@ void nope() + exit(1); + } + +-int main() ++int main(int argc, char *argv[]) + { + unsigned long x[4]; + unsigned long y[4]; +-- +2.37.3 +
meta-oe/recipes-support/daemontools/daemontools/warnings.patch new file +74 -0
74 lines not on this page · raw message
meta-oe/recipes-support/daemontools/daemontools_0.76.bb +4 -0
@@ -15,11 +15,15 @@ SECTION = "System/Servers" LIC_FILES_CHKSUM = "file://src/prot.c;beginline=1;endline=1;md5=96964cadf07e8f8c1e2ffb3b507dd647" LICENSE = "PD" +DEPENDS += "coreutils" + SRC_URI = "http://cr.yp.to/daemontools/${BPN}-${PV}.tar.gz \ file://0001-error.h-include-errno.h-instead-of-extern-int.diff \ file://0002-supervise.c-.-supervise-may-be-a-symlink-if-it-s-da.diff \ file://cross-compile.patch \ file://0001-daemontools-Fix-QA-Issue.patch \ + file://warnings.patch \ + file://0001-Fix-signature-of-main-function.patch \ " SRC_URI[md5sum] = "1871af2453d6e464034968a0fbcb2bfc"
Signature · 1 line
2.37.3
PATCH 31/63 pmtools: Update patch to include string.h and function prototype for main
In reply to Khem RajFixes build with clang-15
--- ...o-dynamic-buffer-for-huge-ACPI-table.patch | 38 +++++++++++++------ 1 file changed, 27 insertions(+), 11 deletions(-)
meta-oe/recipes-devtools/pmtools/pmtools/pmtools-switch-to-dynamic-buffer-for-huge-ACPI-table.patch +27 -11
@@ -18,22 +18,41 @@ Signed-off-by: Kai Kang <[email protected]> madt/madt.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) -diff --git a/madt/madt.c b/madt/madt.c -index aed965c..8770cd5 100644 --- a/madt/madt.c +++ b/madt/madt.c -@@ -51,7 +51,9 @@ get_next_entry(acpi_table_entry_header * entry_header) +@@ -34,14 +34,16 @@ typedef unsigned long long u64; + //#include <sys/mman.h> + #include <stdio.h> // fread + #include <stdlib.h> // malloc ++#include <string.h> // memset/memcpy + + #include "./tables.c" + + int verbose = 0; + /* +-/* read standard input ++ * read standard input + * write decoded madt to standard output + */ ++size_t + get_next_entry(acpi_table_entry_header * entry_header) + { + size_t retval; +@@ -51,9 +53,11 @@ get_next_entry(acpi_table_entry_header * return retval; } -u8 buffer[1024]; -+ + +-main() +u8 buf[1024]; +u8 *buffer = buf; - - main() ++int ++main(int argc, char *argv[]) { -@@ -75,6 +77,17 @@ main() + size_t retval; + struct acpi_table_madt *madt_header; +@@ -75,6 +79,17 @@ main() if (verbose) printf("header.length %d\n", madt_header->header.length);
@@ -51,7 +70,7 @@ index aed965c..8770cd5 100644 acpi_table_print((void*)&(buffer[bytes_read]), 0); bytes_read = sizeof(struct acpi_table_madt); -@@ -118,6 +131,9 @@ done: +@@ -118,6 +133,9 @@ done: printf("Checksum 0x%x != 0; 0x%x in header ERROR\n", csum, madt_header->header.checksum);
@@ -61,6 +80,3 @@ index aed965c..8770cd5 100644 return 0; } --- -1.8.1.2 -
Signature · 1 line
2.37.3
PATCH 32/63 uw-imap: Fix build with clang/musl
In reply to Khem Raj--- ...0001-Define-prototype-for-safe_flock.patch | 105 ++++++++++++++++++ .../recipes-devtools/uw-imap/uw-imap_2007f.bb | 3 +- 2 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Define-prototype-for-safe_flock.patch
meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Define-prototype-for-safe_flock.patch new file +105 -0
@@ -0,0 +1,105 @@ +From c512c877a7ca933bee980dcc1268a7319f233d59 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 00:07:47 -0700 +Subject: [PATCH] Define prototype for safe_flock + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/osdep/unix/env_unix.c | 3 +++ + src/osdep/unix/mbx.c | 2 ++ + src/osdep/unix/os_lnx.h | 2 ++ + src/osdep/unix/os_slx.h | 3 +++ + src/osdep/unix/unix.c | 4 ++++ + 5 files changed, 14 insertions(+) + +diff --git a/src/osdep/unix/env_unix.c b/src/osdep/unix/env_unix.c +index 6b2c447..cefefca 100644 +--- a/src/osdep/unix/env_unix.c ++++ b/src/osdep/unix/env_unix.c +@@ -59,6 +59,9 @@ + #define S_IXOTH (S_IEXEC >> 6) + #endif + ++ ++extern int safe_flock (int fd,int op); ++ + /* c-client environment parameters */ + + static char *myUserName = NIL; /* user name */ +diff --git a/src/osdep/unix/mbx.c b/src/osdep/unix/mbx.c +index 1ece5d8..c8a45a5 100644 +--- a/src/osdep/unix/mbx.c ++++ b/src/osdep/unix/mbx.c +@@ -41,12 +41,14 @@ extern int errno; /* just in case */ + #include "mail.h" + #include "osdep.h" + #include <pwd.h> ++#include <utime.h> + #include <sys/stat.h> + #include <sys/time.h> + #include "misc.h" + #include "dummy.h" + #include "fdstring.h" + ++extern int safe_flock (int fd,int op); + + /* Build parameters */ + +diff --git a/src/osdep/unix/os_lnx.h b/src/osdep/unix/os_lnx.h +index b5f39ff..22c216b 100644 +--- a/src/osdep/unix/os_lnx.h ++++ b/src/osdep/unix/os_lnx.h +@@ -57,6 +57,8 @@ + + #define direct dirent + ++extern int safe_flock (int fd,int op); ++ + #define flock safe_flock + + +diff --git a/src/osdep/unix/os_slx.h b/src/osdep/unix/os_slx.h +index b5f39ff..c9adbcd 100644 +--- a/src/osdep/unix/os_slx.h ++++ b/src/osdep/unix/os_slx.h +@@ -46,11 +46,14 @@ + #include <sys/types.h> + #include <dirent.h> + #include <time.h> /* for struct tm */ ++#include <utime.h> /* for struct tm */ + #include <fcntl.h> + #include <syslog.h> + #include <sys/file.h> + + ++extern int safe_flock (int fd,int op); ++ + /* Linux gets this wrong */ + + #define setpgrp setpgid +diff --git a/src/osdep/unix/unix.c b/src/osdep/unix/unix.c +index be3c437..86be3f9 100644 +--- a/src/osdep/unix/unix.c ++++ b/src/osdep/unix/unix.c +@@ -45,6 +45,7 @@ extern int errno; /* just in case */ + #include "mail.h" + #include "osdep.h" + #include <time.h> ++#include <utime.h> + #include <sys/stat.h> + #include "unix.h" + #include "pseudo.h" +@@ -52,6 +53,9 @@ extern int errno; /* just in case */ + #include "misc.h" + #include "dummy.h" + ++ ++extern int safe_flock (int fd,int op); ++ + /* UNIX I/O stream local data */ + + typedef struct unix_local { +-- +2.37.3 +
meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb +2 -1
@@ -11,6 +11,7 @@ SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \ file://imap-2007e-shared.patch \ file://imap-2007f-format-security.patch \ file://0001-Support-OpenSSL-1.1.patch \ + file://0001-Define-prototype-for-safe_flock.patch \ " SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369"
@@ -25,7 +26,7 @@ CVE_CHECK_IGNORE += "\ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" PACKAGECONFIG[pam] = ",,libpam" -EXTRA_OEMAKE = "CC='${CC}' ARRC='${AR} -rc' RANLIB='${RANLIB}'" +EXTRA_OEMAKE = "CC='${CC} -std=c99 -D_GNU_SOURCE' ARRC='${AR} -rc' RANLIB='${RANLIB}'" HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h"
Signature · 1 line
2.37.3
PATCH 33/63 libx86: Fix pointer typecasting in assignment
In reply to Khem Raj--- ...-type-of-the-void-pointer-assignment.patch | 33 +++++++++++++++++++ .../recipes-extended/libx86-1/libx86-1_1.1.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Fix-type-of-the-void-pointer-assignment.patch
meta-oe/recipes-extended/libx86-1/libx86-1.1/0001-Fix-type-of-the-void-pointer-assignment.patch new file +33 -0
@@ -0,0 +1,33 @@ +From c782e208021409e9b78acb2200abd4319072e78a Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 00:28:05 -0700 +Subject: [PATCH] Fix type of the void pointer assignment + +Fixes build with clang + +x86-common.c:216:9: error: incompatible integer to pointer conversion assigning to 'void *' from 'long' [-Wint-conversion] + offset = mem_info.offset - REAL_MEM_BASE; + ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + x86-common.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/x86-common.c b/x86-common.c +index 137bc3c..6f737ed 100644 +--- a/x86-common.c ++++ b/x86-common.c +@@ -213,7 +213,7 @@ void *LRMI_common_init(int high_page) + if (!real_mem_init(high_page)) + return NULL; + +- offset = mem_info.offset - REAL_MEM_BASE; ++ offset = (void*)(mem_info.offset - REAL_MEM_BASE); + + /* + Map the Interrupt Vectors (0x0 - 0x400) + BIOS data (0x400 - 0x502) +-- +2.37.3 +
meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb +1 -0
@@ -11,6 +11,7 @@ SRC_URI = "http://www.codon.org.uk/~mjg59/libx86/downloads/${BPN}-${PV}.tar.gz \ file://libx86-mmap-offset.patch \ file://0001-assume-zero-is-valid-address.patch \ file://makefile-add-ldflags.patch \ + file://0001-Fix-type-of-the-void-pointer-assignment.patch \ " SRC_URI[md5sum] = "41bee1f8e22b82d82b5f7d7ba51abc2a"
Signature · 1 line
2.37.3
PATCH 34/63 obconf: Add fixes for missing function prototypes
In reply to Khem Raj--- ...0001-Fix-function-protype-visibility.patch | 94 +++++++++++++++++++ .../recipes-graphics/openbox/obconf_git.bb | 1 + 2 files changed, 95 insertions(+) create mode 100644 meta-oe/recipes-graphics/openbox/files/0001-Fix-function-protype-visibility.patch
meta-oe/recipes-graphics/openbox/files/0001-Fix-function-protype-visibility.patch new file +94 -0
@@ -0,0 +1,94 @@ +From 941d5ff3426e68cb9bcb4ae86066124cb2535b69 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 12:32:20 -0700 +Subject: [PATCH] Fix function protype visibility + +Include ctye.h for toupper + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/appearance.c | 1 + + src/desktops.c | 2 +- + src/desktops.h | 2 +- + src/main.c | 1 + + src/moveresize.c | 2 +- + src/moveresize.h | 2 +- + 6 files changed, 6 insertions(+), 4 deletions(-) + +diff --git a/src/appearance.c b/src/appearance.c +index 4fb3f0c..ee55661 100644 +--- a/src/appearance.c ++++ b/src/appearance.c +@@ -20,6 +20,7 @@ + #include "main.h" + #include "tree.h" + #include "preview_update.h" ++#include <ctype.h> /* for toupper */ + + static gboolean mapping = FALSE; + +diff --git a/src/desktops.c b/src/desktops.c +index 8297f00..27ca514 100644 +--- a/src/desktops.c ++++ b/src/desktops.c +@@ -38,7 +38,7 @@ static void on_desktop_names_cell_edited(GtkCellRendererText *cell, + gpointer data); + static void enable_stuff(); + +-void desktops_setup_tab() ++void desktops_setup_tab(void) + { + GtkWidget *w; + GtkCellRenderer *render; +diff --git a/src/desktops.h b/src/desktops.h +index 1ba3e36..446bfbb 100644 +--- a/src/desktops.h ++++ b/src/desktops.h +@@ -24,5 +24,5 @@ + + void desktops_setup_num(GtkWidget *w); + void desktops_setup_names(GtkWidget *w); +- ++void desktops_setup_tab(void); + #endif +diff --git a/src/main.c b/src/main.c +index d7e3446..0176035 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -28,6 +28,7 @@ + #include "dock.h" + #include "preview_update.h" + #include "gettext.h" ++#include "moveresize.h" + + #include <gdk/gdkx.h> + #define SN_API_NOT_YET_FROZEN +diff --git a/src/moveresize.c b/src/moveresize.c +index c6fb3dd..bb52729 100644 +--- a/src/moveresize.c ++++ b/src/moveresize.c +@@ -37,7 +37,7 @@ static gboolean mapping = FALSE; + static void enable_stuff(); + static void write_fixed_position(const gchar *coord); + +-void moveresize_setup_tab() ++void moveresize_setup_tab(void) + { + GtkWidget *w, *w1, *w2, *w3; + GtkSizeGroup *group; +diff --git a/src/moveresize.h b/src/moveresize.h +index 82ecc96..8faf526 100644 +--- a/src/moveresize.h ++++ b/src/moveresize.h +@@ -20,6 +20,6 @@ + #ifndef obconf__moveresize_h + #define obconf__moveresize_h + +-void moveresize_setup_tab(); ++void moveresize_setup_tab(void); + + #endif +-- +2.37.3 +
meta-oe/recipes-graphics/openbox/obconf_git.bb +1 -0
@@ -14,6 +14,7 @@ PV = "2.0.4+git${SRCPV}" SRCREV = "63ec47c5e295ad4f09d1df6d92afb7e10c3fec39" SRC_URI = " \ git://git.openbox.org/dana/obconf;branch=master \ + file://0001-Fix-function-protype-visibility.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
2.37.3
PATCH 35/63 sblim-sfcc: Fix build with clang
In reply to Khem Raj--- .../0001-Fix-function-declararions.patch | 80 +++++++++++++++++++ .../sblim-sfcc/sblim-sfcc_2.2.8.bb | 1 + 2 files changed, 81 insertions(+) create mode 100644 meta-oe/recipes-extended/sblim-sfcc/sblim-sfcc/0001-Fix-function-declararions.patch
meta-oe/recipes-extended/sblim-sfcc/sblim-sfcc/0001-Fix-function-declararions.patch new file +80 -0
@@ -0,0 +1,80 @@ +From f97c26f5effd4372f7e03f9e4178d42a9ad8d4b3 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 13:33:16 -0700 +Subject: [PATCH] Fix function declararions + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + TEST/v2test_ec.c | 2 ++ + TEST/v2test_ein.c | 1 + + backend/cimxml/cimXmlParser.c | 6 +++++- + backend/cimxml/grammar.c | 2 ++ + 4 files changed, 10 insertions(+), 1 deletion(-) + +diff --git a/TEST/v2test_ec.c b/TEST/v2test_ec.c +index ad34dcc..d3e566d 100644 +--- a/TEST/v2test_ec.c ++++ b/TEST/v2test_ec.c +@@ -6,6 +6,8 @@ + #include "cmcimacs.h" + + extern char *value2Chars(CMPIType type, CMPIValue * value); ++extern void showClass( CMPIConstClass * in_class ); ++ + /* + * comment out this define to use v2 http XML interface + */ +diff --git a/TEST/v2test_ein.c b/TEST/v2test_ein.c +index c1b4692..5d5ef5d 100644 +--- a/TEST/v2test_ein.c ++++ b/TEST/v2test_ein.c +@@ -6,6 +6,7 @@ + #include "cmcimacs.h" + + extern char *value2Chars(CMPIType type, CMPIValue * value); ++extern void showObjectPath( CMPIObjectPath * objectpath ); + void showProperty( CMPIData , char * ); + void showInstance( CMPIInstance * ); + static char * CMPIState_str(CMPIValueState); +diff --git a/backend/cimxml/cimXmlParser.c b/backend/cimxml/cimXmlParser.c +index d1ab86e..9f5d1ca 100644 +--- a/backend/cimxml/cimXmlParser.c ++++ b/backend/cimxml/cimXmlParser.c +@@ -34,6 +34,8 @@ + + #include <pthread.h> + ++void startParsing(ParserControl *parm); ++ + static int attrsOk(XmlBuffer * xb, const XmlElement * e, XmlAttr * r, + const char *tag, int etag); + static char *getValue(XmlBuffer * xb, const char *v); +@@ -1350,7 +1352,9 @@ ResponseHdr scanCimXmlResponse(const char *xmlData, CMPIObjectPath *cop) + + control.heap = parser_heap_init(); + +- control.respHdr.rc = startParsing(&control); ++ control.respHdr.rc = 0; ++ ++ startParsing(&control); + + parser_heap_term(control.heap); + +diff --git a/backend/cimxml/grammar.c b/backend/cimxml/grammar.c +index 6a0a969..a3dcdea 100644 +--- a/backend/cimxml/grammar.c ++++ b/backend/cimxml/grammar.c +@@ -23,6 +23,8 @@ + #include "sfcUtil/utilft.h" + #include "parserUtil.h" + ++CMPIType guessType(char *val); ++void setClassMethods(CMPIConstClass *cls, XtokMethods *ms); + + static int ct = 0; + static int dontLex = 0; +-- +2.37.3 +
meta-oe/recipes-extended/sblim-sfcc/sblim-sfcc_2.2.8.bb +1 -0
@@ -4,6 +4,7 @@ HOMEPAGE = "http://www.sblim.org" SRC_URI = "http://netcologne.dl.sourceforge.net/project/sblim/${BPN}/${BPN}-${PV}.tar.bz2 \ file://0001-cimxml-Include-sys-select.h-for-fd_set.patch \ + file://0001-Fix-function-declararions.patch \ " SRC_URI[md5sum] = "0bac0dec19f17ec065b6c332a56d7bae"
Signature · 1 line
2.37.3
PATCH 36/63 sblim-sfcb: Add missing headers file for clang/musl
In reply to Khem Raj--- .../0001-include-missing-system-headers.patch | 151 ++++++++++++++++++ .../sblim-sfcb/sblim-sfcb_1.4.9.bb | 1 + 2 files changed, 152 insertions(+) create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-include-missing-system-headers.patch
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-include-missing-system-headers.patch new file +151 -0
@@ -0,0 +1,151 @@ +From c5b15ae9636a3b73407372cce87eb40ea78a68ea Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 15:51:31 -0700 +Subject: [PATCH] include missing system headers + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + brokerEnc.c | 2 ++ + brokerOs.c | 1 + + mlog.c | 1 + + mofc/backend_sfcb.c | 2 +- + sfcbdump.c | 1 + + sfcbdumpP32onI32.c | 1 + + sfcbsem.c | 1 + + trace.c | 3 ++- + trace.h | 3 ++- + 9 files changed, 12 insertions(+), 3 deletions(-) + +diff --git a/brokerEnc.c b/brokerEnc.c +index 9115e71..889afcd 100644 +--- a/brokerEnc.c ++++ b/brokerEnc.c +@@ -25,6 +25,8 @@ + #include "constClass.h" + #include <sfcCommon/utilft.h> + ++#include <string.h> /* strcasecmp */ ++ + extern const char *opGetClassNameChars(const CMPIObjectPath * cop); + extern const char *opGetNameSpaceChars(const CMPIObjectPath * cop); + extern CMPIConstClass *getConstClass(const char *ns, const char *cn); +diff --git a/brokerOs.c b/brokerOs.c +index 8d73a0b..b1427fd 100644 +--- a/brokerOs.c ++++ b/brokerOs.c +@@ -22,6 +22,7 @@ + #include <pthread.h> + #include "native.h" + #include <stdlib.h> ++#include <string.h> /* strcmp */ + + static char * + resolveFileName(const char *filename) +diff --git a/mlog.c b/mlog.c +index a2d9eb7..6d9cd29 100644 +--- a/mlog.c ++++ b/mlog.c +@@ -26,6 +26,7 @@ const char *_mlog_id = + #include <syslog.h> + #include <stdarg.h> + #include <stdio.h> ++#include <string.h> /* strcat */ + #include <errno.h> + #include <signal.h> + #include "trace.h" /* for setSignal() */ +diff --git a/mofc/backend_sfcb.c b/mofc/backend_sfcb.c +index 614abcd..99d4061 100644 +--- a/mofc/backend_sfcb.c ++++ b/mofc/backend_sfcb.c +@@ -29,7 +29,7 @@ + #include "backend.h" + #include "objectpath.h" + #include <sys/utsname.h> +- ++#include <string.h> + + extern CMPIStatus sfcb_simpleArrayAdd(CMPIArray * array, CMPIValue * val, CMPIType type); + extern CMPIObjectPath *getObjectPath(char *path, char **msg); +diff --git a/sfcbdump.c b/sfcbdump.c +index 8a9c335..aa8559c 100644 +--- a/sfcbdump.c ++++ b/sfcbdump.c +@@ -23,6 +23,7 @@ + #include <errno.h> + #include <stddef.h> + #include <getopt.h> ++#include <string.h> /* strerror */ + #include "objectImpl.h" + + #define BINARY_NAME argv[0] +diff --git a/sfcbdumpP32onI32.c b/sfcbdumpP32onI32.c +index ccf87dc..3540751 100644 +--- a/sfcbdumpP32onI32.c ++++ b/sfcbdumpP32onI32.c +@@ -22,6 +22,7 @@ + #include <fcntl.h> + #include <errno.h> + #include <stddef.h> ++#include <string.h> + #include <getopt.h> + #include "objectImpl.h" + #include <byteswap.h> +diff --git a/sfcbsem.c b/sfcbsem.c +index 3f8de7f..1e6358b 100644 +--- a/sfcbsem.c ++++ b/sfcbsem.c +@@ -21,6 +21,7 @@ + + /* includes */ + #include <stdio.h> ++#include <string.h> + #include <getopt.h> + #include <errno.h> + +diff --git a/trace.c b/trace.c +index 23597e1..c4f8011 100644 +--- a/trace.c ++++ b/trace.c +@@ -25,6 +25,7 @@ + #include "native.h" + #include <string.h> + #include <time.h> ++#include <pthread.h> + + #include <sys/stat.h> + #include <sys/wait.h> +@@ -50,7 +51,7 @@ + + char *processName = NULL; + int providerProcess = 0; +-int idleThreadId = 0; ++pthread_t idleThreadId = 0; + int terminating = 0; + int colorTrace; + +diff --git a/trace.h b/trace.h +index ea39850..52d408d 100644 +--- a/trace.h ++++ b/trace.h +@@ -25,6 +25,7 @@ + + #include "mlog.h" + ++#include <pthread.h> + extern unsigned long _sfcb_trace_mask; + /* use pointer indirect _sfcb_trace_mask to allow shared memory flag */ + extern unsigned long *_ptr_sfcb_trace_mask; +@@ -162,7 +163,7 @@ extern sigHandler *setSignal(int sn, sigHandler * sh, int flags); + + extern char *processName; + extern int providerProcess; +-extern int idleThreadId; ++extern pthread_t idleThreadId; + extern int terminating; + + #endif +-- +2.37.3 +
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb +1 -0
@@ -28,6 +28,7 @@ SRC_URI = "http://downloads.sourceforge.net/sblim/${BP}.tar.bz2 \ file://sblim-sfcb-1.4.9-fix-sfcbinst2mof.patch \ file://0001-Avoid-variable-definition-in-header-files.patch \ file://0001-configure-Check-for-function-from-respective-library.patch \ + file://0001-include-missing-system-headers.patch \ " SRC_URI[md5sum] = "28021cdabc73690a94f4f9d57254ce30"
Signature · 1 line
2.37.3
PATCH 37/63 sanlock: Add missing prototype for mem* functions
In reply to Khem Raj--- ...1-add-missing-system-header-string.h.patch | 41 +++++++++++++++++++ .../recipes-extended/sanlock/sanlock_3.8.4.bb | 1 + 2 files changed, 42 insertions(+) create mode 100644 meta-oe/recipes-extended/sanlock/sanlock/0001-add-missing-system-header-string.h.patch
meta-oe/recipes-extended/sanlock/sanlock/0001-add-missing-system-header-string.h.patch new file +41 -0
@@ -0,0 +1,41 @@ +From 272f9838f3495f5e419f77e000762c420754c96d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 15:57:32 -0700 +Subject: [PATCH] add missing system header string.h + +This is needed for mem* function prototypes used in these sources + +Upstream-Status: Submitted [https://pagure.io/sanlock/issue/8] +Signed-off-by: Khem Raj <[email protected]> +--- + src/sanlock_sock.c | 1 + + wdmd/wdmd_sock.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/sanlock_sock.c b/src/sanlock_sock.c +index b83f9ae..e206f88 100644 +--- a/src/sanlock_sock.c ++++ b/src/sanlock_sock.c +@@ -12,6 +12,7 @@ + #include <stdio.h> + #include <stdint.h> + #include <stddef.h> ++#include <string.h> + #include <sys/socket.h> + #include <sys/un.h> + +diff --git a/wdmd/wdmd_sock.c b/wdmd/wdmd_sock.c +index 45d9d9b..110ce9f 100644 +--- a/wdmd/wdmd_sock.c ++++ b/wdmd/wdmd_sock.c +@@ -12,6 +12,7 @@ + #include <stdio.h> + #include <stdint.h> + #include <stddef.h> ++#include <string.h> + #include <sys/socket.h> + #include <sys/un.h> + +-- +2.37.3 +
meta-oe/recipes-extended/sanlock/sanlock_3.8.4.bb +1 -0
@@ -16,6 +16,7 @@ PV .= "+git${SRCPV}" SRC_URI = "git://pagure.io/sanlock.git;protocol=http;branch=master \ file://0001-sanlock-Replace-cp-a-with-cp-R-no-dereference-preser.patch \ file://setuptools.patch \ + file://0001-add-missing-system-header-string.h.patch \ " SRCREV = "a181e951376d49a82eef17920c8ebedec80b4823"
Signature · 1 line
2.37.3
PATCH 38/63 geis: Add missing prototypes to functions
In reply to Khem Raj--- ...function-declaration-with-prototypes.patch | 690 ++++++++++++++++++ .../canonical-multitouch/geis_2.2.17.bb | 1 + 2 files changed, 691 insertions(+) create mode 100644 meta-oe/recipes-support/canonical-multitouch/geis/0001-provide-function-declaration-with-prototypes.patch
meta-oe/recipes-support/canonical-multitouch/geis/0001-provide-function-declaration-with-prototypes.patch new file +690 -0
@@ -0,0 +1,690 @@ +From 05fe9751dfb370b0fb726e95bc36674468116db4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 16:57:51 -0700 +Subject: [PATCH] provide function declaration with prototypes + +Fixes build with clang-15+ + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + libgeis/backend/grail/geis_grail_window_grab.c | 2 +- + libgeis/backend/grail/geis_ugsubscription_store.c | 2 +- + libgeis/backend/grail/geis_ugsubscription_store.h | 2 +- + libgeis/backend/test_fixture/geis_backend_test_fixture.c | 4 ++-- + libgeis/geis.c | 2 +- + libgeis/geis_backend_multiplexor.c | 4 ++-- + libgeis/geis_backend_multiplexor.h | 2 +- + libgeis/geis_class.c | 2 +- + libgeis/geis_class.h | 2 +- + libgeis/geis_device.c | 2 +- + libgeis/geis_device.h | 2 +- + libgeis/geis_event_queue.c | 2 +- + libgeis/geis_event_queue.h | 2 +- + libgeis/geis_filter.c | 2 +- + libgeis/geis_filter.h | 2 +- + libgeis/geis_filterable.c | 2 +- + libgeis/geis_filterable.h | 2 +- + libgeis/geis_frame.c | 2 +- + libgeis/geis_frame.h | 2 +- + libgeis/geis_group.c | 2 +- + libgeis/geis_group.h | 2 +- + libgeis/geis_region.c | 2 +- + libgeis/geis_region.h | 2 +- + libgeis/geis_touch.c | 2 +- + libgeis/geis_touch.h | 2 +- + libgeis/server/geis_dbus_client_proxy.c | 2 +- + libgeis/server/geis_dbus_proxy_box.c | 2 +- + libgeis/server/geis_dbus_proxy_box.h | 2 +- + libs/geis-dbus/geis_dbus_dispatcher.c | 2 +- + libs/geis-util/geis_logging.c | 2 +- + testsuite/geis1/check_gesture_attrs.c | 2 +- + testsuite/geis1/check_gesture_types.c | 2 +- + testsuite/geis1/check_instance.c | 2 +- + testsuite/geis1/check_subscription.c | 2 +- + testsuite/geis2/check_attr.c | 2 +- + testsuite/geis2/check_class.c | 2 +- + testsuite/geis2/check_config.c | 2 +- + testsuite/geis2/check_device.c | 2 +- + testsuite/geis2/check_error_codes.c | 2 +- + testsuite/geis2/check_event.c | 2 +- + testsuite/geis2/check_filter.c | 2 +- + testsuite/geis2/check_frame.c | 2 +- + testsuite/geis2/check_geis_new.c | 2 +- + testsuite/geis2/check_general_types.c | 2 +- + testsuite/geis2/check_region.c | 2 +- + testsuite/geis2/check_subscription.c | 2 +- + tools/geis-server/geis-server.c | 2 +- + 47 files changed, 49 insertions(+), 49 deletions(-) + +diff --git a/libgeis/backend/grail/geis_grail_window_grab.c b/libgeis/backend/grail/geis_grail_window_grab.c +index 003adee..f8480ac 100644 +--- a/libgeis/backend/grail/geis_grail_window_grab.c ++++ b/libgeis/backend/grail/geis_grail_window_grab.c +@@ -49,7 +49,7 @@ static const GeisFloat _geis_grail_window_grab_store_growth_factor = 1.7; + + + static GeisGrailWindowGrabStore +-_window_grab_allocate() ++_window_grab_allocate(void) + { + GeisGrailWindowGrabStore wgs = malloc(sizeof(struct GeisGrailWindowGrabStore)); + if (!wgs) +diff --git a/libgeis/backend/grail/geis_ugsubscription_store.c b/libgeis/backend/grail/geis_ugsubscription_store.c +index bb1f0bb..cb7e620 100644 +--- a/libgeis/backend/grail/geis_ugsubscription_store.c ++++ b/libgeis/backend/grail/geis_ugsubscription_store.c +@@ -42,7 +42,7 @@ static const GeisFloat _geis_grail_ugsubscription_store_growth_factor = 1.7; + * Creates a new, empty grail subscription store. + */ + GeisUGSubscriptionStore +-geis_ugsubscription_store_new() ++geis_ugsubscription_store_new(void) + { + GeisUGSubscriptionStore store = geis_bag_new(sizeof(struct GeisUGSubscription), + _geis_grail_ugsubscription_store_default_size, +diff --git a/libgeis/backend/grail/geis_ugsubscription_store.h b/libgeis/backend/grail/geis_ugsubscription_store.h +index a93e1b6..06273ef 100644 +--- a/libgeis/backend/grail/geis_ugsubscription_store.h ++++ b/libgeis/backend/grail/geis_ugsubscription_store.h +@@ -41,7 +41,7 @@ typedef GeisBag GeisUGSubscriptionStore; + * @returns a pointer to a valid store, or NULL to indicate failure. + */ + GeisUGSubscriptionStore +-geis_ugsubscription_store_new(); ++geis_ugsubscription_store_new(void); + + /** + * Destroys a grail subscription store. +diff --git a/libgeis/backend/test_fixture/geis_backend_test_fixture.c b/libgeis/backend/test_fixture/geis_backend_test_fixture.c +index 5912acb..099cde4 100644 +--- a/libgeis/backend/test_fixture/geis_backend_test_fixture.c ++++ b/libgeis/backend/test_fixture/geis_backend_test_fixture.c +@@ -434,7 +434,7 @@ _token_free_subscription_pdata(GeisBackendToken gbtoken GEIS_UNUSED, + } + + __attribute__((constructor)) +-static void _register_test_fixture() ++static void _register_test_fixture(void) + { + geis_register_backend(GEIS_INIT_MOCK_BACKEND, + sizeof(struct GeisBackendTestFixture), +@@ -444,6 +444,6 @@ static void _register_test_fixture() + + /* A dummy routine to force linkage of this module without dlopening it */ + void +-geis_include_backend_test_fixture() ++geis_include_backend_test_fixture(void) + { + } +diff --git a/libgeis/geis.c b/libgeis/geis.c +index 4290d19..3f7bd12 100644 +--- a/libgeis/geis.c ++++ b/libgeis/geis.c +@@ -402,7 +402,7 @@ geis_filterable_attribute_foreach(Geis geis, + * Creates a new empty Geis API instance. + */ + static Geis +-geis_new_empty() ++geis_new_empty(void) + { + geis_error_clear(NULL); + Geis geis = calloc(1, sizeof(struct _Geis)); +diff --git a/libgeis/geis_backend_multiplexor.c b/libgeis/geis_backend_multiplexor.c +index 3f80080..0f76198 100644 +--- a/libgeis/geis_backend_multiplexor.c ++++ b/libgeis/geis_backend_multiplexor.c +@@ -60,7 +60,7 @@ struct _GeisBackendMultiplexor + * Creates a new container for callback info. + */ + static CallbackInfoBag +-_callback_info_bag_new() ++_callback_info_bag_new(void) + { + CallbackInfoBag cbib = calloc(1, sizeof(struct CallbackInfoBag)); + if (!cbib) +@@ -209,7 +209,7 @@ _callback_info_bag_release(CallbackInfoBag cbib, int fd) + * Creates a new backend multiplexor. + */ + GeisBackendMultiplexor +-geis_backend_multiplexor_new() ++geis_backend_multiplexor_new(void) + { + GeisBackendMultiplexor mx = calloc(1, sizeof(struct _GeisBackendMultiplexor)); + if (!mx) +diff --git a/libgeis/geis_backend_multiplexor.h b/libgeis/geis_backend_multiplexor.h +index ff4c318..8e7102e 100644 +--- a/libgeis/geis_backend_multiplexor.h ++++ b/libgeis/geis_backend_multiplexor.h +@@ -74,7 +74,7 @@ typedef void (*GeisBackendFdEventCallback)(int fd, + /** + * Constructs a new back end multiplexor. + */ +-GeisBackendMultiplexor geis_backend_multiplexor_new(); ++GeisBackendMultiplexor geis_backend_multiplexor_new(void); + + /** + * A reasonable default value for the max_events_per_pump parameter to +diff --git a/libgeis/geis_class.c b/libgeis/geis_class.c +index e889e4b..5c26a87 100644 +--- a/libgeis/geis_class.c ++++ b/libgeis/geis_class.c +@@ -46,7 +46,7 @@ static const int gesture_class_bag_growth_constant = 2; + * Creates a new class bag, + */ + GeisGestureClassBag +-geis_gesture_class_bag_new() ++geis_gesture_class_bag_new(void) + { + GeisGestureClassBag bag = calloc(1, sizeof(struct _GeisGestureClassBag)); + if (!bag) +diff --git a/libgeis/geis_class.h b/libgeis/geis_class.h +index 1d60998..724c353 100644 +--- a/libgeis/geis_class.h ++++ b/libgeis/geis_class.h +@@ -35,7 +35,7 @@ typedef struct _GeisGestureClassBag *GeisGestureClassBag; + /** + * Creates a new class bag, + */ +-GeisGestureClassBag geis_gesture_class_bag_new(); ++GeisGestureClassBag geis_gesture_class_bag_new(void); + + /** + * Destroys a gesture class bag. +diff --git a/libgeis/geis_device.c b/libgeis/geis_device.c +index 1f61fc1..ff3216b 100644 +--- a/libgeis/geis_device.c ++++ b/libgeis/geis_device.c +@@ -44,7 +44,7 @@ static const int device_bag_growth_constant = 2; + + + GeisDeviceBag +-geis_device_bag_new() ++geis_device_bag_new(void) + { + GeisDeviceBag bag = calloc(1, sizeof(struct _GeisDeviceBag)); + if (!bag) +diff --git a/libgeis/geis_device.h b/libgeis/geis_device.h +index c411e54..707943b 100644 +--- a/libgeis/geis_device.h ++++ b/libgeis/geis_device.h +@@ -35,7 +35,7 @@ typedef struct _GeisDeviceBag *GeisDeviceBag; + /** + * Creates a new device bag, + */ +-GeisDeviceBag geis_device_bag_new(); ++GeisDeviceBag geis_device_bag_new(void); + + /** + * Destroys a device bag. +diff --git a/libgeis/geis_event_queue.c b/libgeis/geis_event_queue.c +index 0b7d0fb..f357683 100644 +--- a/libgeis/geis_event_queue.c ++++ b/libgeis/geis_event_queue.c +@@ -50,7 +50,7 @@ struct _GeisEventQueue + * Creates a new Geis Event queue. + */ + GeisEventQueue +-geis_event_queue_new() ++geis_event_queue_new(void) + { + GeisEventQueue queue = calloc(1, sizeof(struct _GeisEventQueue)); + if (!queue) +diff --git a/libgeis/geis_event_queue.h b/libgeis/geis_event_queue.h +index e4c186d..5f3da1d 100644 +--- a/libgeis/geis_event_queue.h ++++ b/libgeis/geis_event_queue.h +@@ -41,7 +41,7 @@ typedef struct _GeisEventQueue *GeisEventQueue; + /** + * Creates a new Geis Event queue. + */ +-GeisEventQueue geis_event_queue_new(); ++GeisEventQueue geis_event_queue_new(void); + + /** + * Destroys a Geis Event queue. +diff --git a/libgeis/geis_filter.c b/libgeis/geis_filter.c +index 4fe5da6..83d65a8 100644 +--- a/libgeis/geis_filter.c ++++ b/libgeis/geis_filter.c +@@ -57,7 +57,7 @@ static GeisSize s_filter_oid = 0; + * Creates a new filter bag, + */ + GeisFilterBag +-geis_filter_bag_new() ++geis_filter_bag_new(void) + { + GeisFilterBag bag = calloc(1, sizeof(struct _GeisFilterBag)); + if (!bag) +diff --git a/libgeis/geis_filter.h b/libgeis/geis_filter.h +index 7b613bf..f825bb7 100644 +--- a/libgeis/geis_filter.h ++++ b/libgeis/geis_filter.h +@@ -42,7 +42,7 @@ typedef GeisFilter *GeisFilterIterator; + /** + * Creates a new filter bag, + */ +-GeisFilterBag geis_filter_bag_new(); ++GeisFilterBag geis_filter_bag_new(void); + + /** + * Destroys a filter bag. +diff --git a/libgeis/geis_filterable.c b/libgeis/geis_filterable.c +index 57bd4ac..5fb4b0c 100644 +--- a/libgeis/geis_filterable.c ++++ b/libgeis/geis_filterable.c +@@ -40,7 +40,7 @@ struct FilterableAttributeBag + * Constructs a new filterable attribute bag. + */ + FilterableAttributeBag +-geis_filterable_attribute_bag_new() ++geis_filterable_attribute_bag_new(void) + { + FilterableAttributeBag bag = calloc(1, sizeof(struct FilterableAttributeBag)); + if (!bag) +diff --git a/libgeis/geis_filterable.h b/libgeis/geis_filterable.h +index 6d400fc..63c563d 100644 +--- a/libgeis/geis_filterable.h ++++ b/libgeis/geis_filterable.h +@@ -86,7 +86,7 @@ geis_filterable_attribute_init(GeisFilterableAttribute fa, + * Constructs a new filterable attribute bag. + */ + FilterableAttributeBag +-geis_filterable_attribute_bag_new(); ++geis_filterable_attribute_bag_new(void); + + /** + * Destroys a filterable attribute bag. +diff --git a/libgeis/geis_frame.c b/libgeis/geis_frame.c +index ebe11a1..068d9aa 100644 +--- a/libgeis/geis_frame.c ++++ b/libgeis/geis_frame.c +@@ -57,7 +57,7 @@ struct _GeisFrameSet + * Creates a new, empty frame set. + */ + GeisFrameSet +-geis_frameset_new() ++geis_frameset_new(void) + { + GeisFrameSet frameset = calloc(1, sizeof(struct _GeisFrameSet)); + if (!frameset) +diff --git a/libgeis/geis_frame.h b/libgeis/geis_frame.h +index e0d1eb6..4a4b0ba 100644 +--- a/libgeis/geis_frame.h ++++ b/libgeis/geis_frame.h +@@ -32,7 +32,7 @@ typedef struct _GeisFrameSet *GeisFrameSet; + /** + * Creates a new, empty frame set. + */ +-GeisFrameSet geis_frameset_new(); ++GeisFrameSet geis_frameset_new(void); + + /** + * Destroys a frame set and all framees contained in it. +diff --git a/libgeis/geis_group.c b/libgeis/geis_group.c +index 0829bd4..4c51a39 100644 +--- a/libgeis/geis_group.c ++++ b/libgeis/geis_group.c +@@ -42,7 +42,7 @@ struct _GeisGroupSet + * Creates a new, empty group set. + */ + GeisGroupSet +-geis_groupset_new() ++geis_groupset_new(void) + { + GeisGroupSet groupset = calloc(1, sizeof(struct _GeisGroupSet)); + if (!groupset) +diff --git a/libgeis/geis_group.h b/libgeis/geis_group.h +index 76e0efc..c44ce62 100644 +--- a/libgeis/geis_group.h ++++ b/libgeis/geis_group.h +@@ -31,7 +31,7 @@ + /** + * Creates a new, empty group set. + */ +-GeisGroupSet geis_groupset_new(); ++GeisGroupSet geis_groupset_new(void); + + /** + * Destroys a group set and all groups contained in it. +diff --git a/libgeis/geis_region.c b/libgeis/geis_region.c +index fc8cc1e..18181cb 100644 +--- a/libgeis/geis_region.c ++++ b/libgeis/geis_region.c +@@ -52,7 +52,7 @@ static const int region_bag_growth_constant = 2; + * Constructs a region bag. + */ + GeisRegionBag +-geis_region_bag_new() ++geis_region_bag_new(void) + { + GeisRegionBag bag = calloc(1, sizeof(struct _GeisRegionBag)); + if (!bag) +diff --git a/libgeis/geis_region.h b/libgeis/geis_region.h +index 53a52b8..18d908f 100644 +--- a/libgeis/geis_region.h ++++ b/libgeis/geis_region.h +@@ -49,7 +49,7 @@ typedef struct _GeisRegionBag *GeisRegionBag; + /** + * Creates a new region bag. + */ +-GeisRegionBag geis_region_bag_new(); ++GeisRegionBag geis_region_bag_new(void); + + /** + * Destroys a region bag. +diff --git a/libgeis/geis_touch.c b/libgeis/geis_touch.c +index 74d1b3e..be0f1a7 100644 +--- a/libgeis/geis_touch.c ++++ b/libgeis/geis_touch.c +@@ -43,7 +43,7 @@ struct _GeisTouchSet + * Creates a new, empty touch set. + */ + GeisTouchSet +-geis_touchset_new() ++geis_touchset_new(void) + { + GeisTouchSet touchset = calloc(1, sizeof(struct _GeisTouchSet)); + if (!touchset) +diff --git a/libgeis/geis_touch.h b/libgeis/geis_touch.h +index 62af610..b64c755 100644 +--- a/libgeis/geis_touch.h ++++ b/libgeis/geis_touch.h +@@ -30,7 +30,7 @@ + /** + * Creates a new, empty touch set. + */ +-GeisTouchSet geis_touchset_new(); ++GeisTouchSet geis_touchset_new(void); + + /** + * Destroys a touch set and all touches contained in it. +diff --git a/libgeis/server/geis_dbus_client_proxy.c b/libgeis/server/geis_dbus_client_proxy.c +index 3f1af47..65f229b 100644 +--- a/libgeis/server/geis_dbus_client_proxy.c ++++ b/libgeis/server/geis_dbus_client_proxy.c +@@ -52,7 +52,7 @@ struct GeisDBusClientProxy + * failure. + */ + GeisDBusClientProxy +-_client_proxy_allocate() ++_client_proxy_allocate(void) + { + GeisDBusClientProxy proxy = calloc(1, sizeof(struct GeisDBusClientProxy)); + return proxy; +diff --git a/libgeis/server/geis_dbus_proxy_box.c b/libgeis/server/geis_dbus_proxy_box.c +index 4c7752a..f129bc3 100644 +--- a/libgeis/server/geis_dbus_proxy_box.c ++++ b/libgeis/server/geis_dbus_proxy_box.c +@@ -49,7 +49,7 @@ struct GeisDBusProxyBox + * Constructs a %GeisDBusProxyBox. + */ + GeisDBusProxyBox +-geis_dbus_proxy_box_new() ++geis_dbus_proxy_box_new(void) + { + GeisDBusProxyBox box = calloc(1, sizeof(struct GeisDBusProxyBox)); + if (!box) +diff --git a/libgeis/server/geis_dbus_proxy_box.h b/libgeis/server/geis_dbus_proxy_box.h +index d8a70f5..47e84b7 100644 +--- a/libgeis/server/geis_dbus_proxy_box.h ++++ b/libgeis/server/geis_dbus_proxy_box.h +@@ -47,7 +47,7 @@ typedef struct GeisDBusProxyBoxNode *GeisDBusProxyBoxIterator; + * @returns a valid %GeisDBusProxyBox or NULL on failure. + */ + GeisDBusProxyBox +-geis_dbus_proxy_box_new(); ++geis_dbus_proxy_box_new(void); + + /** + * Destroys a %GeisDBusProxyBox. +diff --git a/libs/geis-dbus/geis_dbus_dispatcher.c b/libs/geis-dbus/geis_dbus_dispatcher.c +index 10c4134..d8a3f9d 100644 +--- a/libs/geis-dbus/geis_dbus_dispatcher.c ++++ b/libs/geis-dbus/geis_dbus_dispatcher.c +@@ -82,7 +82,7 @@ struct GeisDBusDispatcher + * assumption that if you're creating a bag you're going to use it. + */ + static GeisDBusWatchBag +-_geis_dbus_watch_bag_new() ++_geis_dbus_watch_bag_new(void) + { + GeisDBusWatchBag bag = calloc(1, sizeof(struct GeisDBusWatchBag)); + if (!bag) +diff --git a/libs/geis-util/geis_logging.c b/libs/geis-util/geis_logging.c +index a02077b..030a591 100644 +--- a/libs/geis-util/geis_logging.c ++++ b/libs/geis-util/geis_logging.c +@@ -31,7 +31,7 @@ static const char *error_marker = "error"; + + + static int +-reporting_level() ++reporting_level(void) + { + char *level = getenv("GEIS_DEBUG"); + if (level) +diff --git a/testsuite/geis1/check_gesture_attrs.c b/testsuite/geis1/check_gesture_attrs.c +index 2228d2f..d990c7c 100644 +--- a/testsuite/geis1/check_gesture_attrs.c ++++ b/testsuite/geis1/check_gesture_attrs.c +@@ -169,7 +169,7 @@ END_TEST + + + Suite * +-geis1_gesture_attrs_new() ++geis1_gesture_attrs_new(void) + { + Suite *s = suite_create("geis1_gesture_attrs"); + TCase *test; +diff --git a/testsuite/geis1/check_gesture_types.c b/testsuite/geis1/check_gesture_types.c +index 3492062..980f8fb 100644 +--- a/testsuite/geis1/check_gesture_types.c ++++ b/testsuite/geis1/check_gesture_types.c +@@ -62,7 +62,7 @@ START_TEST(gesture_types) + END_TEST + + Suite * +-geis1_gesture_types_new() ++geis1_gesture_types_new(void) + { + Suite *s = suite_create("geis1_gesture_types"); + TCase *test; +diff --git a/testsuite/geis1/check_instance.c b/testsuite/geis1/check_instance.c +index ac897ab..584abfd 100644 +--- a/testsuite/geis1/check_instance.c ++++ b/testsuite/geis1/check_instance.c +@@ -44,7 +44,7 @@ END_TEST + + + Suite * +-geis1_instance_suite_new() ++geis1_instance_suite_new(void) + { + TCase *create; + Suite *s = suite_create("geis1_instance_suite"); +diff --git a/testsuite/geis1/check_subscription.c b/testsuite/geis1/check_subscription.c +index 0797337..e69c332 100644 +--- a/testsuite/geis1/check_subscription.c ++++ b/testsuite/geis1/check_subscription.c +@@ -146,7 +146,7 @@ END_TEST + + + Suite * +-geis1_subscription_new() ++geis1_subscription_new(void) + { + Suite *s = suite_create("geis1_subscription"); + TCase *test; +diff --git a/testsuite/geis2/check_attr.c b/testsuite/geis2/check_attr.c +index 9e01219..58c8ebc 100644 +--- a/testsuite/geis2/check_attr.c ++++ b/testsuite/geis2/check_attr.c +@@ -42,7 +42,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_attr_suite_new() ++geis2_attr_suite_new(void) + { + Suite *s = suite_create("geis2_attr"); + +diff --git a/testsuite/geis2/check_class.c b/testsuite/geis2/check_class.c +index ca7accd..b60d827 100644 +--- a/testsuite/geis2/check_class.c ++++ b/testsuite/geis2/check_class.c +@@ -92,7 +92,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_gesture_class_suite_new() ++geis2_gesture_class_suite_new(void) + { + TCase *gesture_class; + TCase *usage; +diff --git a/testsuite/geis2/check_config.c b/testsuite/geis2/check_config.c +index a9fc9c1..03b3137 100644 +--- a/testsuite/geis2/check_config.c ++++ b/testsuite/geis2/check_config.c +@@ -48,7 +48,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_config_suite_new() ++geis2_config_suite_new(void) + { + Suite *s = suite_create("geis2_configuration"); + +diff --git a/testsuite/geis2/check_device.c b/testsuite/geis2/check_device.c +index 8b3b7be..9583cb5 100644 +--- a/testsuite/geis2/check_device.c ++++ b/testsuite/geis2/check_device.c +@@ -99,7 +99,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_device_suite_new() ++geis2_device_suite_new(void) + { + TCase *device; + TCase *usage; +diff --git a/testsuite/geis2/check_error_codes.c b/testsuite/geis2/check_error_codes.c +index 9c7508d..57e7fc7 100644 +--- a/testsuite/geis2/check_error_codes.c ++++ b/testsuite/geis2/check_error_codes.c +@@ -20,7 +20,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_error_codes_suite_new() ++geis2_error_codes_suite_new(void) + { + Suite *s = suite_create("geis2_error_codes"); + +diff --git a/testsuite/geis2/check_event.c b/testsuite/geis2/check_event.c +index 8ecda1d..c752a30 100644 +--- a/testsuite/geis2/check_event.c ++++ b/testsuite/geis2/check_event.c +@@ -43,7 +43,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_event_suite_new() ++geis2_event_suite_new(void) + { + Suite *s = suite_create("geis2_event"); + +diff --git a/testsuite/geis2/check_filter.c b/testsuite/geis2/check_filter.c +index 3272a2a..afa23e5 100644 +--- a/testsuite/geis2/check_filter.c ++++ b/testsuite/geis2/check_filter.c +@@ -67,7 +67,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_filter_suite_new() ++geis2_filter_suite_new(void) + { + TCase *filter; + TCase *usage; +diff --git a/testsuite/geis2/check_frame.c b/testsuite/geis2/check_frame.c +index dce6faf..3ea3db0 100644 +--- a/testsuite/geis2/check_frame.c ++++ b/testsuite/geis2/check_frame.c +@@ -172,7 +172,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_gesture_frame_suite_new() ++geis2_gesture_frame_suite_new(void) + { + Suite *s = suite_create("geis2_gesture_frame"); + TCase *gesture_frame; +diff --git a/testsuite/geis2/check_geis_new.c b/testsuite/geis2/check_geis_new.c +index 1fb8de2..36cd3e9 100644 +--- a/testsuite/geis2/check_geis_new.c ++++ b/testsuite/geis2/check_geis_new.c +@@ -32,7 +32,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_geis_new_suite_new() ++geis2_geis_new_suite_new(void) + { + Suite *s = suite_create("geis2_geis_init"); + +diff --git a/testsuite/geis2/check_general_types.c b/testsuite/geis2/check_general_types.c +index 79e29bb..0f463d4 100644 +--- a/testsuite/geis2/check_general_types.c ++++ b/testsuite/geis2/check_general_types.c +@@ -20,7 +20,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_general_types_suite_new() ++geis2_general_types_suite_new(void) + { + Suite *s = suite_create("geis2_general_types"); + TCase *create; +diff --git a/testsuite/geis2/check_region.c b/testsuite/geis2/check_region.c +index 3e64e0c..606350a 100644 +--- a/testsuite/geis2/check_region.c ++++ b/testsuite/geis2/check_region.c +@@ -48,7 +48,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_region_suite_new() ++geis2_region_suite_new(void) + { + Suite *s = suite_create("geis2_region"); + TCase *creation; +diff --git a/testsuite/geis2/check_subscription.c b/testsuite/geis2/check_subscription.c +index a45c4ad..17a6779 100644 +--- a/testsuite/geis2/check_subscription.c ++++ b/testsuite/geis2/check_subscription.c +@@ -161,7 +161,7 @@ END_TEST + + /* boilerplate */ + Suite * +-geis2_subscription_suite_new() ++geis2_subscription_suite_new(void) + { + TCase *create; + TCase *usage; +diff --git a/tools/geis-server/geis-server.c b/tools/geis-server/geis-server.c +index 97c8b99..6600d8f 100644 +--- a/tools/geis-server/geis-server.c ++++ b/tools/geis-server/geis-server.c +@@ -23,7 +23,7 @@ + + + int +-main() ++main(void) + { + GeisStatus status; + +-- +2.37.3 +
meta-oe/recipes-support/canonical-multitouch/geis_2.2.17.bb +1 -0
@@ -22,6 +22,7 @@ DEPENDS += "grail dbus-glib python3 virtual/libx11 libxext libxi libxcb dbus fra SRC_URI = "https://launchpad.net/${BPN}/trunk/${PV}/+download/${BPN}-${PV}.tar.xz \ file://fix-indentation-for-gcc6.patch \ file://0001-libgeis-Compare-the-first-character-of-string-to-nul.patch \ + file://0001-provide-function-declaration-with-prototypes.patch \ " UPSTREAM_CHECK_URI = "https://launchpad.net/geis/trunk"
Signature · 1 line
2.37.3
PATCH 39/63 libgxim: Enable debug mode
In reply to Khem RajThis helps compile because it uses gdk_x11_atom_to_xatom_for_display()
in libgxim/gximcore.c unconditionally but guards use of gdk/gdkx.h via GNOME_ENABLE_DEBUG
--- meta-oe/recipes-extended/libgxim/libgxim_0.5.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/libgxim/libgxim_0.5.0.bb +1 -1
@@ -23,7 +23,7 @@ LICENSE = "LGPL-2.0-or-later" LIC_FILES_CHKSUM = "\ file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1" -EXTRA_OECONF = " --disable-static --disable-rebuilds --enable-compile-warnings=minimum" +EXTRA_OECONF = "--enable-debug --disable-static --disable-rebuilds --enable-compile-warnings=minimum" DEPENDS += "gtk+ glib-2.0 glib-2.0-native ruby-native intltool-native gnome-common-native" inherit features_check autotools pkgconfig gettext
Signature · 1 line
2.37.3
PATCH 40/63 hplip: Upgrade to 3.22.6
In reply to Khem RajAdd fix to remove python2 need.
Add fixes to build with clang+musl
---
...tils-Include-string.h-for-strcasestr.patch | 44 ++++++
...or-only-when-DISBALE_IMAGEPROCESSOR_.patch | 32 +++++
....c-Define-column-to-be-int-explcitly.patch | 21 +++
...fine-missing-prototype-for-functions.patch | 53 +++++++
...-Add-printf-format-to-snprintf-calls.patch | 62 +++++++++
...-for-missing-Python3-transition-of-t.patch | 130 ++++++++++++++++++
.../hplip/999-remove-lImageProcessor.patch | 69 ----------
.../hplip/hplip/configure.patch | 7 +-
.../{hplip_3.19.12.bb => hplip_3.22.6.bb} | 12 +-
9 files changed, 354 insertions(+), 76 deletions(-)
create mode 100644 meta-oe/recipes-extended/hplip/hplip/0001-common-utils-Include-string.h-for-strcasestr.patch
create mode 100644 meta-oe/recipes-extended/hplip/hplip/0002-Add-ImageProcessor-only-when-DISBALE_IMAGEPROCESSOR_.patch
create mode 100644 meta-oe/recipes-extended/hplip/hplip/0003-pserror.c-Define-column-to-be-int-explcitly.patch
create mode 100644 meta-oe/recipes-extended/hplip/hplip/0004-Define-missing-prototype-for-functions.patch
create mode 100644 meta-oe/recipes-extended/hplip/hplip/0005-hp_ipp.c-Add-printf-format-to-snprintf-calls.patch
create mode 100644 meta-oe/recipes-extended/hplip/hplip/0006-Workaround-patch-for-missing-Python3-transition-of-t.patch
delete mode 100644 meta-oe/recipes-extended/hplip/hplip/999-remove-lImageProcessor.patch
rename meta-oe/recipes-extended/hplip/{hplip_3.19.12.bb => hplip_3.22.6.bb} (80%)meta-oe/recipes-extended/hplip/hplip/0001-common-utils-Include-string.h-for-strcasestr.patch new file +44 -0
@@ -0,0 +1,44 @@ +From 20984c73bea8c3df00f297176edd4f6d47c31b55 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 17:49:20 -0700 +Subject: [PATCH 1/4] common/utils: Include string.h for strcasestr + +Also define _GNU_SOURCE for the same + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + common/utils.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/common/utils.c ++++ b/common/utils.c +@@ -1,9 +1,11 @@ ++#define _GNU_SOURCE + #include "utils.h" + #include "string.h" + #include <dlfcn.h> + #include <sys/stat.h> + #include <errno.h> + #include <stdlib.h> ++#include <string.h> /* strcasestr */ + + extern int errno; + +--- a/protocol/hp_ipp.c ++++ b/protocol/hp_ipp.c +@@ -18,12 +18,13 @@ Boston, MA 02110-1301, USA. + + \******************************************************************************/ + +- ++#define _GNU_SOURCE + #include <cups/cups.h> + #include <cups/language.h> + #include <cups/ppd.h> + #include <syslog.h> + #include <stdarg.h> ++#include <string.h> /* strcasecmp */ + #include <sys/types.h> + #include <pwd.h> + #include <sys/stat.h>
meta-oe/recipes-extended/hplip/hplip/0002-Add-ImageProcessor-only-when-DISBALE_IMAGEPROCESSOR_.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 3d53d02af7c45763eb33f7bbe5f9e389fbcb7e21 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 17:55:48 -0700 +Subject: [PATCH 2/4] Add ImageProcessor only when DISBALE_IMAGEPROCESSOR_BUILD + is not set + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + Makefile.am | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 5f75759..73421b1 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -597,7 +597,11 @@ hpcups_SOURCES = prnt/hpcups/HPCupsFilter.cpp prnt/hpcups/HPCupsFilter.h prnt/hp + prnt/hpcups/ImageProcessor.h + + hpcups_CXXFLAGS = $(APDK_ENDIAN_FLAG) $(DBUS_CFLAGS) +-hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lImageProcessor -lcups -lcupsimage -lz $(DBUS_LIBS) ++hpcups_LDADD = -L./prnt/hpcups/ -ljpeg -ldl -lcups -lcupsimage -lz $(DBUS_LIBS) ++if !DISBALE_IMAGEPROCESSOR_BUILD ++hpcups_LDADD += "-lImageProcessor" ++endif #DISABLE_IMAGEPROCESSOR ++ + #else + #hpcupsdir = $(cupsfilterdir) + #hpcups_PROGRAMS = hpcups +-- +2.37.3 +
meta-oe/recipes-extended/hplip/hplip/0003-pserror.c-Define-column-to-be-int-explcitly.patch new file +21 -0
@@ -0,0 +1,21 @@ +From a27d6264671e7201b5d78bcc9200e7d946429979 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 17:57:53 -0700 +Subject: [PATCH 3/4] pserror.c: Define column to be int explcitly + +Signed-off-by: Khem Raj <[email protected]> +--- + prnt/hpps/pserror.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/prnt/hpps/pserror.c ++++ b/prnt/hpps/pserror.c +@@ -24,7 +24,7 @@ extern char *program ; /* Defined by mai + void message(int flags, char *format, ...) + { + va_list args ; +- static column = 0 ; /* current screen column for message wrap */ ++ static int column = 0 ; /* current screen column for message wrap */ + char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */ + char *bufptr = msgbuf ; /* message buffer pointer */ +
meta-oe/recipes-extended/hplip/hplip/0004-Define-missing-prototype-for-functions.patch new file +53 -0
53 lines not on this page · raw message
meta-oe/recipes-extended/hplip/hplip/0005-hp_ipp.c-Add-printf-format-to-snprintf-calls.patch new file +62 -0
62 lines not on this page · raw message
meta-oe/recipes-extended/hplip/hplip/0006-Workaround-patch-for-missing-Python3-transition-of-t.patch new file +130 -0
130 lines not on this page · raw message
meta-oe/recipes-extended/hplip/hplip/999-remove-lImageProcessor.patch deleted +0 -69
69 lines not on this page · raw message
meta-oe/recipes-extended/hplip/hplip/configure.patch +3 -4
@@ -1,10 +1,9 @@ --- a/configure.in +++ b/configure.in -@@ -27,8 +27,7 @@ +@@ -30,7 +30,7 @@ + AC_INIT([HP Linux Imaging and Printing], [3.22.6], [3.22.6], [hplip]) - #AC_PREREQ(2.59) - AC_INIT([HP Linux Imaging and Printing], [3.19.12], [3.19.12], [hplip]) --#AM_INIT_AUTOMAKE([1.9 foreign]) + #AM_INIT_AUTOMAKE([1.9 foreign]) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE([foreign]) AC_DISABLE_STATIC
meta-oe/recipes-extended/hplip/hplip_3.22.6.bb renamed from meta-oe/recipes-extended/hplip/hplip_3.19.12.bb +9 -3
@@ -5,14 +5,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=20f2c819499cc2063e9a7b07b408815c" SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \ file://configure.patch \ file://fix-libusb-paths.patch \ - file://999-remove-lImageProcessor.patch \ file://600-fix.patch \ file://030-replace_unsafe_memcpy_with_memmove.patch \ file://050-fix-glibcisms.patch \ file://hplip-3.19.6-fix-return.patch \ + file://0001-common-utils-Include-string.h-for-strcasestr.patch \ + file://0002-Add-ImageProcessor-only-when-DISBALE_IMAGEPROCESSOR_.patch \ + file://0003-pserror.c-Define-column-to-be-int-explcitly.patch \ + file://0004-Define-missing-prototype-for-functions.patch \ + file://0005-hp_ipp.c-Add-printf-format-to-snprintf-calls.patch \ + file://0006-Workaround-patch-for-missing-Python3-transition-of-t.patch \ " -SRC_URI[md5sum] = "d72bc77d791c150c2c22b84e9553bab3" -SRC_URI[sha256sum] = "b7f398502fb659e0de8e54976237e3c6a64fec0b3c36054a515876f7b006b255" +SRC_URI[sha256sum] = "27ed0d492febb0b47c656234820d3ce573b24ff5b62e3bf4b2c47f82868d6bb4" DEPENDS += "cups python3 libusb"
@@ -25,6 +29,7 @@ CFLAGS += "-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}" EXTRA_OECONF += "\ LIBUSBINCLUDEROOT=${STAGING_INCDIR} \ + --enable-cups-drv-install \ --enable-cups-ppd-install \ --disable-network-build \ --disable-doc-build \
@@ -39,6 +44,7 @@ EXTRA_OECONF += "\ --enable-foomatic-drv-install \ --disable-foomatic-ppd-install \ --disable-foomatic-rip-hplip-install \ + --disable-imageProcessor_build \ --with-cupsbackenddir=${libexecdir}/cups/backend \ --with-cupsfilterdir=${libexecdir}/cups/filter \ "
Signature · 1 line
2.37.3
PATCH 41/63 scsirastools: Pass -D_LARGEFILE64_SOURCE via CFLAGS
In reply to Khem RajIt uses lseek64 which is enabled only with this macro
--- meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb +1 -2
@@ -20,8 +20,7 @@ SRC_URI[sha256sum] = "e7b997e75decb06a650c42c35cd63d0c94c34e39cf133c723337b0eeab inherit autotools update-rc.d # mdadm Makefile has CC set to gcc, hence override CC to ${CC} -EXTRA_OEMAKE += "CC='${CC}' sbindir=${base_sbindir}" - +EXTRA_OEMAKE += "CC='${CC}' CFLAGS='${CFLAGS} -D_LARGEFILE64_SOURCE=1' sbindir=${base_sbindir}" do_configure:append() { oe_runmake -C mdadm.d mdadm-1.3.0
Signature · 1 line
2.37.3
PATCH 42/63 con2fbmap: Include string.h for strerror
In reply to Khem Raj--- ...bmap-Add-missing-include-on-string.h.patch | 28 +++++++++++++++++++ .../recipes-bsp/con2fbmap/con2fbmap_git.bb | 4 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-bsp/con2fbmap/con2fbmap/0001-con2fbmap-Add-missing-include-on-string.h.patch
meta-oe/recipes-bsp/con2fbmap/con2fbmap/0001-con2fbmap-Add-missing-include-on-string.h.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 0a948d8d91b789e9c9b60136fada75b1d464af63 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 18:31:27 -0700 +Subject: [PATCH] con2fbmap: Add missing include on string.h + +strerror() is from string.h therefore include it to fix -Wimplicit-function-declaration +warnings + +Upstream-Status: Submitted [https://gitlab.com/pibox/con2fbmap/-/merge_requests/1] +Signed-off-by: Khem Raj <[email protected]> +--- + src/con2fbmap.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/con2fbmap.c b/src/con2fbmap.c +index 7831931..7a2e870 100644 +--- a/src/con2fbmap.c ++++ b/src/con2fbmap.c +@@ -1,5 +1,6 @@ + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> /* for strerror */ + #include <unistd.h> + #include <fcntl.h> + #include <sys/ioctl.h> +-- +2.37.3 +
meta-oe/recipes-bsp/con2fbmap/con2fbmap_git.bb +3 -1
@@ -9,7 +9,9 @@ SECTION = "console/utils" DEPENDS = "" SRCREV = "61ed2f28b294b1ebeb767df8cb5fcd391709c8e2" -SRC_URI = "git://gitlab.com/pibox/con2fbmap.git;protocol=https;branch=master" +SRC_URI = "git://gitlab.com/pibox/con2fbmap.git;protocol=https;branch=master \ + file://0001-con2fbmap-Add-missing-include-on-string.h.patch \ + " S = "${WORKDIR}/git"
Signature · 1 line
2.37.3
PATCH 43/63 directfb-examples: Fix pthread_t assignment type
In reply to Khem Raj--- ...-typecast-to-pthread_t-in-assignment.patch | 39 +++++++++++++++++++ .../directfb/directfb-examples_1.7.0.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 meta-oe/recipes-graphics/directfb/directfb-examples/0001-spacedream-Add-typecast-to-pthread_t-in-assignment.patch
meta-oe/recipes-graphics/directfb/directfb-examples/0001-spacedream-Add-typecast-to-pthread_t-in-assignment.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 85a30903ea3ba4232379bbbcb54960307d5a2da0 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 18:49:03 -0700 +Subject: [PATCH] spacedream: Add typecast to pthread_t in assignment + +render_loop_thread is of type pthread_t, therefore -1 which is int can +not be assigned to it. Do the needed typecast conversion + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/spacedream/main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/spacedream/main.c b/src/spacedream/main.c +index 430800f..8e1887c 100644 +--- a/src/spacedream/main.c ++++ b/src/spacedream/main.c +@@ -205,7 +205,7 @@ void unload_stars() + int main( int argc, char *argv[] ) + { + int quit = 0; +- pthread_t render_loop_thread = -1; ++ pthread_t render_loop_thread = (pthread_t)-1; + + IDirectFBSurface *primary; + IDirectFBEventBuffer *buffer; +@@ -344,7 +344,7 @@ int main( int argc, char *argv[] ) + pthread_cancel( render_loop_thread ); + pthread_mutex_unlock( &render_start ); + pthread_join( render_loop_thread, NULL ); +- render_loop_thread = -1; ++ render_loop_thread = (pthread_t)-1; + + + unload_stars(); +-- +2.37.3 +
meta-oe/recipes-graphics/directfb/directfb-examples_1.7.0.bb +1 -0
@@ -9,6 +9,7 @@ LICENSE = "MIT" SRC_URI = " \ http://downloads.yoctoproject.org/mirror/sources/DirectFB-examples-${PV}.tar.gz \ file://configure.in-Fix-string-argument-syntax.patch \ + file://0001-spacedream-Add-typecast-to-pthread_t-in-assignment.patch \ " LIC_FILES_CHKSUM = "file://COPYING;md5=ecf6fd2b19915afc4da56043926ca18f"
Signature · 1 line
2.37.3
PATCH 44/63 uml-utilities: Add missing headers for exit and str+ functions
In reply to Khem Raj--- ...andard-headers-for-str-and-exit-APIs.patch | 64 +++++++++++++++++++ .../uml-utilities/uml-utilities_20040406.bb | 1 + 2 files changed, 65 insertions(+) create mode 100644 meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch
meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch new file +64 -0
@@ -0,0 +1,64 @@ +From a1c4716ceaed6333f8be01b5d4d971e64babcdd7 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 18:57:42 -0700 +Subject: [PATCH] Add missing standard headers for str* and exit APIs + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + jail/jail_uml | Bin 19120 -> 19120 bytes + jail/jail_uml.c | 1 + + port-helper/port-helper.c | 1 + + uml_router/port.c | 1 + + uml_router/uml_switch.c | 1 + + watchdog/uml_watchdog.c | 1 + + 6 files changed, 5 insertions(+) + +--- a/jail/jail_uml.c ++++ b/jail/jail_uml.c +@@ -1,5 +1,6 @@ + #include <stdio.h> + #include <unistd.h> ++#include <stdlib.h> /* for exit */ + #include <errno.h> + + static void Usage(void) +--- a/port-helper/port-helper.c ++++ b/port-helper/port-helper.c +@@ -12,6 +12,7 @@ for read and write, and the console is f + + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> /* memset */ + #include <signal.h> + #include <errno.h> + #include <unistd.h> +--- a/uml_router/port.c ++++ b/uml_router/port.c +@@ -1,5 +1,6 @@ + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> /* memcmp */ + #include <unistd.h> + #include <errno.h> + #include <sys/socket.h> +--- a/uml_router/uml_switch.c ++++ b/uml_router/uml_switch.c +@@ -5,6 +5,7 @@ + #include <stdio.h> + #include <errno.h> + #include <stdlib.h> ++#include <string.h> /* strcmp */ + #include <signal.h> + #include <fcntl.h> + #include <stdint.h> +--- a/watchdog/uml_watchdog.c ++++ b/watchdog/uml_watchdog.c +@@ -1,5 +1,6 @@ + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> /* strcmp */ + #include <unistd.h> + #include <signal.h> + #include <errno.h>
meta-oe/recipes-extended/uml-utilities/uml-utilities_20040406.bb +1 -0
@@ -7,6 +7,7 @@ SRC_URI = "http://downloads.sourceforge.net/project/user-mode-linux/tools/1/uml_ file://fix-ldflags.patch \ file://unstrip.patch \ file://0001-include-required-system-header-files-for-fd_set-and-.patch \ + file://0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch \ " SRC_URI[md5sum] = "2c1ccd9efacbfb39e42d482b89b2550a" SRC_URI[sha256sum] = "4f179b1db021ef15ac7e9b2eed57c525db127a754c574f591c367460cded9f41"
Signature · 1 line
2.37.3
PATCH 45/63 oprofile: Fix configure check for perf_events support
In reply to Khem Raj--- ...gure-Include-unistd.h-for-getpid-API.patch | 28 +++++++++++++++++++ .../recipes-kernel/oprofile/oprofile_1.4.0.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0001-configure-Include-unistd.h-for-getpid-API.patch
meta-oe/recipes-kernel/oprofile/oprofile/0001-configure-Include-unistd.h-for-getpid-API.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 46f0aadf80d5e28f587149b6e90c3ba005971f6e Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 19:22:17 -0700 +Subject: [PATCH] configure: Include unistd.h for getpid API + +This fixes the check for perf events support in configure + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index e4f4024..3384628 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -119,6 +119,7 @@ if test "$kernel_may_have_perf_events_support" = "yes"; then + #include <asm/unistd.h> + #include <sys/types.h> + #include <string.h> ++ #include <unistd.h> + ]], + [[struct perf_event_attr attr; + pid_t pid; +-- +2.37.3 +
meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb +1 -0
@@ -30,6 +30,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ file://0008-include-linux-limits.h-for-MAX_INPUT.patch \ file://0009-Prevent-running-check-tests-on-host-if-cross-compili.patch \ file://0010-oprofile-Determine-the-root-home-directory-dynamical.patch \ + file://0001-configure-Include-unistd.h-for-getpid-API.patch \ " SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412"
Signature · 1 line
2.37.3
PATCH 46/63 libmcrypt: Suppress implicit-int warnings as errors
In reply to Khem RajThis is needed for clang-15+
--- meta-oe/recipes-crypto/libmcrypt/libmcrypt_2.5.8.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-crypto/libmcrypt/libmcrypt_2.5.8.bb +2 -0
@@ -14,6 +14,8 @@ UPSTREAM_CHECK_REGEX = "Libmcrypt/(?P<pver>\d+(\.\d+)+)/" inherit autotools-brokensep gettext binconfig +CFLAGS += "-Wno-error=implicit-int" + do_configure() { install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
Signature · 1 line
2.37.3
PATCH 47/63 gtkperf: Define prototype for setup_appdata
In reply to Khem Raj--- ...c-Define-prototype-for-setup_appdata.patch | 27 +++++++++++++++++++ .../recipes-graphics/gtkperf/gtkperf_0.40.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta-oe/recipes-graphics/gtkperf/gtkperf/0001-main.c-Define-prototype-for-setup_appdata.patch
meta-oe/recipes-graphics/gtkperf/gtkperf/0001-main.c-Define-prototype-for-setup_appdata.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 6b5f695cb206cd8b3cbcbcd7713e52772e89306b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 20:47:32 -0700 +Subject: [PATCH] main.c: Define prototype for setup_appdata + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/main.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/main.c b/src/main.c +index c226799..b4ce6d1 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -18,6 +18,8 @@ + #include "callbacks.h" + #include "appdata.h" + ++void setup_appdata(AppData * appdata_in); ++ + int + main (int argc, char **argv) + { +-- +2.37.3 +
meta-oe/recipes-graphics/gtkperf/gtkperf_0.40.bb +1 -0
@@ -8,6 +8,7 @@ SRC_URI = "http://prdownloads.sourceforge.net/${BPN}/${BPN}_${PV}.tar.gz \ file://0001-Include-stdlib.h-for-exit-API.patch \ file://0002-timing.c-Fix-format-security-errors.patch \ file://gettext.patch \ + file://0001-main.c-Define-prototype-for-setup_appdata.patch \ " SRC_URI[md5sum] = "4331dde4bb83865e15482885fcb0cc53"
Signature · 1 line
2.37.3
PATCH 49/63 enscript: Include string.h form str* function prototypes
In reply to Khem Raj--- ...tring.h-for-strcmp-stcncmp-functions.patch | 27 +++++++++++++++++++ .../enscript/enscript_1.6.6.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta-oe/recipes-extended/enscript/enscript/0001-getopt-Include-string.h-for-strcmp-stcncmp-functions.patch
meta-oe/recipes-extended/enscript/enscript/0001-getopt-Include-string.h-for-strcmp-stcncmp-functions.patch new file +27 -0
@@ -0,0 +1,27 @@ +From faec0206611f8ea4ca6f70987866077ac8c3c6c1 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 2 Sep 2022 21:24:27 -0700 +Subject: [PATCH] getopt: Include string.h for strcmp/stcncmp functions + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + compat/getopt.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/compat/getopt.c b/compat/getopt.c +index 752f28a..9b984b4 100644 +--- a/compat/getopt.c ++++ b/compat/getopt.c +@@ -43,6 +43,7 @@ + #endif + + #include <stdio.h> ++#include <string.h> /* strcmp */ + + /* Comment out all this code if we are using the GNU C Library, and are not + actually compiling the library itself. This code is part of the GNU C +-- +2.37.3 +
meta-oe/recipes-extended/enscript/enscript_1.6.6.bb +1 -0
@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ file://enscript-autoconf.patch \ file://0001-Fix-builds-with-recent-gettext.patch \ + file://0001-getopt-Include-string.h-for-strcmp-stcncmp-functions.patch \ " inherit autotools gettext
Signature · 1 line
2.37.3
PATCH 50/63 glm: Disable clang specific warnings
In reply to Khem RajThis code should be fixed but for now lets disable the warnings as errors atleast, so it can compile with clang
--- meta-oe/recipes-graphics/glm/glm_0.9.9.8.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/glm/glm_0.9.9.8.bb +2 -0
@@ -22,6 +22,8 @@ S = "${WORKDIR}/git" inherit cmake +CXXFLAGS:append:toolchain-clang = " -Wno-error=invalid-utf8 -Wno-error=disabled-macro-expansion -Wno-error=reserved-identifier" + do_install() { install -d ${D}${includedir} ${D}${docdir}/glm ${D}${libdir}/pkgconfig ${D}${libdir}/cmake/glm cp -R --no-dereference --preserve=mode,links ${S}/glm ${D}${includedir}
Signature · 1 line
2.37.3
PATCH 51/63 mg: Upgrade to 20220614 release
In reply to Khem RajLicense-Change: update version string [1]
[1] https://github.com/hboetes/mg/commit/da1036f6e085f2d7edd4d4ab65d74de4d4d18c08
---
meta-oe/recipes-support/mg/{mg_20210609.bb => mg_20220614.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/mg/{mg_20210609.bb => mg_20220614.bb} (88%)meta-oe/recipes-support/mg/mg_20220614.bb renamed from meta-oe/recipes-support/mg/mg_20210609.bb +2 -2
@@ -1,11 +1,11 @@ SUMMARY = "A portable version of the mg maintained by the OpenBSD team" HOMEPAGE = "http://homepage.boetes.org/software/mg/" LICENSE = "PD" -LIC_FILES_CHKSUM = "file://version.c;md5=1895eb37bf6bd79cdc5c89d8166fabfb" +LIC_FILES_CHKSUM = "file://version.c;md5=43616508f42ab3fdb082c5f932bd2eb4" DEPENDS = "ncurses libbsd" SECTION = "console/editors" -SRCREV = "688f49cd67ab30dfa6482c74815e117cbf7af63a" +SRCREV = "ea58e622fad20622ac0b723d021baaaf5dc0eb49" SRC_URI = "git://github.com/hboetes/mg;branch=master;protocol=https \ file://0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch \ file://0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch \
Signature · 1 line
2.37.3
PATCH 53/63 ipmiutil: Add missing headers for protypes of free/malloc/atoi
In reply to Khem Raj--- ...lib.h-for-malloc-free-atoi-functions.patch | 26 +++++++++++++++++++ .../recipes-kernel/ipmiutil/ipmiutil_3.1.5.bb | 1 + 2 files changed, 27 insertions(+) create mode 100644 meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-ihpm-Include-stdlib.h-for-malloc-free-atoi-functions.patch
meta-oe/recipes-kernel/ipmiutil/ipmiutil/0001-ihpm-Include-stdlib.h-for-malloc-free-atoi-functions.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 097e108b81f2571c4c51871044adf409b6954649 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 3 Sep 2022 00:44:52 -0700 +Subject: [PATCH] ihpm: Include stdlib.h for malloc/free/atoi functions + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + util/ihpm.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/util/ihpm.c b/util/ihpm.c +index 740ab74..5ad9ef6 100644 +--- a/util/ihpm.c ++++ b/util/ihpm.c +@@ -68,6 +68,7 @@ typedef uint32_t socklen_t; + #endif + #include <stdio.h> + #include <stdarg.h> ++#include <stdlib.h> /* malloc/free/atoi */ + #include <string.h> + #include <time.h> + +-- +2.37.3 +
meta-oe/recipes-kernel/ipmiutil/ipmiutil_3.1.5.bb +1 -0
@@ -22,6 +22,7 @@ PARALLEL_MAKE = "" SRC_URI = "${SOURCEFORGE_MIRROR}/ipmiutil/ipmiutil-${PV}.tar.gz \ file://fix_systemd_path.patch \ file://0001-Prevent-access-times-from-changing-resulting-gzip-md.patch \ + file://0001-ihpm-Include-stdlib.h-for-malloc-free-atoi-functions.patch \ " SRC_URI[md5sum] = "292d6df25cad678bb27e5c8cdc6748f9" SRC_URI[sha256sum] = "58ccdbd5755d7dd72478756715af09e9c73330dfad2b91dbf03d2ac504b301a3"
Signature · 1 line
2.37.3
PATCH 54/63 cdrkit: Add missing header for function prototypes
In reply to Khem Raj--- .../cdrkit/cdrkit_1.1.11.bb | 1 + ...checksum.h-and-md5.h-for-function-pr.patch | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 meta-oe/recipes-multimedia/cdrkit/files/0001-genisoimage-Add-checksum.h-and-md5.h-for-function-pr.patch
meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb +1 -0
@@ -12,6 +12,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ file://0002-Do-not-use-rcmd-on-build-with-musl.patch \ file://0001-genisoimage-Add-missing-extern-definition.patch \ file://0001-add-new-option-eltorito-platform.patch \ + file://0001-genisoimage-Add-checksum.h-and-md5.h-for-function-pr.patch \ " SRC_URI:append:class-nativesdk = " \ file://0001-install-netscsid-to-bin-for-nativesdk.patch \
meta-oe/recipes-multimedia/cdrkit/files/0001-genisoimage-Add-checksum.h-and-md5.h-for-function-pr.patch new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.37.3
PATCH 55/63 fluentbit: Drop redundant patch
In reply to Khem RajInstead of applying one and then reverting it via another patch, its better to apply SRC_URI:remove on the original patch for x86 (32bit)
--- ...emove-unused-variable-in-mpi_mul_hlp.patch | 42 ------------------- .../fluentbit/fluentbit_1.9.7.bb | 2 +- 2 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 meta-oe/recipes-extended/fluentbit/fluentbit/0001-Revert-Remove-unused-variable-in-mpi_mul_hlp.patch
meta-oe/recipes-extended/fluentbit/fluentbit/0001-Revert-Remove-unused-variable-in-mpi_mul_hlp.patch deleted +0 -42
@@ -1,42 +0,0 @@ -From af6cefba8c2675f58b75f93785337ab23054568c Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Thu, 18 Aug 2022 23:35:23 -0700 -Subject: [PATCH] Revert Remove unused variable in mpi_mul_hlp() - -This reverts -https://github.com/Mbed-TLS/mbedtls/commit/e7f14a3090e6595eb3c8d821704ad9c90f6d3712 - -Which helps in compiling the x86 asm code. - -Upstream-Status: Pending - -Signed-off-by: Khem Raj <[email protected]> ---- - lib/mbedtls-2.28.0/library/bignum.c | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/lib/mbedtls-2.28.0/library/bignum.c b/lib/mbedtls-2.28.0/library/bignum.c -index 9c256ae..62e7f76 100644 ---- a/lib/mbedtls-2.28.0/library/bignum.c -+++ b/lib/mbedtls-2.28.0/library/bignum.c -@@ -1392,7 +1392,7 @@ void mpi_mul_hlp( size_t i, - mbedtls_mpi_uint *d, - mbedtls_mpi_uint b ) - { -- mbedtls_mpi_uint c = 0; -+ mbedtls_mpi_uint c = 0, t = 0; - - #if defined(MULADDC_HUIT) - for( ; i >= 8; i -= 8 ) -@@ -1443,6 +1443,8 @@ void mpi_mul_hlp( size_t i, - } - #endif /* MULADDC_HUIT */ - -+ t++; -+ - while( c != 0 ) - { - *d += c; c = ( *d < c ); d++; --- -2.37.2 -
meta-oe/recipes-extended/fluentbit/fluentbit_1.9.7.bb +1 -1
@@ -22,8 +22,8 @@ SRC_URI = "https://releases.fluentbit.io/1.9/source-${PV}.tar.gz;subdir=fluent-b file://0004-Use-correct-type-to-store-return-from-flb_kv_item_cr.patch \ file://0005-stackdriver-Fix-return-type-mismatch.patch \ file://0006-monkey-Fix-TLS-detection-testcase.patch \ - file://0001-Revert-Remove-unused-variable-in-mpi_mul_hlp.patch \ " +SRC_URI:remove:x86 = "file://0002-mbedtls-Remove-unused-variable.patch" SRC_URI:append:libc-musl = "\ file://0001-Use-posix-strerror_r-with-musl.patch \ file://0002-chunkio-Link-with-fts-library-with-musl.patch \
Signature · 1 line
2.37.3
PATCH 56/63 minifi-cpp: Disable gnu extention of strerror_r when using musl
In reply to Khem Raj--- meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb +5 -0
@@ -79,6 +79,11 @@ TARGET_CXXFLAGS:append:riscv64 = " -fpic" do_install[cleandirs] += "${WORKDIR}/minifi-install" PSEUDO_CONSIDER_PATHS .= ",${WORKDIR}/minifi-install" +do_configure:prepend:libc-musl() { + sed -i -e 's/-DHAVE_GLIBC_STRERROR_R=1/-DHAVE_GLIBC_STRERROR_R=0/' ${S}/CMakeLists.txt + sed -i -e 's/-DHAVE_POSIX_STRERROR_R=0/-DHAVE_POSIX_STRERROR_R=1/' ${S}/CMakeLists.txt +} + do_install() { DESTDIR='${WORKDIR}/minifi-install' cmake_runcmake_build --target ${OECMAKE_TARGET_INSTALL} MINIFI_BIN=${bindir}
Signature · 1 line
2.37.3
PATCH 57/63 augeas: Check for __GLIBC__ to use gnu extention for strerror_r
In reply to Khem RajMerge .bb and .inc
--- meta-oe/recipes-support/augeas/augeas.inc | 33 ------------------ ...-__GLIBC__-to-check-for-GNU-extentio.patch | 34 +++++++++++++++++++ .../recipes-support/augeas/augeas_1.12.0.bb | 34 ++++++++++++++++++- 3 files changed, 67 insertions(+), 34 deletions(-) delete mode 100644 meta-oe/recipes-support/augeas/augeas.inc create mode 100644 meta-oe/recipes-support/augeas/augeas/0001-src-internal-Use-__GLIBC__-to-check-for-GNU-extentio.patch
meta-oe/recipes-support/augeas/augeas.inc deleted +0 -33
@@ -1,33 +0,0 @@ -SUMMARY = "Augeas configuration API" -HOMEPAGE = "http://augeas.net/" -BUGTRACKER = "https://fedorahosted.org/augeas/report/1" - -LICENSE = "LGPL-2.1-or-later" -LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff" - -SRC_URI = "http://download.augeas.net/${BP}.tar.gz \ - file://sepbuildfix.patch \ - " - -DEPENDS = "readline libxml2" - -inherit autotools pkgconfig - -PACKAGES =+ "${PN}-lenses lib${BPN}" - -FILES:${PN}-lenses = "${datadir}/augeas/lenses" -FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}" - -RDEPENDS:lib${BPN} += "${PN}-lenses" -RRECOMMENDS:lib${BPN} += "${PN}" - -LEAD_SONAME = "libaugeas.so" - -do_install:append() { - rm -fr ${D}${datadir}/vim -} - -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}" -PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" - -EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"
meta-oe/recipes-support/augeas/augeas/0001-src-internal-Use-__GLIBC__-to-check-for-GNU-extentio.patch new file +34 -0
@@ -0,0 +1,34 @@ +From e5ccf769c2dc7283b56a597fffdb5dc1558e3ce8 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 3 Sep 2022 01:23:28 -0700 +Subject: [PATCH] src/internal: Use __GLIBC__ to check for GNU extention + implementation + +__USE_GNU is defined by _GNU_SOURCE and configure explicitly sets this +macro and it does have meaning on musl too, where it may have some level +of GNU compatibility but strerror_r is not one of them. Therefore we +have to check for libc implementation for this to be sure. + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +--- + src/internal.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/internal.c b/src/internal.c +index ef83b71..fb326fa 100644 +--- a/src/internal.c ++++ b/src/internal.c +@@ -431,7 +431,7 @@ char *cleanpath(char *path) { + + const char *xstrerror(int errnum, char *buf, size_t len) { + #ifdef HAVE_STRERROR_R +-# ifdef __USE_GNU ++# ifdef __GLIBC__ + /* Annoying linux specific API contract */ + return strerror_r(errnum, buf, len); + # else +-- +2.37.3 +
meta-oe/recipes-support/augeas/augeas_1.12.0.bb +33 -1
@@ -1,4 +1,36 @@ -require augeas.inc +SUMMARY = "Augeas configuration API" +HOMEPAGE = "http://augeas.net/" +BUGTRACKER = "https://fedorahosted.org/augeas/report/1" +LICENSE = "LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff" + +SRC_URI = "http://download.augeas.net/${BP}.tar.gz \ + file://sepbuildfix.patch \ + file://0001-src-internal-Use-__GLIBC__-to-check-for-GNU-extentio.patch \ + " SRC_URI[md5sum] = "74f1c7b8550f4e728486091f6b907175" SRC_URI[sha256sum] = "321942c9cc32185e2e9cb72d0a70eea106635b50269075aca6714e3ec282cb87" + +DEPENDS = "readline libxml2" + +inherit autotools pkgconfig + +PACKAGES =+ "${PN}-lenses lib${BPN}" + +FILES:${PN}-lenses = "${datadir}/augeas/lenses" +FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}" + +RDEPENDS:lib${BPN} += "${PN}-lenses" +RRECOMMENDS:lib${BPN} += "${PN}" + +LEAD_SONAME = "libaugeas.so" + +do_install:append() { + rm -fr ${D}${datadir}/vim +} + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}" +PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" + +EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"
Signature · 1 line
2.37.3
PATCH 58/63 nlohmann-fifo: Disable cpp11 shuffle with clang/libc++
In reply to Khem Rajit does not compile with clang15 based libc++
--- meta-oe/recipes-devtools/nlohmann-fifo/nlohmann-fifo_git.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-oe/recipes-devtools/nlohmann-fifo/nlohmann-fifo_git.bb +3 -0
@@ -20,6 +20,9 @@ RDEPENDS:${PN}-dev = "" BBCLASSEXTEND = "native nativesdk" +# See https://github.com/SOCI/soci/issues/984 +CXXFLAGS:append:toolchain-clang:runtime-llvm = " -DCATCH_CONFIG_CPP11_NO_SHUFFLE" + do_install() { install -d ${D}${includedir} install -m 0644 ${S}/src/fifo_map.hpp ${D}${includedir}
Signature · 1 line
2.37.3
PATCH 60/63 autofs: Backport innetgr and strerror_r musl patches
In reply to Khem RajFixes build with musl/x86
--- ...dd-autofs_strerror_r-helper-for-musl.patch | 54 +++++++++ ...8-handle-innetgr-not-present-in-musl.patch | 106 ++++++++++++++++++ .../recipes-daemons/autofs/autofs_5.1.8.bb | 2 + 3 files changed, 162 insertions(+) create mode 100644 meta-networking/recipes-daemons/autofs/autofs/0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch
meta-networking/recipes-daemons/autofs/autofs/0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch new file +54 -0
@@ -0,0 +1,54 @@ +From 88f991b0ebb6fb8fcaad3d0eb8fb51a7439d053e Mon Sep 17 00:00:00 2001 +From: Fabian Groffen <[email protected]> +Date: Wed, 2 Feb 2022 09:27:13 +0800 +Subject: [PATCH 1/2] autofs-5.1.8 - add autofs_strerror_r() helper for musl + +If using musl libc the XSI-compliant variant strerror_r() which returns +an integer instead of a pointer so add a helper function to handle this +case. + +Signed-off-by: Fabian Groffen <[email protected]> +Signed-off-by: Ian Kent <[email protected]> +Signed-off-by: Khem Raj <[email protected]> +--- + include/automount.h | 5 +++++ + lib/log.c | 10 ++++++++++ + 2 files changed, 15 insertions(+) + +diff --git a/include/automount.h b/include/automount.h +index 8cd8b3a..f759e59 100644 +--- a/include/automount.h ++++ b/include/automount.h +@@ -51,6 +51,11 @@ + # endif + #endif + ++#ifndef __GLIBC__ ++# define strerror_r(N,B,S) autofs_strerror_r(N,B,S) ++char *autofs_strerror_r(int errnum, char *buf, size_t buflen); /* GNU */ ++#endif ++ + /* We MUST have the paths to mount(8) and umount(8) */ + #ifndef HAVE_MOUNT + #error Failed to locate mount(8)! +diff --git a/lib/log.c b/lib/log.c +index 39b1e3b..b99fa39 100644 +--- a/lib/log.c ++++ b/lib/log.c +@@ -368,3 +368,13 @@ pid_t log_pidinfo(struct autofs_point *ap, pid_t pid, char *label) { + + return ppid; + } ++ ++#ifndef __GLIBC__ ++# undef strerror_r ++char *autofs_strerror_r(int errnum, char *buf, size_t buflen) { ++ int s = strerror_r(errnum, buf, buflen); ++ if (s) ++ return NULL; ++ return buf; ++} ++#endif +-- +2.37.3 +
meta-networking/recipes-daemons/autofs/autofs/0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch new file +106 -0
106 lines not on this page · raw message
meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb +2 -0
@@ -27,6 +27,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \ file://0001-Bug-fix-for-pid_t-not-found-on-musl.patch \ file://0001-Define-__SWORD_TYPE-if-undefined.patch \ file://mount_conflict.patch \ + file://0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch \ + file://0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch \ " SRC_URI[sha256sum] = "0bd401c56f0eb1ca6251344c3a3d70bface3eccf9c67117cd184422c4cace30c"
Signature · 1 line
2.37.3
PATCH 61/63 linux-atm: Remove AC_CHECK_LIB for libresolv
In reply to Khem Rajlibatm uses res_search which is provided by libc now a days in both glibc and musl, we dont need to error out if libresolv is not found
--- ...for-symbol-from-libresolv-instead-of.patch | 28 +++++++++++++++++++ .../linux-atm/linux-atm_2.5.2.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/0001-configure-Check-for-symbol-from-libresolv-instead-of.patch
meta-networking/recipes-support/linux-atm/linux-atm/0001-configure-Check-for-symbol-from-libresolv-instead-of.patch new file +28 -0
@@ -0,0 +1,28 @@ +From a2a2e1b7a3f4f90e32912b5ba9b79e1a02275775 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 1 Sep 2022 11:17:13 -0700 +Subject: [PATCH] configure: Check for symbol from libresolv instead of main + +This checks will fail with modern autoconf and compilers + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + configure.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/configure.in ++++ b/configure.in +@@ -45,12 +45,7 @@ AC_CHECK_HEADER(linux/atmsap.h, , + ) + + dnl Check for libraries +-dnl libresolv is required +-AC_CHECK_LIB(resolv, main, , +- AC_MSG_ERROR([*** Unable to find libresolv!!!]) +-) + +-dnl We don't want libresolv everywhere, just with libatm + LIBS="" + + INCLUDES="-I\$(top_srcdir)/src/include"
meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb +1 -0
@@ -15,6 +15,7 @@ SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${P file://0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch \ file://0001-make-Add-PREFIX-knob.patch \ file://0001-include-string-h-from-memcpy-and-strcpy-function-pro.patch \ + file://0001-configure-Check-for-symbol-from-libresolv-instead-of.patch \ " SRC_URI:append:libc-musl = " file://musl-no-on_exit.patch"
Signature · 1 line
2.37.3
PATCH 62/63 hdf5: Upgrade to 1.13.2
In reply to Khem RajLicense-Update: Add attribution to Lawrence Livermore National Laboratory and the United States Department of Energy
Drop the Advertizing Clause from COPYING
Forward port patches
Drop 0001-cross-compiling-support.patch bring in qemu usermode to do runtime pieces of build
Delete cached source files, as they are no longer needed
Upgrade version info in python3-h5py as well to match the upgraded version number
--- .../files/0001-cmake-remove-build-flags.patch | 55 +- .../files/0001-cross-compiling-support.patch | 68 -- ...ffix-shared-from-shared-library-name.patch | 15 +- .../recipes-support/hdf5/files/H5Tinit-32.c | 975 ----------------- .../recipes-support/hdf5/files/H5Tinit-64.c | 991 ------------------ .../hdf5/files/H5lib_settings.c | 98 -- meta-oe/recipes-support/hdf5/hdf5_1.13.2.bb | 54 + meta-oe/recipes-support/hdf5/hdf5_1.8.21.bb | 59 -- .../python/python3-h5py_3.7.0.bb | 2 +- 9 files changed, 85 insertions(+), 2232 deletions(-) delete mode 100644 meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch delete mode 100755 meta-oe/recipes-support/hdf5/files/H5Tinit-32.c delete mode 100644 meta-oe/recipes-support/hdf5/files/H5Tinit-64.c delete mode 100644 meta-oe/recipes-support/hdf5/files/H5lib_settings.c create mode 100644 meta-oe/recipes-support/hdf5/hdf5_1.13.2.bb delete mode 100644 meta-oe/recipes-support/hdf5/hdf5_1.8.21.bb
meta-oe/recipes-support/hdf5/files/0001-cmake-remove-build-flags.patch +24 -31
@@ -13,53 +13,46 @@ Signed-off-by: Mingli Yu <[email protected]> config/cmake/libhdf5.settings.cmake.in | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) -diff --git a/config/cmake/libh5cc.in b/config/cmake/libh5cc.in -index f462d56..93c7137 100644 --- a/config/cmake/libh5cc.in +++ b/config/cmake/libh5cc.in -@@ -29,4 +29,4 @@ printf 'dir is %s\n' "$dir" - - export PKG_CONFIG_PATH=$dir/lib/pkgconfig - --@_PKG_CONFIG_COMPILER@ `pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@-@_PKG_CONFIG_VERSION@` $@ -+`pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@-@_PKG_CONFIG_VERSION@` $@ -diff --git a/config/cmake/libhdf5.settings.cmake.in b/config/cmake/libhdf5.settings.cmake.in -index c337dea..0ab9066 100644 +@@ -45,7 +45,7 @@ for arg in $@ ; do + exit $status + ;; + *) +- @_PKG_CONFIG_COMPILER@ $@ `pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@` ++ `pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@-@_PKG_CONFIG_VERSION@` $@ + status=$? + exit $status + ;; --- a/config/cmake/libhdf5.settings.cmake.in +++ b/config/cmake/libhdf5.settings.cmake.in -@@ -16,8 +16,8 @@ General Information: - Compiling Options: - ------------------ - Compilation Mode: @CMAKE_BUILD_TYPE@ @CMAKE_C_COMPILER_VERSION@ -- C Compiler: @CMAKE_C_COMPILER@ -- CFLAGS: @CMAKE_C_FLAGS@ -+ C Compiler: -+ CFLAGS: - H5_CFLAGS: @H5_CFLAGS@ - AM_CFLAGS: @AM_CFLAGS@ - CPPFLAGS: @CPPFLAGS@ -@@ -29,8 +29,8 @@ Compiling Options: - LDFLAGS: @CMAKE_SHARED_LINKER_FLAGS@ +@@ -27,14 +27,14 @@ Linking Options: + H5_LDFLAGS: @H5_LDFLAGS@ AM_LDFLAGS: @AM_LDFLAGS@ Extra libraries: @LINK_LIBS@ - Archiver: @CMAKE_AR@ - Ranlib: @CMAKE_RANLIB@ + Archiver: + Ranlib: - Debugged Packages: @DEBUG_PKG@ - API Tracing: @HDF5_ENABLE_TRACE@ -@@ -46,8 +46,8 @@ Languages: - @BUILD_FORTRAN_CONDITIONAL_TRUE@ Static Fortran Library: YES + Languages: + ---------- + C: YES +- C Compiler: @CMAKE_C_COMPILER@ @CMAKE_C_COMPILER_VERSION@ +- CPPFLAGS: @CPPFLAGS@ ++ C Compiler: ++ CPPFLAGS: + H5_CPPFLAGS: @H5_CPPFLAGS@ + AM_CPPFLAGS: @AM_CPPFLAGS@ + CFLAGS: @CMAKE_C_FLAGS@ +@@ -52,8 +52,8 @@ Languages: + @BUILD_FORTRAN_CONDITIONAL_TRUE@ Static Fortran Library: @H5_ENABLE_STATIC_LIB@ C++: @HDF5_BUILD_CPP_LIB@ -@BUILD_CXX_CONDITIONAL_TRUE@ C++ Compiler: @CMAKE_CXX_COMPILER@ @CMAKE_CXX_COMPILER_VERSION@ -@BUILD_CXX_CONDITIONAL_TRUE@ C++ Flags: @CMAKE_CXX_FLAGS@ +@BUILD_CXX_CONDITIONAL_TRUE@ C++ Compiler: +@BUILD_CXX_CONDITIONAL_TRUE@ C++ Flags: - @BUILD_CXX_CONDITIONAL_TRUE@ H5 C++ Flags: @H5_CXXFLAGS@ + @BUILD_CXX_CONDITIONAL_TRUE@ H5 C++ Flags: @HDF5_CMAKE_CXX_FLAGS@ @BUILD_CXX_CONDITIONAL_TRUE@ AM C++ Flags: @AM_CXXFLAGS@ @BUILD_CXX_CONDITIONAL_TRUE@ Shared C++ Library: @H5_ENABLE_SHARED_LIB@ --- -2.17.1 -
meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch deleted +0 -68
68 lines not on this page · raw message
meta-oe/recipes-support/hdf5/files/0002-Remove-suffix-shared-from-shared-library-name.patch +6 -9
@@ -10,20 +10,19 @@ Signed-off-by: Hongxu Jia <[email protected]> CMakeLists.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 9af14d5..05100e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -153,18 +153,18 @@ set (HDF5_F90_TEST_LIB_TARGET "${HDF5_F90_TEST_LIB_CORENAME}-static") - set (HDF5_F90_C_TEST_LIB_TARGET "${HDF5_F90_C_TEST_LIB_CORENAME}-static") - set (HDF5_HL_F90_LIB_TARGET "${HDF5_HL_F90_LIB_CORENAME}-static") - set (HDF5_HL_F90_C_LIB_TARGET "${HDF5_HL_F90_C_LIB_CORENAME}-static") +@@ -196,19 +196,19 @@ set (HDF5_HL_F90_C_LIB_TARGET "${HDF + set (HDF5_JAVA_JNI_LIB_TARGET "${HDF5_JAVA_JNI_LIB_CORENAME}") + set (HDF5_JAVA_HDF5_LIB_TARGET "${HDF5_JAVA_HDF5_LIB_CORENAME}") + set (HDF5_JAVA_TEST_LIB_TARGET "${HDF5_JAVA_TEST_LIB_CORENAME}") -set (HDF5_LIBSH_TARGET "${HDF5_LIB_CORENAME}-shared") -set (HDF5_TEST_LIBSH_TARGET "${HDF5_TEST_LIB_CORENAME}-shared") -set (HDF5_CPP_LIBSH_TARGET "${HDF5_CPP_LIB_CORENAME}-shared") -set (HDF5_HL_LIBSH_TARGET "${HDF5_HL_LIB_CORENAME}-shared") -set (HDF5_HL_CPP_LIBSH_TARGET "${HDF5_HL_CPP_LIB_CORENAME}-shared") -set (HDF5_TOOLS_LIBSH_TARGET "${HDF5_TOOLS_LIB_CORENAME}-shared") +-set (HDF5_UTILS_LIBSH_TARGET "${HDF5_UTILS_LIB_CORENAME}-shared") -set (HDF5_F90_LIBSH_TARGET "${HDF5_F90_LIB_CORENAME}-shared") -set (HDF5_F90_C_LIBSH_TARGET "${HDF5_F90_C_LIB_CORENAME}-shared") -set (HDF5_F90_TEST_LIBSH_TARGET "${HDF5_F90_TEST_LIB_CORENAME}-shared")
@@ -36,6 +35,7 @@ index 9af14d5..05100e3 100644 +set (HDF5_HL_LIBSH_TARGET "${HDF5_HL_LIB_CORENAME}") +set (HDF5_HL_CPP_LIBSH_TARGET "${HDF5_HL_CPP_LIB_CORENAME}") +set (HDF5_TOOLS_LIBSH_TARGET "${HDF5_TOOLS_LIB_CORENAME}") ++set (HDF5_UTILS_LIBSH_TARGET "${HDF5_UTILS_LIB_CORENAME}") +set (HDF5_F90_LIBSH_TARGET "${HDF5_F90_LIB_CORENAME}") +set (HDF5_F90_C_LIBSH_TARGET "${HDF5_F90_C_LIB_CORENAME}") +set (HDF5_F90_TEST_LIBSH_TARGET "${HDF5_F90_TEST_LIB_CORENAME}")
@@ -45,6 +45,3 @@ index 9af14d5..05100e3 100644 #----------------------------------------------------------------------------- # Define some CMake variables for use later in the project --- -2.7.4 -
meta-oe/recipes-support/hdf5/files/H5Tinit-32.c deleted +0 -975
975 lines not on this page · raw message
meta-oe/recipes-support/hdf5/files/H5Tinit-64.c deleted +0 -991
991 lines not on this page · raw message
meta-oe/recipes-support/hdf5/files/H5lib_settings.c deleted +0 -98
98 lines not on this page · raw message
meta-oe/recipes-support/hdf5/hdf5_1.13.2.bb new file +54 -0
54 lines not on this page · raw message
meta-oe/recipes-support/hdf5/hdf5_1.8.21.bb deleted +0 -59
59 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-h5py_3.7.0.bb +1 -1
@@ -28,4 +28,4 @@ RDEPENDS:${PN} = "python3-numpy \ python3-json \ " -export HDF5_VERSION="1.8.21" +export HDF5_VERSION="1.13.2"
Signature · 1 line
2.37.3
PATCH 63/63 vulkan-cts,opengl-es-cts: Upgrade to1.3.3.1 and 3.2.8 respectively
In reply to Khem RajAdd needed depednency on vulkan-docs, jsoncpp and python3-xml-native as they are added newly in these versions.
Delete patches already applied in this release
Backport one amber patch to fix compile with clang
Forward port the remaining patches
Add mechanism to run target test binaries using qemu usermode
Override WAYLAND_SCANNER and WAYLAND_PROTOCOLS_DIR
Let these variables be set via cmake cmdline before enquiring via pkg-config
--- ...ude-limits-header-for-numeric_limits.patch | 88 ------------------- .../files/0001-Remove-dead-variable-984.patch | 34 +++++++ ...-GCC-11-uninit-variable-warnings-946.patch | 73 --------------- ...LAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch | 37 ++++++++ ...0001-use-library-sonames-for-linking.patch | 20 +---- .../vk-gl-cts/khronos-cts.inc | 30 +++++-- .../vk-gl-cts/opengl-es-cts_3.2.7.0.bb | 31 ------- .../vk-gl-cts/opengl-es-cts_3.2.8.0.bb | 36 ++++++++ .../vk-gl-cts/vulkan-cts_1.2.6.0.bb | 24 ----- .../vk-gl-cts/vulkan-cts_1.3.3.1.bb | 28 ++++++ 10 files changed, 161 insertions(+), 240 deletions(-) delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/0001-Include-limits-header-for-numeric_limits.patch create mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/0001-Remove-dead-variable-984.patch delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/0001-Workaround-for-GCC-11-uninit-variable-warnings-946.patch create mode 100644 meta-oe/recipes-graphics/vk-gl-cts/files/0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.7.0.bb create mode 100644 meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.8.0.bb delete mode 100644 meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.2.6.0.bb create mode 100644 meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.3.1.bb
meta-oe/recipes-graphics/vk-gl-cts/files/0001-Include-limits-header-for-numeric_limits.patch deleted +0 -88
@@ -1,88 +0,0 @@ -From aec0be857ed3faef8802c7fd61f3d7798a565108 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Thu, 29 Apr 2021 16:03:42 -0700 -Subject: [PATCH] Include <limits> header for numeric_limits - -Fixes -vulkancts/framework/vulkan/vkRayTracingUtil.hpp:116:32: error: 'numeric_limits' is not a member of 'std' - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - framework/vulkan/vkRayTracingUtil.hpp | 1 + - modules/vulkan/api/vktApiBufferTests.cpp | 1 + - modules/vulkan/spirv_assembly/vktSpvAsmNonSemanticInfoTests.cpp | 2 ++ - 3 files changed, 4 insertions(+) - ---- a/framework/vulkan/vkRayTracingUtil.hpp -+++ b/framework/vulkan/vkRayTracingUtil.hpp -@@ -33,6 +33,7 @@ - #include "tcuVector.hpp" - #include "tcuVectorType.hpp" - -+#include <limits> - #include <vector> - - namespace vk ---- a/modules/vulkan/api/vktApiBufferTests.cpp -+++ b/modules/vulkan/api/vktApiBufferTests.cpp -@@ -35,6 +35,7 @@ - #include "tcuPlatform.hpp" - - #include <algorithm> -+#include <limits> - - namespace vkt - { ---- a/modules/vulkan/spirv_assembly/vktSpvAsmNonSemanticInfoTests.cpp -+++ b/modules/vulkan/spirv_assembly/vktSpvAsmNonSemanticInfoTests.cpp -@@ -28,6 +28,8 @@ - #include "vktSpvAsmComputeShaderCase.hpp" - #include "vktSpvAsmGraphicsShaderTestUtil.hpp" - -+#include <limits> -+ - namespace vkt - { - namespace SpirVAssembly ---- a/modules/vulkan/memory/vktMemoryDeviceMemoryReportTests.cpp -+++ b/modules/vulkan/memory/vktMemoryDeviceMemoryReportTests.cpp -@@ -40,6 +40,7 @@ - - #include "deSharedPtr.hpp" - -+#include <limits> - #include <set> - #include <vector> - ---- a/modules/vulkan/draw/vktDrawDepthClampTests.cpp -+++ b/modules/vulkan/draw/vktDrawDepthClampTests.cpp -@@ -38,6 +38,7 @@ - #include "vkQueryUtil.hpp" - #include "tcuTextureUtil.hpp" - -+#include <limits> - #include <cmath> - - namespace vkt ---- a/modules/vulkan/wsi/vktWsiFullScreenExclusiveTests.cpp -+++ b/modules/vulkan/wsi/vktWsiFullScreenExclusiveTests.cpp -@@ -39,6 +39,8 @@ - #include "tcuPlatform.hpp" - #include "tcuCommandLine.hpp" - -+#include <limits> -+ - #if ( DE_OS == DE_OS_WIN32 ) - #define NOMINMAX - #define WIN32_LEAN_AND_MEAN ---- a/modules/vulkan/synchronization/vktSynchronizationUtil.cpp -+++ b/modules/vulkan/synchronization/vktSynchronizationUtil.cpp -@@ -21,6 +21,7 @@ - * \brief Synchronization tests utilities - *//*--------------------------------------------------------------------*/ - -+#include <limits> - #include "vktSynchronizationUtil.hpp" - #include "vkTypeUtil.hpp" - #include "vkCmdUtil.hpp"
meta-oe/recipes-graphics/vk-gl-cts/files/0001-Remove-dead-variable-984.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 0d863b444c9a54a92dab176b1b656c116923e1ca Mon Sep 17 00:00:00 2001 +From: alan-baker <[email protected]> +Date: Wed, 30 Mar 2022 12:59:28 -0400 +Subject: [PATCH] Remove dead variable (#984) + +Upstream-Status: Backport [https://github.com/google/amber/commit/627ee453d6047ced0e2dd13cde983b341d0615e3] +Signed-off-by: Khem Raj <[email protected]> +--- + src/vkscript/command_parser.cc | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/src/vkscript/command_parser.cc b/src/vkscript/command_parser.cc +index 610c7e6..3429d4d 100644 +--- a/src/vkscript/command_parser.cc ++++ b/src/vkscript/command_parser.cc +@@ -486,7 +486,6 @@ Result CommandParser::ParseValues(const std::string& name, + std::vector<Value>* values) { + assert(values); + +- uint32_t row_index = 0; + auto token = tokenizer_->NextToken(); + size_t seen = 0; + while (!token->IsEOL() && !token->IsEOS()) { +@@ -515,7 +514,6 @@ Result CommandParser::ParseValues(const std::string& name, + values->push_back(v); + token = tokenizer_->NextToken(); + +- ++row_index; + ++seen; + } + +-- +2.37.3 +
meta-oe/recipes-graphics/vk-gl-cts/files/0001-Workaround-for-GCC-11-uninit-variable-warnings-946.patch deleted +0 -73
73 lines not on this page · raw message
meta-oe/recipes-graphics/vk-gl-cts/files/0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch new file +37 -0
@@ -0,0 +1,37 @@ +From ec12bb7bda60cdf2c848e13df67452a7d30a42be Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 3 Sep 2022 18:52:42 -0700 +Subject: [PATCH] cmake: Define WAYLAND_SCANNER and WAYLAND_PROTOCOLS_DIR if + not already defined + +This helps with cross compiling and providing these knobs from cmake +cmdline + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + framework/platform/CMakeLists.txt | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/framework/platform/CMakeLists.txt b/framework/platform/CMakeLists.txt +index c3ac463e4..030163f6c 100644 +--- a/framework/platform/CMakeLists.txt ++++ b/framework/platform/CMakeLists.txt +@@ -73,8 +73,12 @@ if (NOT DEFINED TCUTIL_PLATFORM_SRCS) + add_definitions(-DDEQP_SUPPORT_WAYLAND=1) + include_directories(lnx/wayland) + +- pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) +- pkg_get_variable(WAYLAND_SCANNER wayland-scanner wayland_scanner) ++ if (NOT DEFINED WAYLAND_PROTOCOLS_DIR) ++ pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir) ++ endif() ++ if (NOT DEFINED WAYLAND_SCANNER) ++ pkg_get_variable(WAYLAND_SCANNER wayland-scanner wayland_scanner) ++ endif() + + set(DEQP_XDG_SHELL_PROTOCOL ${WAYLAND_PROTOCOLS_DIR}/stable/xdg-shell/xdg-shell.xml) + set(DEQP_XDG_SHELL_GEN_OUTPUTS_DIR ${PROJECT_BINARY_DIR}/framework/platform) +-- +2.37.3 +
meta-oe/recipes-graphics/vk-gl-cts/files/0001-use-library-sonames-for-linking.patch +4 -16
@@ -19,8 +19,6 @@ Signed-off-by: Trevor Woerner <[email protected]> framework/platform/surfaceless/tcuSurfacelessPlatform.cpp | 6 +++--- 6 files changed, 9 insertions(+), 9 deletions(-) -diff --git a/framework/egl/egluGLContextFactory.cpp b/framework/egl/egluGLContextFactory.cpp -index 8fbea2af1..8d42f19eb 100644 --- a/framework/egl/egluGLContextFactory.cpp +++ b/framework/egl/egluGLContextFactory.cpp @@ -63,7 +63,7 @@ using std::vector;
@@ -41,8 +39,6 @@ index 8fbea2af1..8d42f19eb 100644 # endif #endif -diff --git a/framework/egl/wrapper/eglwLibrary.cpp b/framework/egl/wrapper/eglwLibrary.cpp -index d7e07fe18..ebdf68b14 100644 --- a/framework/egl/wrapper/eglwLibrary.cpp +++ b/framework/egl/wrapper/eglwLibrary.cpp @@ -148,7 +148,7 @@ DefaultLibrary::~DefaultLibrary (void)
@@ -54,11 +50,9 @@ index d7e07fe18..ebdf68b14 100644 #elif (DE_OS == DE_OS_WIN32) return "libEGL.dll"; #else -diff --git a/framework/platform/android/tcuAndroidPlatform.cpp b/framework/platform/android/tcuAndroidPlatform.cpp -index b9a4c716f..05cec0b49 100644 --- a/framework/platform/android/tcuAndroidPlatform.cpp +++ b/framework/platform/android/tcuAndroidPlatform.cpp -@@ -57,7 +57,7 @@ static const eglu::NativeWindow::Capability WINDOW_CAPABILITIES = (eglu::Nativ +@@ -57,7 +57,7 @@ static const eglu::NativeWindow::Capabil class NativeDisplay : public eglu::NativeDisplay { public:
@@ -67,11 +61,9 @@ index b9a4c716f..05cec0b49 100644 virtual ~NativeDisplay (void) {} virtual EGLNativeDisplayType getLegacyNative (void) { return EGL_DEFAULT_DISPLAY; } -diff --git a/framework/platform/lnx/X11/tcuLnxX11EglDisplayFactory.cpp b/framework/platform/lnx/X11/tcuLnxX11EglDisplayFactory.cpp -index 009c05e18..237c5e16f 100644 --- a/framework/platform/lnx/X11/tcuLnxX11EglDisplayFactory.cpp +++ b/framework/platform/lnx/X11/tcuLnxX11EglDisplayFactory.cpp -@@ -75,7 +75,7 @@ class Library : public eglw::DefaultLibrary +@@ -75,7 +75,7 @@ class Library : public eglw::DefaultLibr { public: Library (void)
@@ -80,8 +72,6 @@ index 009c05e18..237c5e16f 100644 { } -diff --git a/framework/platform/lnx/wayland/tcuLnxWaylandEglDisplayFactory.cpp b/framework/platform/lnx/wayland/tcuLnxWaylandEglDisplayFactory.cpp -index 97bc3a0ed..3a20d63d3 100644 --- a/framework/platform/lnx/wayland/tcuLnxWaylandEglDisplayFactory.cpp +++ b/framework/platform/lnx/wayland/tcuLnxWaylandEglDisplayFactory.cpp @@ -66,7 +66,7 @@ public:
@@ -93,8 +83,6 @@ index 97bc3a0ed..3a20d63d3 100644 ~Display(void) {} wayland::Display& getWaylandDisplay (void) { return *m_display; } -diff --git a/framework/platform/surfaceless/tcuSurfacelessPlatform.cpp b/framework/platform/surfaceless/tcuSurfacelessPlatform.cpp -index 9783eaeab..a1d8ac667 100644 --- a/framework/platform/surfaceless/tcuSurfacelessPlatform.cpp +++ b/framework/platform/surfaceless/tcuSurfacelessPlatform.cpp @@ -69,7 +69,7 @@ using std::vector;
@@ -114,8 +102,8 @@ index 9783eaeab..a1d8ac667 100644 +# define DEQP_OPENGL_LIBRARY_PATH "libGL.so.1" #endif - namespace tcu -@@ -238,7 +238,7 @@ glu::RenderContext* ContextFactory::createContext(const glu::RenderConfig& confi + #if !defined(DEQP_VULKAN_LIBRARY_PATH) +@@ -234,7 +234,7 @@ glu::RenderContext* ContextFactory::crea } EglRenderContext::EglRenderContext(const glu::RenderConfig& config, const tcu::CommandLine& cmdLine)
meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc +22 -8
@@ -7,23 +7,24 @@ SRC_URI = "\ git://github.com/KhronosGroup/glslang.git;protocol=https;destsuffix=git/external/glslang/src;name=glslang;branch=master \ git://github.com/KhronosGroup/SPIRV-Headers.git;protocol=https;destsuffix=git/external/spirv-headers/src;name=spirv-headers;branch=master \ git://github.com/KhronosGroup/SPIRV-Tools.git;protocol=https;destsuffix=git/external/spirv-tools/src;name=spirv-tools;branch=master \ - https://raw.githubusercontent.com/baldurk/renderdoc/v1.1/renderdoc/api/app/renderdoc_app.h;subdir=git/external/renderdoc/src;name=renderdoc \ + git://github.com/open-source-parsers/jsoncpp.git;protocol=https;destsuffix=git/external/jsoncpp/src;name=jsoncpp;branch=master \ + git://github.com/KhronosGroup/Vulkan-Docs.git;protocol=https;destsuffix=git/external/vulkan-docs/src;name=vulkan-docs;branch=main \ + https://raw.githubusercontent.com/baldurk/renderdoc/fcdea67879fa1991e56cf7734ce0ce27866b665f/renderdoc/api/app/renderdoc_app.h;subdir=git/external/renderdoc/src;name=renderdoc \ " S = "${WORKDIR}/git" -SRCREV_FORMAT = "vk-gl-cts_amber_glslang_spirv-headers_spirv-tools" +SRCREV_FORMAT = "vk-gl-cts_amber_glslang_spirv-headers_spirv-tools_jsoncpp_vulkan-docs" S = "${WORKDIR}/git" -inherit pkgconfig cmake features_check +inherit pkgconfig cmake features_check python3native qemu ANY_OF_DISTRO_FEATURES += "opengl wayland" -DEPENDS += "libpng zlib virtual/libgles2" +DEPENDS += "python3-lxml-native libpng zlib virtual/libgles2 qemu-native" -SRC_URI += "file://0001-Workaround-for-GCC-11-uninit-variable-warnings-946.patch;patchdir=external/amber/src \ - file://0001-Include-limits-header-for-numeric_limits.patch;patchdir=external/vulkancts \ +SRC_URI += " \ file://0001-vulkancts.patch \ file://0001-use-library-sonames-for-linking.patch \ "
@@ -37,6 +38,8 @@ SRC_URI:append:toolchain-clang = "\ file://fix-clang-private-operator.patch \ " +EXTRA_OECMAKE:prepend:class-target = "-DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper -DWAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner -DWAYLAND_PROTOCOLS_DIR=${STAGING_DATADIR}/wayland-protocols" + # The best thing for the user to do is to not specify any of the following # PACKAGECONFIGs (i.e. leave it blank) which tells the project to do its own # probing and build what it thinks is appropriate.
@@ -44,11 +47,22 @@ SRC_URI:append:toolchain-clang = "\ # to override this behaviour. PACKAGECONFIG ??= "" PACKAGECONFIG[surfaceless] = "-DDEQP_TARGET=surfaceless,,,,,wayland x11_egl x11_glx x11_egl_glx" -PACKAGECONFIG[wayland] = "-DDEQP_TARGET=wayland,,wayland,,,surfaceless x11_egl x11_glx x11_egl_glx" +PACKAGECONFIG[wayland] = "-DDEQP_TARGET=wayland,,wayland-native wayland wayland-protocols,,,surfaceless x11_egl x11_glx x11_egl_glx" PACKAGECONFIG[x11_egl] = "-DDEQP_TARGET=x11_egl,,virtual/libx11 virtual/egl,,,surfaceless wayland x11_glx x11_egl_glx" PACKAGECONFIG[x11_glx] = "-DDEQP_TARGET=x11_glx,,virtual/libx11,,,surfaceless wayland x11_egl x11_egl_glx" PACKAGECONFIG[x11_egl_glx] = "-DDEQP_TARGET=x11_glx,,virtual/libx11 virtual/egl,,,surfaceless wayland x11_egl x11_glx" +do_configure:append() { + # Write out a qemu wrapper that will be used by cmake + # so that it can run target helper binaries through that. + qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" + cat > ${WORKDIR}/qemuwrapper << EOF +#!/bin/sh +$qemu_binary "\$@" +EOF + chmod +x ${WORKDIR}/qemuwrapper +} + python __anonymous() { # if the user doesn't specify any PACKAGECONFIG then the cts build system # is going to probe the sysroot to try to figure out what to build
@@ -57,7 +71,7 @@ python __anonymous() { distrofeatures = (d.getVar("DISTRO_FEATURES") or "") if not bb.utils.contains_any("PACKAGECONFIG", ["surfaceless", "wayland", "x11_egl", "x11_glx", "x11_egl_glx"], True, False, d): if "wayland" in distrofeatures: - d.appendVar("DEPENDS", " wayland ") + d.appendVar("DEPENDS", " wayland-native wayland wayland-protocols") if "x11" in distrofeatures: d.appendVar("DEPENDS", " virtual/libx11 virtual/egl ") }
meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.7.0.bb deleted +0 -31
@@ -1,31 +0,0 @@ -DESCRIPTION = "OpenGL CTS" - -require khronos-cts.inc -# opengl-es-cts-3.2.7.0 -SRCREV_vk-gl-cts = "7cba7113c40f2ff03573c8c2c90661b2249e04fa" -SRCREV_amber = "4d0115cccfcb3b73d20b6513b1c40748e6403c50" -SRCREV_glslang = "ffccefddfd9a02ec0c0b6dd04ef5e1042279c97f" -SRCREV_spirv-headers = "104ecc356c1bea4476320faca64440cd1df655a3" -SRCREV_spirv-tools = "cd590fa3341284cd6d1ee82366155786cfd44c96" -SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" - -S = "${WORKDIR}/git" - -do_install() { - install -d ${D}/${CTSDIR} - cp -r ${B}/external/openglcts/modules/* ${D}/${CTSDIR} - - install -m 0755 ${B}/modules/egl/deqp-egl ${D}/${CTSDIR} - install -m 0755 ${B}/modules/gles2/deqp-gles2 ${D}/${CTSDIR} - install -m 0755 ${B}/modules/gles3/deqp-gles3 ${D}/${CTSDIR} - install -m 0755 ${B}/modules/gles31/deqp-gles31 ${D}/${CTSDIR} - install -m 0755 ${B}/modules/internal/de-internal-tests ${D}/${CTSDIR} - - rm -r ${D}/${CTSDIR}/*.a ${D}/${CTSDIR}/cmake_install.cmake ${D}/${CTSDIR}/CMakeFiles - rm -r ${D}/${CTSDIR}/*/*.a ${D}/${CTSDIR}/*/cmake_install.cmake ${D}/${CTSDIR}/*/CMakeFiles - rm -r ${D}/${CTSDIR}/common/subgroups/*.a ${D}/${CTSDIR}/common/subgroups/cmake_install.cmake ${D}/${CTSDIR}/common/subgroups/CMakeFiles -} - -SECURITY_CFLAGS:riscv64 = "${SECURITY_NOPIE_CFLAGS}" -LTO = "" -
meta-oe/recipes-graphics/vk-gl-cts/opengl-es-cts_3.2.8.0.bb new file +36 -0
@@ -0,0 +1,36 @@ +DESCRIPTION = "OpenGL CTS" + +require khronos-cts.inc +# opengl-es-cts-3.2.8.0 +SRCREV_vk-gl-cts = "317f467fac032b88a4789e4345421f92c4e8716d" +SRCREV_amber = "209d92e2c27a333e723d24497e8c7a07b2f2eb39" +SRCREV_glslang = "9158061398a96033c990e69156bd28c67114544b" +SRCREV_spirv-headers = "449bc986ba6f4c5e10e32828783f9daef2a77644" +SRCREV_spirv-tools = "ee30773650eca50b1cd3c913babcc2b50d7b91fd" +# Not yet needed +SRCREV_jsoncpp = "9059f5cad030ba11d37818847443a53918c327b1" +SRCREV_vulkan-docs = "d70e01c0be7b8a7d20b186b30b29a75b18bba75d" +SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" + +SRC_URI += "file://0001-Remove-dead-variable-984.patch;patchdir=external/amber/src" + +S = "${WORKDIR}/git" + +do_install() { + install -d ${D}/${CTSDIR} + cp -r ${B}/external/openglcts/modules/* ${D}/${CTSDIR} + + install -m 0755 ${B}/modules/egl/deqp-egl ${D}/${CTSDIR} + install -m 0755 ${B}/modules/gles2/deqp-gles2 ${D}/${CTSDIR} + install -m 0755 ${B}/modules/gles3/deqp-gles3 ${D}/${CTSDIR} + install -m 0755 ${B}/modules/gles31/deqp-gles31 ${D}/${CTSDIR} + install -m 0755 ${B}/modules/internal/de-internal-tests ${D}/${CTSDIR} + + rm -rf ${D}/${CTSDIR}/*.a ${D}/${CTSDIR}/cmake_install.cmake ${D}/${CTSDIR}/CMakeFiles + rm -rf ${D}/${CTSDIR}/*/*.a ${D}/${CTSDIR}/*/cmake_install.cmake ${D}/${CTSDIR}/*/CMakeFiles + rm -rf ${D}/${CTSDIR}/common/subgroups/*.a ${D}/${CTSDIR}/common/subgroups/cmake_install.cmake ${D}/${CTSDIR}/common/subgroups/CMakeFiles +} + +SECURITY_CFLAGS:riscv64 = "${SECURITY_NOPIE_CFLAGS}" +LTO = "" +
meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.2.6.0.bb deleted +0 -24
@@ -1,24 +0,0 @@ -DESCRIPTION = "Vulkan CTS" - -require khronos-cts.inc -# vulkan-cts-1.2.6.0 -SRCREV_vk-gl-cts = "2cab49df5ad25a2d0061152367a21c6da83ed097" -SRCREV_amber = "dabae26164714abf951c6815a2b4513260f7c6a4" -SRCREV_glslang = "5c4f421121c4d24aad23a507e630dc5dc6c92c7c" -SRCREV_spirv-headers = "faa570afbc91ac73d594d787486bcf8f2df1ace0" -SRCREV_spirv-tools = "f11f7434815838bbad349124767b258ce7df41f0" -SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" - -S = "${WORKDIR}/git" - -REQUIRED_DISTRO_FEATURES = "vulkan" -inherit features_check - -DEPENDS += " vulkan-loader" - -do_install() { - install -d ${D}/${CTSDIR} - cp -r ${B}/external/vulkancts/modules/vulkan/* ${D}/${CTSDIR}/ - rm -r ${D}/${CTSDIR}/*.a ${D}/${CTSDIR}/cmake_install.cmake ${D}/${CTSDIR}/CMakeFiles - rm -r ${D}/${CTSDIR}/*/*.a ${D}/${CTSDIR}/*/cmake_install.cmake ${D}/${CTSDIR}/*/CMakeFiles -}
meta-oe/recipes-graphics/vk-gl-cts/vulkan-cts_1.3.3.1.bb new file +28 -0
@@ -0,0 +1,28 @@ +DESCRIPTION = "Vulkan CTS" + +require khronos-cts.inc +# vulkan-cts-1.3.3.1 +SRCREV_vk-gl-cts = "6024a88390942876147a88dce82bbed73b866c1b" +SRCREV_amber = "8b145a6c89dcdb4ec28173339dd176fb7b6f43ed" +SRCREV_glslang = "7dda6a6347b0bd550e202942adee475956ef462a" +SRCREV_spirv-headers = "b765c355f488837ca4c77980ba69484f3ff277f5" +SRCREV_spirv-tools = "b930e734ea198b7aabbbf04ee1562cf6f57962f0" +SRCREV_jsoncpp = "9059f5cad030ba11d37818847443a53918c327b1" +SRCREV_vulkan-docs = "9b5562187a8ad72c171410b036ceedbc450153ba" +SRC_URI[renderdoc.sha256sum] = "e7b5f0aa5b1b0eadc63a1c624c0ca7f5af133aa857d6a4271b0ef3d0bdb6868e" + +SRC_URI += "file://0001-cmake-Define-WAYLAND_SCANNER-and-WAYLAND_PROTOCOLS_D.patch" + +S = "${WORKDIR}/git" + +REQUIRED_DISTRO_FEATURES = "vulkan" +inherit features_check + +DEPENDS += " vulkan-loader" + +do_install() { + install -d ${D}/${CTSDIR} + cp -r ${B}/external/vulkancts/modules/vulkan/* ${D}/${CTSDIR}/ + rm -rf ${D}/${CTSDIR}/*.a ${D}/${CTSDIR}/cmake_install.cmake ${D}/${CTSDIR}/CMakeFiles + rm -rf ${D}/${CTSDIR}/*/*.a ${D}/${CTSDIR}/*/cmake_install.cmake ${D}/${CTSDIR}/*/CMakeFiles +}
Signature · 1 line
2.37.3