diff options
| -rw-r--r-- | meta/recipes-extended/mdadm/files/0001-include-libgen.h-for-basename-API.patch | 56 | ||||
| -rw-r--r-- | meta/recipes-extended/mdadm/mdadm_4.3.bb | 1 |
2 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-include-libgen.h-for-basename-API.patch b/meta/recipes-extended/mdadm/files/0001-include-libgen.h-for-basename-API.patch new file mode 100644 index 0000000000..70be43c15e --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0001-include-libgen.h-for-basename-API.patch | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | From 7759ceda978aba38861d4846d0c1657465b72f04 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 24 Mar 2024 23:13:32 -0700 | ||
| 4 | Subject: [PATCH] include libgen.h for basename API | ||
| 5 | |||
| 6 | Musl does no more provide it via string.h therefore builds with newer | ||
| 7 | compilers e.g. clang-18 fails due to missing prototype for basename | ||
| 8 | therefore add libgen.h to included headers list | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://lore.kernel.org/linux-raid/20240325061537.275811-1-raj.khem@gmail.com/T/#u] | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | Monitor.c | 1 + | ||
| 14 | platform-intel.c | 1 + | ||
| 15 | super-intel.c | 1 + | ||
| 16 | 3 files changed, 3 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/Monitor.c b/Monitor.c | ||
| 19 | index 824a69f..e3942e1 100644 | ||
| 20 | --- a/Monitor.c | ||
| 21 | +++ b/Monitor.c | ||
| 22 | @@ -26,6 +26,7 @@ | ||
| 23 | #include "udev.h" | ||
| 24 | #include "md_p.h" | ||
| 25 | #include "md_u.h" | ||
| 26 | +#include <libgen.h> | ||
| 27 | #include <sys/wait.h> | ||
| 28 | #include <limits.h> | ||
| 29 | #include <syslog.h> | ||
| 30 | diff --git a/platform-intel.c b/platform-intel.c | ||
| 31 | index ac282bc..5d6687d 100644 | ||
| 32 | --- a/platform-intel.c | ||
| 33 | +++ b/platform-intel.c | ||
| 34 | @@ -19,6 +19,7 @@ | ||
| 35 | #include "mdadm.h" | ||
| 36 | #include "platform-intel.h" | ||
| 37 | #include "probe_roms.h" | ||
| 38 | +#include <libgen.h> | ||
| 39 | #include <stdio.h> | ||
| 40 | #include <stdlib.h> | ||
| 41 | #include <string.h> | ||
| 42 | diff --git a/super-intel.c b/super-intel.c | ||
| 43 | index dbea235..881dbda 100644 | ||
| 44 | --- a/super-intel.c | ||
| 45 | +++ b/super-intel.c | ||
| 46 | @@ -23,6 +23,7 @@ | ||
| 47 | #include "dlink.h" | ||
| 48 | #include "sha1.h" | ||
| 49 | #include "platform-intel.h" | ||
| 50 | +#include <libgen.h> | ||
| 51 | #include <values.h> | ||
| 52 | #include <scsi/sg.h> | ||
| 53 | #include <ctype.h> | ||
| 54 | -- | ||
| 55 | 2.44.0 | ||
| 56 | |||
diff --git a/meta/recipes-extended/mdadm/mdadm_4.3.bb b/meta/recipes-extended/mdadm/mdadm_4.3.bb index fc58fcb86c..228fc6f84e 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.3.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.3.bb | |||
| @@ -23,6 +23,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ | |||
| 23 | file://0001-restripe.c-Use-_FILE_OFFSET_BITS-to-enable-largefile.patch \ | 23 | file://0001-restripe.c-Use-_FILE_OFFSET_BITS-to-enable-largefile.patch \ |
| 24 | file://0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch \ | 24 | file://0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch \ |
| 25 | file://0001-util.c-add-limits.h-include-for-NAME_MAX-definition.patch \ | 25 | file://0001-util.c-add-limits.h-include-for-NAME_MAX-definition.patch \ |
| 26 | file://0001-include-libgen.h-for-basename-API.patch \ | ||
| 26 | " | 27 | " |
| 27 | 28 | ||
| 28 | SRC_URI[sha256sum] = "416727ae1f1080ea6e3090cea36dd076826fc369151e36ab736557ba92196f9f" | 29 | SRC_URI[sha256sum] = "416727ae1f1080ea6e3090cea36dd076826fc369151e36ab736557ba92196f9f" |
