mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-08 23:51:08 -09:00
package/libnvme: bump to version 1.14
Add local patch to avoid build failure on examples folder that we don't need. That build failure is due to missing bits/pthreadtypes.h on musl and since we don't need examples at all let's disable its building by passing -Dexamples=false. For release note, see: https://github.com/linux-nvme/libnvme/releases/tag/v1.14 Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> [Julien: add the "Upstream:" link in patch] Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
fd5628e5dc
commit
c2fdcebc6e
46
package/libnvme/0001-Make-examples-build-selectable.patch
Normal file
46
package/libnvme/0001-Make-examples-build-selectable.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
From 6c0b9ad7822d9e9c74b787914cb766d27a358258 Mon Sep 17 00:00:00 2001
|
||||
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
|
||||
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 <giulio.benetti@benettiengineering.com>
|
||||
---
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user