diff --git a/package/libnvme/0001-Make-examples-build-selectable.patch b/package/libnvme/0001-Make-examples-build-selectable.patch new file mode 100644 index 0000000000..d3f59a3240 --- /dev/null +++ b/package/libnvme/0001-Make-examples-build-selectable.patch @@ -0,0 +1,46 @@ +From 6c0b9ad7822d9e9c74b787914cb766d27a358258 Mon Sep 17 00:00:00 2001 +From: Giulio Benetti +Date: Tue, 20 May 2025 22:34:16 +0200 +Subject: [PATCH] Make examples build selectable + +Sometimes we don't need to build examples and increase some dependency we +don't have(i.e. bits/pthreadtypes.h in musl) so let's add examples option +true by default. + +Upstream: https://github.com/linux-nvme/libnvme/pull/1014 +Signed-off-by: Giulio Benetti +--- + meson.build | 4 +++- + meson_options.txt | 1 + + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 279245ac..4d819178 100644 +--- a/meson.build ++++ b/meson.build +@@ -282,7 +282,9 @@ subdir('libnvme') + if get_option('tests') + subdir('test') + endif +-subdir('examples') ++if get_option('examples') ++ subdir('examples') ++endif + subdir('doc') + + ################################################################################ +diff --git a/meson_options.txt b/meson_options.txt +index 051b4ae5..48a93dae 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -6,6 +6,7 @@ option('rstdir', type : 'string', value : '', description : 'directory for ReST + + option('docs', type : 'combo', choices : ['false', 'html', 'man', 'rst', 'all'], description : 'install documentation') + option('docs-build', type : 'boolean', value : false, description : 'build documentation') ++option('examples', type : 'boolean', value : true, description : 'build examples') + option('tests', type : 'boolean', value : true, description : 'build tests') + + option('python', type : 'feature', value: 'auto', description : 'Generate libnvme python bindings') +-- +2.39.5 + diff --git a/package/libnvme/libnvme.hash b/package/libnvme/libnvme.hash index 9496401c61..ae2c478ebc 100644 --- a/package/libnvme/libnvme.hash +++ b/package/libnvme/libnvme.hash @@ -1,3 +1,3 @@ # Locally calculated sha256 checksums -sha256 f083c21f525644a2bcca6d367d96fab813de880cba9f1746a850f3a8692a5980 libnvme-1.13.tar.gz +sha256 a7230d6d4959f26cf0c0ef6c9bb479bd94a8c0ec738bf6e164d66c3dc6397e66 libnvme-1.14.tar.gz sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING diff --git a/package/libnvme/libnvme.mk b/package/libnvme/libnvme.mk index 8184c9d0a2..b69e9257cf 100644 --- a/package/libnvme/libnvme.mk +++ b/package/libnvme/libnvme.mk @@ -4,13 +4,14 @@ # ################################################################################ -LIBNVME_VERSION = 1.13 +LIBNVME_VERSION = 1.14 LIBNVME_SITE = $(call github,linux-nvme,libnvme,v$(LIBNVME_VERSION)) LIBNVME_LICENSE = LGPL-2.1 LIBNVME_LICENSE_FILES = COPYING LIBNVME_INSTALL_STAGING = YES LIBNVME_CONF_OPTS += \ + -Dexamples=false \ -Dtests=false ifeq ($(BR2_PACKAGE_PYTHON3),y)