Skip to contentSkip to conversation

package/libnvme: fix build error

PATCH In review Bernd Kuhls 3 participants 3 messages Nov 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libnvme: fix build error

Added upstream patch to fix build error caused by version bump to 1.16 by buildroot commit 12500fb060997a0c76daa72521615038c8514d25.

---
 ...ng-cross-builds-with-OpenSSL-enabled.patch | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 package/libnvme/0001-build-avoid-breaking-cross-builds-with-OpenSSL-enabled.patch
package/libnvme/0001-build-avoid-breaking-cross-builds-with-OpenSSL-enabled.patch new file +31 -0
new file mode 100644
index 0000000000..7cf91fd98e
@@ -0,0 +1,31 @@
+From 82066e5f46d743e7a7cf396be7f95e577084b93e Mon Sep 17 00:00:00 2001
+From: Daniel Wagner <[email protected]>
+Date: Thu, 6 Nov 2025 08:10:27 +0100
+Subject: [PATCH] build: avoid breaking cross builds with OpenSSL enabled
+
+The OpenSSL sanity check wants to be executed, thus we should only try
+this if it's possible. Since this is just a warning, we can just skip it
+if it is not possible.
+
+Signed-off-by: Daniel Wagner <[email protected]>
+
+Upstream: https://github.com/linux-nvme/libnvme/pull/1090
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index dce5c68e..6d1f5204 100644
+--- a/meson.build
++++ b/meson.build
+@@ -252,7 +252,7 @@ else
+   conf.set('fallthrough', 'do {} while (0) /* fallthrough */')
+ endif
+ 
+-if openssl_dep.found()
++if openssl_dep.found() and meson.can_run_host_binaries()
+   if openssl_dep.type_name() != 'internal'
+     # Check for a bug in the EVP_PKEY_CTX_add1_hkdf_info implementation
+     res = cc.run(
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v1 1/1
#1 lore raw

Hi Bernd,

Quoted 6 lines

Il giorno 6 nov 2025, alle ore 19:31, Bernd Kuhls <[email protected]> ha scritto:

Added upstream patch to fix build error caused by version bump to 1.16 by buildroot commit 12500fb060997a0c76daa72521615038c8514d25.

Thank you
Best regards

Giulio

Quoted 43 lines

---
...ng-cross-builds-with-OpenSSL-enabled.patch | 31 +++++++++++++++++++

1 file changed, 31 insertions(+)

create mode 100644 package/libnvme/0001-build-avoid-breaking-cross-builds-with-OpenSSL-enabled.patch

package/libnvme/0001-build-avoid-breaking-cross-builds-with-OpenSSL-enabled.patch new file +31 -1
new file mode 100644
index 0000000000..7cf91fd98e
@@ -0,0 +1,31 @@
+From 82066e5f46d743e7a7cf396be7f95e577084b93e Mon Sep 17 00:00:00 2001
+From: Daniel Wagner <[email protected]>
+Date: Thu, 6 Nov 2025 08:10:27 +0100
+Subject: [PATCH] build: avoid breaking cross builds with OpenSSL enabled
+
+The OpenSSL sanity check wants to be executed, thus we should only try
+this if it's possible. Since this is just a warning, we can just skip it
+if it is not possible.
+
+Signed-off-by: Daniel Wagner <[email protected]>
+
+Upstream: https://github.com/linux-nvme/libnvme/pull/1090
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index dce5c68e..6d1f5204 100644
+--- a/meson.build
++++ b/meson.build
+@@ -252,7 +252,7 @@ else
+   conf.set('fallthrough', 'do {} while (0) /* fallthrough */')
+ endif
+
+-if openssl_dep.found()
++if openssl_dep.found() and meson.can_run_host_binaries()
+   if openssl_dep.type_name() != 'internal'
+     # Check for a bug in the EVP_PKEY_CTX_add1_hkdf_info implementation
+     res = cc.run(
--
Quoted 2 lines

2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot