diff options
3 files changed, 76 insertions, 1 deletions
diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli/0001-nvme-print-add-fallback-for-non-standard-locale-cate.patch b/meta-oe/recipes-bsp/nvme-cli/nvme-cli/0001-nvme-print-add-fallback-for-non-standard-locale-cate.patch new file mode 100644 index 0000000000..981acb1b81 --- /dev/null +++ b/meta-oe/recipes-bsp/nvme-cli/nvme-cli/0001-nvme-print-add-fallback-for-non-standard-locale-cate.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 9444ce03a27b8d423f8170cf75f56d48d8a0a659 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Daniel=20N=C3=A9ri?= <dne+commits@rb67.eu> | ||
3 | Date: Mon, 11 Nov 2024 23:06:03 +0100 | ||
4 | Subject: [PATCH] nvme-print: add fallback for non-standard locale category | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | LC_MEASUREMENT is a GNU (libc) extension - fall back to LC_ALL if it's | ||
10 | not defined. | ||
11 | |||
12 | Fixes build with musl libc | ||
13 | |||
14 | Signed-off-by: Daniel Néri <dne+commits@rb67.eu> | ||
15 | |||
16 | Upstream-Status: Backport [https://github.com/linux-nvme/nvme-cli/commit/9444ce03a27b8d423f8170cf75f56d48d8a0a659] | ||
17 | Signed-off-by: Ryosuke Saito <ryosuke.saito@linaro.org> | ||
18 | --- | ||
19 | nvme-print.c | 4 ++++ | ||
20 | 1 file changed, 4 insertions(+) | ||
21 | |||
22 | diff --git a/nvme-print.c b/nvme-print.c | ||
23 | index 170e5c12fb22..5b1f2e827aef 100644 | ||
24 | --- a/nvme-print.c | ||
25 | +++ b/nvme-print.c | ||
26 | @@ -797,6 +797,10 @@ static bool is_fahrenheit_country(const char *country) | ||
27 | return false; | ||
28 | } | ||
29 | |||
30 | +#ifndef LC_MEASUREMENT | ||
31 | +#define LC_MEASUREMENT LC_ALL | ||
32 | +#endif | ||
33 | + | ||
34 | static bool is_temperature_fahrenheit(void) | ||
35 | { | ||
36 | const char *locale, *underscore; | ||
37 | -- | ||
38 | 2.47.0 | ||
39 | |||
diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli/0002-plugins-netapp-add-include-of-libgen.h-for-basename-.patch b/meta-oe/recipes-bsp/nvme-cli/nvme-cli/0002-plugins-netapp-add-include-of-libgen.h-for-basename-.patch new file mode 100644 index 0000000000..42ca7f5340 --- /dev/null +++ b/meta-oe/recipes-bsp/nvme-cli/nvme-cli/0002-plugins-netapp-add-include-of-libgen.h-for-basename-.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From ac4818952c872ba465a2d0f48634f9a79aae064f Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Daniel=20N=C3=A9ri?= <dne+commits@rb67.eu> | ||
3 | Date: Mon, 11 Nov 2024 22:34:57 +0100 | ||
4 | Subject: [PATCH] plugins/netapp: add include of libgen.h for basename(3) | ||
5 | prototype | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | Fixes build with musl libc. | ||
11 | |||
12 | Signed-off-by: Daniel Néri <dne+commits@rb67.eu> | ||
13 | |||
14 | Upstream-Status: Backport [https://github.com/linux-nvme/nvme-cli/commit/ac4818952c872ba465a2d0f48634f9a79aae064f] | ||
15 | Signed-off-by: Ryosuke Saito <ryosuke.saito@linaro.org> | ||
16 | --- | ||
17 | plugins/netapp/netapp-nvme.c | 1 + | ||
18 | 1 file changed, 1 insertion(+) | ||
19 | |||
20 | diff --git a/plugins/netapp/netapp-nvme.c b/plugins/netapp/netapp-nvme.c | ||
21 | index 5c2e3d4989b8..9f05ffc5d97e 100644 | ||
22 | --- a/plugins/netapp/netapp-nvme.c | ||
23 | +++ b/plugins/netapp/netapp-nvme.c | ||
24 | @@ -22,6 +22,7 @@ | ||
25 | #include <unistd.h> | ||
26 | #include <errno.h> | ||
27 | #include <string.h> | ||
28 | +#include <libgen.h> | ||
29 | |||
30 | #include "common.h" | ||
31 | #include "nvme.h" | ||
32 | -- | ||
33 | 2.47.0 | ||
34 | |||
diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.11.bb b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.11.bb index 13b7c4227e..7c030cd847 100644 --- a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.11.bb +++ b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.11.bb | |||
@@ -8,7 +8,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022 \ | |||
8 | DEPENDS = "json-c libnvme" | 8 | DEPENDS = "json-c libnvme" |
9 | SRCREV = "9f34fcb12e3ab098e9b30e0f31e92cefb497cc42" | 9 | SRCREV = "9f34fcb12e3ab098e9b30e0f31e92cefb497cc42" |
10 | 10 | ||
11 | SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https" | 11 | SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https \ |
12 | file://0001-nvme-print-add-fallback-for-non-standard-locale-cate.patch \ | ||
13 | file://0002-plugins-netapp-add-include-of-libgen.h-for-basename-.patch" | ||
12 | 14 | ||
13 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
14 | 16 | ||