summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-bsp/nvme-cli/nvme-cli/0001-nvme-print-add-fallback-for-non-standard-locale-cate.patch39
-rw-r--r--meta-oe/recipes-bsp/nvme-cli/nvme-cli/0002-plugins-netapp-add-include-of-libgen.h-for-basename-.patch34
-rw-r--r--meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.11.bb4
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 @@
1From 9444ce03a27b8d423f8170cf75f56d48d8a0a659 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Daniel=20N=C3=A9ri?= <dne+commits@rb67.eu>
3Date: Mon, 11 Nov 2024 23:06:03 +0100
4Subject: [PATCH] nvme-print: add fallback for non-standard locale category
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9LC_MEASUREMENT is a GNU (libc) extension - fall back to LC_ALL if it's
10not defined.
11
12Fixes build with musl libc
13
14Signed-off-by: Daniel Néri <dne+commits@rb67.eu>
15
16Upstream-Status: Backport [https://github.com/linux-nvme/nvme-cli/commit/9444ce03a27b8d423f8170cf75f56d48d8a0a659]
17Signed-off-by: Ryosuke Saito <ryosuke.saito@linaro.org>
18---
19 nvme-print.c | 4 ++++
20 1 file changed, 4 insertions(+)
21
22diff --git a/nvme-print.c b/nvme-print.c
23index 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--
382.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 @@
1From ac4818952c872ba465a2d0f48634f9a79aae064f Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Daniel=20N=C3=A9ri?= <dne+commits@rb67.eu>
3Date: Mon, 11 Nov 2024 22:34:57 +0100
4Subject: [PATCH] plugins/netapp: add include of libgen.h for basename(3)
5 prototype
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Fixes build with musl libc.
11
12Signed-off-by: Daniel Néri <dne+commits@rb67.eu>
13
14Upstream-Status: Backport [https://github.com/linux-nvme/nvme-cli/commit/ac4818952c872ba465a2d0f48634f9a79aae064f]
15Signed-off-by: Ryosuke Saito <ryosuke.saito@linaro.org>
16---
17 plugins/netapp/netapp-nvme.c | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/plugins/netapp/netapp-nvme.c b/plugins/netapp/netapp-nvme.c
21index 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--
332.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 \
8DEPENDS = "json-c libnvme" 8DEPENDS = "json-c libnvme"
9SRCREV = "9f34fcb12e3ab098e9b30e0f31e92cefb497cc42" 9SRCREV = "9f34fcb12e3ab098e9b30e0f31e92cefb497cc42"
10 10
11SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https" 11SRC_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
13S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
14 16