diff options
| -rw-r--r-- | meta-oe/recipes-devtools/uftrace/uftrace/0001-include-libgen.h-for-basename.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/uftrace/uftrace_0.15.2.bb | 3 |
2 files changed, 36 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/uftrace/uftrace/0001-include-libgen.h-for-basename.patch b/meta-oe/recipes-devtools/uftrace/uftrace/0001-include-libgen.h-for-basename.patch new file mode 100644 index 0000000000..4844003517 --- /dev/null +++ b/meta-oe/recipes-devtools/uftrace/uftrace/0001-include-libgen.h-for-basename.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 8e4e5479cee153db7315d5134663fa87082b39fc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 25 Mar 2024 17:46:24 -0700 | ||
| 4 | Subject: [PATCH] include libgen.h for basename | ||
| 5 | |||
| 6 | basename prototype has been removed from string.h from latest musl [1] | ||
| 7 | compilers e.g. clang-18 flags the absense of prototype as error. therefore | ||
| 8 | include libgen.h for providing it. | ||
| 9 | |||
| 10 | [1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://github.com/namhyung/uftrace/pull/1909] | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | utils/utils.h | 3 +++ | ||
| 16 | 1 file changed, 3 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/utils/utils.h b/utils/utils.h | ||
| 19 | index 69a6072b..60265431 100644 | ||
| 20 | --- a/utils/utils.h | ||
| 21 | +++ b/utils/utils.h | ||
| 22 | @@ -11,6 +11,9 @@ | ||
| 23 | |||
| 24 | #include <ctype.h> | ||
| 25 | #include <endian.h> | ||
| 26 | +#ifndef __GLIBC__ | ||
| 27 | +#include <libgen.h> | ||
| 28 | +#endif | ||
| 29 | #include <limits.h> | ||
| 30 | #include <signal.h> | ||
| 31 | #include <stdbool.h> | ||
| 32 | -- | ||
| 33 | 2.44.0 | ||
| 34 | |||
diff --git a/meta-oe/recipes-devtools/uftrace/uftrace_0.15.2.bb b/meta-oe/recipes-devtools/uftrace/uftrace_0.15.2.bb index ff04d40eaf..60436025a3 100644 --- a/meta-oe/recipes-devtools/uftrace/uftrace_0.15.2.bb +++ b/meta-oe/recipes-devtools/uftrace/uftrace_0.15.2.bb | |||
| @@ -11,7 +11,8 @@ DEPENDS:append:libc-musl = " argp-standalone" | |||
| 11 | inherit autotools | 11 | inherit autotools |
| 12 | 12 | ||
| 13 | SRCREV = "9d8657e90b918994d7d2bcf6dd2cc7354c35a1b4" | 13 | SRCREV = "9d8657e90b918994d7d2bcf6dd2cc7354c35a1b4" |
| 14 | SRC_URI = "git://github.com/namhyung/${BPN};branch=master;protocol=https" | 14 | SRC_URI = "git://github.com/namhyung/${BPN};branch=master;protocol=https \ |
| 15 | file://0001-include-libgen.h-for-basename.patch" | ||
| 15 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 16 | 17 | ||
| 17 | LDFLAGS:append:libc-musl = " -largp" | 18 | LDFLAGS:append:libc-musl = " -largp" |
