diff mbox series

[meta-oe,24/55] nvme-cli: upgrade 2.16 -> 3.2

Message ID 20261125080732.2419614-30-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-multimedia] clightd: Port ALS sensor to libiio 1.0 | expand

Commit Message

Khem Raj Nov. 25, 2026, 8:06 a.m. UTC
- libnvme is now part of nvme-cli as libnvme3 (libnvme3.so.1,
  libnvme3.pc, headers in include/libnvme3) with NVMe 2.4 renames
  in its API; the separate libnvme 1.x library is no longer used
- nvme-fabrics.conf(.d) INI configuration replaces config.json and
  discovery.conf (converted on first use); key commands moved to
  "nvme keys", DH-HMAC-CHAP is now KX-HMAC-CHAP
- new nvme-discoverd and nvme-keysd daemons, nvme top, ownership
  registry/exclusion list, privsep and sandbox (tech previews)
- strict command line parsing: long options need two dashes and the
  full name, numbers are parsed strictly, --help goes to stdout
- gen-hostnqn must run as root; Meson >= 1.0 is required

Drop the libnvme dependency; the libnvme recipe stays for libblockdev,
sedutil and NetworkManager, which use the 1.x API. Package the bundled
library as libnvme3 with its own license. Pin the autodetected
dependencies with PACKAGECONFIGs: keyutils and openssl on (as in the
libnvme recipe), libarchive, libdbus, libkmod, liburing and
nvme-discoverd (needs systemd) off; with nvme-discoverd off the legacy
nvmf-autoconnect units, udev rules and dracut config are installed as
before. Disable python bindings, nvme-keysd, tests and examples.
Package the new NetworkManager dispatcher script. Drop the
-Wno-error=incompatible-pointer-types workaround, the virtium plugin
now uses time_t. Add UPSTREAM_CHECK_GITTAGREGEX.

License-Update: ccan/licenses/ replaced by a LICENSES/ directory
(CC0-1.0, MIT, LGPL-2.1-or-later, LicenseRef-Gary-S-Brown-CRC32 for
the shared crc32 code); LICENSE adds GPL-2.0-or-later,
LGPL-2.1-or-later (bundled libnvme and shared code) and the CRC32
notice.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.16.bb | 34 ------------
 meta-oe/recipes-bsp/nvme-cli/nvme-cli_3.2.bb  | 52 +++++++++++++++++++
 2 files changed, 52 insertions(+), 34 deletions(-)
 delete mode 100644 meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.16.bb
 create mode 100644 meta-oe/recipes-bsp/nvme-cli/nvme-cli_3.2.bb
diff mbox series

Patch

diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.16.bb b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.16.bb
deleted file mode 100644
index 397537417e..0000000000
--- a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.16.bb
+++ /dev/null
@@ -1,34 +0,0 @@ 
-SUMMARY = "NVMe management command line interface"
-HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
-SECTION = "console/utils"
-LICENSE = "CC0-1.0 AND GPL-2.0-only AND MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022 \
-                    file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \
-                    file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2"
-DEPENDS = "json-c libnvme"
-SRCREV = "faf7326a2997dea91687fd3daa17fc405910a4c1"
-
-SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https;tag=v${PV}"
-
-inherit bash-completion meson pkgconfig systemd
-
-EXTRA_OEMESON += "-Dsystemddir=${systemd_unitdir}/system"
-
-pkg_postinst_ontarget:${PN}-user () {
-    ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
-    ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
-}
-
-PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion ${PN}-user"
-
-FILES:${PN} += "${systemd_system_unitdir}"
-FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d"
-FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions"
-ALLOW_EMPTY:${PN}-user = "1"
-
-RDEPENDS:${PN}-user = "util-linux-uuidgen"
-
-# This one is reproducible only on 32bit MACHINEs
-# http://errors.yoctoproject.org/Errors/Details/766964/
-# git/plugins/virtium/virtium-nvme.c:205:63: error: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
-CFLAGS += "-Wno-error=incompatible-pointer-types"
diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_3.2.bb b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_3.2.bb
new file mode 100644
index 0000000000..95365e17e7
--- /dev/null
+++ b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_3.2.bb
@@ -0,0 +1,52 @@ 
+SUMMARY = "NVMe management command line interface"
+HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
+SECTION = "console/utils"
+LICENSE = "GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND CC0-1.0 AND MIT AND LicenseRef-Gary-S-Brown-CRC32"
+LICENSE:libnvme3 = "LGPL-2.1-or-later AND CC0-1.0 AND MIT AND LicenseRef-Gary-S-Brown-CRC32"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022 \
+                    file://LICENSES/LGPL-2.1-or-later.txt;md5=310c7c93cf5181c6b0cc8229a1f3c6f6 \
+                    file://LICENSES/CC0-1.0.txt;md5=65d3616852dbf7b1a6d4b53b00626032 \
+                    file://LICENSES/MIT.txt;md5=3912d958d00bac4a6b550f75d7c806bb \
+                    file://LICENSES/LicenseRef-Gary-S-Brown-CRC32.txt;md5=c923b33bfa4944fc9c3d644b16424ff6"
+NO_GENERIC_LICENSE[Gary-S-Brown-CRC32] = "LICENSES/LicenseRef-Gary-S-Brown-CRC32.txt"
+
+DEPENDS = "json-c"
+SRCREV = "ce55132af26607e1904a0f449f94eeae028cfee5"
+
+SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https;tag=v${PV}"
+
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
+
+inherit bash-completion meson pkgconfig systemd
+
+PACKAGECONFIG ??= "keyutils openssl"
+PACKAGECONFIG[discoverd] = "-Dnvme-discoverd=enabled,-Dnvme-discoverd=disabled,systemd"
+PACKAGECONFIG[keyutils] = "-Dkeyutils=enabled,-Dkeyutils=disabled,keyutils"
+PACKAGECONFIG[libarchive] = "-Dlibarchive=enabled,-Dlibarchive=disabled,libarchive"
+PACKAGECONFIG[libdbus] = "-Dlibdbus=enabled,-Dlibdbus=disabled,dbus"
+PACKAGECONFIG[libkmod] = "-Dlibkmod=enabled,-Dlibkmod=disabled,kmod"
+PACKAGECONFIG[liburing] = "-Dliburing=enabled,-Dliburing=disabled,liburing"
+PACKAGECONFIG[openssl] = "-Dopenssl=enabled,-Dopenssl=disabled,openssl"
+
+EXTRA_OEMESON += "-Dsystemddir=${systemd_unitdir}/system \
+                  -Djson-c=enabled \
+                  -Dpython=disabled \
+                  -Dnvme-keysd=disabled \
+                  -Dtests=false \
+                  -Dexamples=false \
+"
+
+pkg_postinst_ontarget:${PN}-user () {
+    ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
+    ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
+}
+
+PACKAGES =+ "libnvme3 ${PN}-dracut ${PN}-zsh-completion ${PN}-user"
+
+FILES:libnvme3 = "${libdir}/libnvme3${SOLIBS}"
+FILES:${PN} += "${systemd_system_unitdir} ${nonarch_libdir}/NetworkManager"
+FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d"
+FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions"
+ALLOW_EMPTY:${PN}-user = "1"
+
+RDEPENDS:${PN}-user = "util-linux-uuidgen"