nvme-cli: update to 2.11
authorJohn Audia <[email protected]>
Sat, 15 Mar 2025 11:19:41 +0000 (07:19 -0400)
committerTianling Shen <[email protected]>
Tue, 25 Mar 2025 11:07:27 +0000 (19:07 +0800)
commitded6ab53aec40f05317ac8e355f38334d01ba5d0
tree51149406a1dcfdf56bc4b5b770e31861658518ff
parentd5d0be8ec051d49b8f94d74047795f3e8ac5c795
nvme-cli: update to 2.11

Bump to latest upstream release.

Removed upstreamed: 020-replace_uint16_t
Manually rebased: 010-gcc14.patch

To fix the following build error, added two commits from upstream:
020-nvme-print-add-fallback-for-.patch
021-pligins-netapp-add-include-of-libgen.h-for-basename.patch

Tested the resulting binary and it seems fine:
% nvme smart-log /dev/nvme0 | grep "temperature"
temperature : 42 °C (315 K)

Link to upstream issue: https://github.com/linux-nvme/nvme-cli/issues/2743

Build error:
../nvme-print.c: In function 'is_temperature_fahrenheit':
../nvme-print.c:805:19: error: 'LC_MEASUREMENT' undeclared (first use in this function)
  805 |         setlocale(LC_MEASUREMENT, "");
      |                   ^~~~~~~~~~~~~~
../nvme-print.c:805:19: note: each undeclared identifier is reported only once for each function it appears in

Build system: x86/64
Build-tested: x86/64
Run-tested: x86/64

Signed-off-by: John Audia <[email protected]>
utils/nvme-cli/Makefile
utils/nvme-cli/patches/010-gcc14.patch
utils/nvme-cli/patches/020-nvme-print-add-fallback-for-.patch [new file with mode: 0644]
utils/nvme-cli/patches/020-replace_uint16_t [deleted file]
utils/nvme-cli/patches/021-pligins-netapp-add-include-of-libgen.h-for-basename.patch [new file with mode: 0644]