Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

98.11. libnvme-1.16.2

C library for NVM Express on Linux

1.16.2-1 · LGPL-2.1-or-later · 0.6 SBU · 2.1 MiB, 1076 files · 41_system, 392 of 1047 · ports/core/disk/libnvme

Homepage: https://github.com/linux-nvme/libnvme

Depends on: meson, ninja, json-c, openssl, keyutils.

Required by (2): libblockdev, lvm2.

Sources: libnvme-1.16.2.tar.gz (819.1 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libnvme'

build.sh:

meson setup build \
	--prefix=/usr \
	--sysconfdir=/etc \
	--libdir=lib \
	--buildtype=release \
	-Ddocs=man \
	-Dtests=false \
	-Dexamples=false \
	-Dpython=disabled \
	-Dopenssl=enabled \
	-Dkeyutils=enabled \
	-Djson-c=enabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

Libraries: libnvme-mi.so, libnvme.so.

Directories: /usr/include/nvme, /usr/share/licenses/libnvme.