unfs3: Add missing header files
PATCH 1/3 unfs3: Add missing header files
These enable builds with additional warnings as errors
Signed-off-by Khem Raj <[email protected]>
--- .../unfs3/0001-fix-building-on-macOS.patch | 27 +++++++++++++++++++ meta/recipes-devtools/unfs3/unfs3_git.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta/recipes-devtools/unfs3/unfs3/0001-fix-building-on-macOS.patch
meta/recipes-devtools/unfs3/unfs3/0001-fix-building-on-macOS.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 989b87ae46b3183a742031373fbb3e912ab9b666 Mon Sep 17 00:00:00 2001 +From: Andrey Filipenkov <[email protected]> +Date: Wed, 2 Nov 2022 13:38:40 +0300 +Subject: [PATCH] fix building on macOS + +Signed-off-by: Khem Raj <[email protected]> +Upstream-Status: Backport [https://github.com/unfs3/unfs3/commit/989b87ae46b3183a742031373fbb3e912ab9b666] +--- + attr.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/attr.c b/attr.c +index 6253e84..0ce9375 100644 +--- a/attr.c ++++ b/attr.c +@@ -18,6 +18,8 @@ + #include <utime.h> + #include <errno.h> + #include <dirent.h> ++#include <stdlib.h> ++#include <string.h> + + #include "backend.h" + #include "nfs.h" +-- +2.39.1 +
meta/recipes-devtools/unfs3/unfs3_git.bb +1 -0
@@ -16,6 +16,7 @@ SRC_URI = "git://github.com/unfs3/unfs3.git;protocol=https;branch=master \ file://0001-daemon.c-Fix-race-window-for-writing-of-the-pid-file.patch \ file://0001-Alias-off64_t-to-off_t-on-linux-if-not-defined.patch \ file://0001-locate.c-Include-attr.h.patch \ + file://0001-fix-building-on-macOS.patch \ " SRCREV = "c8f2d2cd4529955419bad0e163f88d47ff176b8d" UPSTREAM_CHECK_GITTAGREGEX = "unfs3\-(?P<pver>\d+(\.\d+)+)"
Signature · 1 line
2.39.1
PATCH 2/3 stress-ng: Add missing header files for clock_adjtime
Signed-off-by Khem Raj <[email protected]>
--- ...nclude-sys-futex.h-for-clock_adjtime.patch | 32 +++++++++++++++++++ .../stress-ng/stress-ng_0.15.03.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch
meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 57f207ec7fb39c8b502f40dbdabd568f6b866a82 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 13 Feb 2023 12:18:08 -0800 +Subject: [PATCH] Include sys/futex.h for clock_adjtime + +Fixes +core-shim.c:1942:9: error: call to undeclared function 'clock_adjtime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + +Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/261] +Signed-off-by: Khem Raj <[email protected]> +--- + core-shim.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/core-shim.c b/core-shim.c +index dc539c64..de38e908 100644 +--- a/core-shim.c ++++ b/core-shim.c +@@ -66,6 +66,10 @@ UNEXPECTED + #include <sys/prctl.h> + #endif + ++#if defined(HAVE_SYS_TIMEX_H) ++#include <sys/timex.h> ++#endif ++ + #if defined(HAVE_SYS_RANDOM_H) + #include <sys/random.h> + #endif +-- +2.39.1 +
meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb +1 -0
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \ file://0001-test-float-Make-variables-global.patch \ + file://0001-Include-sys-futex.h-for-clock_adjtime.patch \ file://0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch" SRCREV = "f3be0447c10fd5652b4c3753d56bcaac13fd8917" S = "${WORKDIR}/git"
Signature · 1 line
2.39.1
PATCH 3/3 gstreamer1.0-plugins-good: Fix build with musl
In reply to Khem Rajmusl's definition of ioctl() API is different from glibc's and gst has built upon definition from glibc which was being warned about but now compilers can check signatures of funciton pointers, means it becomes an error with clang16+
Signed-off-by Khem Raj <[email protected]>
--- ...ine-ioctl_req_t-for-posix-linux-case.patch | 40 +++++++++++++++++++ .../gstreamer1.0-plugins-good_1.22.0.bb | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 5ce1e410965ed047a03c09b17796162f0363e396 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 13 Feb 2023 12:47:31 -0800 +Subject: [PATCH] v4l2: Define ioctl_req_t for posix/linux case + +this is an issue seen with musl based linux distros e.g. alpine [1] +musl is not going to change this since it breaks ABI/API interfaces +Newer compilers are stringent ( e.g. clang16 ) which can now detect +signature mismatches in function pointers too, existing code warned but +did not error with older clang + +Fixes +gstv4l2object.c:544:23: error: incompatible function pointer types assigning to 'gint (*)(gint, ioctl_req_t, ...)' (aka 'int (*)(int, unsigned long, ...)') from 'int (int, int, ...)' [-Wincompatible-function-pointer-types] + v4l2object->ioctl = ioctl; + ^ ~~~~~ + +[1] https://gitlab.alpinelinux.org/alpine/aports/-/issues/7580 + +Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3950] +Signed-off-by: Khem Raj <[email protected]> +--- + sys/v4l2/gstv4l2object.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h +index 3a5c961..4f43008 100644 +--- a/sys/v4l2/gstv4l2object.h ++++ b/sys/v4l2/gstv4l2object.h +@@ -76,6 +76,8 @@ typedef gboolean (*GstV4l2UpdateFpsFunction) (GstV4l2Object * v4l2object); + * 'unsigned long' for the 2nd parameter */ + #ifdef __ANDROID__ + typedef unsigned ioctl_req_t; ++#elif defined(__linux__) && !defined(__GLIBC__) /* musl/linux */ ++typedef int ioctl_req_t; + #else + typedef gulong ioctl_req_t; + #endif +-- +2.39.1 +
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.0.bb +1 -1
@@ -6,7 +6,7 @@ BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \ - " + file://0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch" SRC_URI[sha256sum] = "582e617271e7f314d1a2211e3e3856ae2e4303c8c0d6114e9c4a5ea5719294b0"
Signature · 1 line
2.39.1