commit:     4e25903c6dc87f7174da5d7abad9e0aae083374d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 14 06:36:23 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 14 06:36:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e25903c

sys-apps/nvme-cli: drop 2.9.1, 2.10.2

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/nvme-cli/Manifest                         |   2 -
 .../files/nvme-cli-2.9.1-musl-stdint.patch         | 107 ---------------------
 sys-apps/nvme-cli/files/nvme-cli-2.9.1-musl.patch  |  28 ------
 sys-apps/nvme-cli/nvme-cli-2.10.2.ebuild           |  49 ----------
 sys-apps/nvme-cli/nvme-cli-2.9.1.ebuild            |  53 ----------
 5 files changed, 239 deletions(-)

diff --git a/sys-apps/nvme-cli/Manifest b/sys-apps/nvme-cli/Manifest
index 2c6a09785c1c..05de59a9c1cc 100644
--- a/sys-apps/nvme-cli/Manifest
+++ b/sys-apps/nvme-cli/Manifest
@@ -1,3 +1 @@
-DIST nvme-cli-2.10.2.gh.tar.gz 990461 BLAKE2B 
d674f2c752eee9178cf3f1f871d1bc345632f4cbf7f354b1e345830a3bf88b505eddb835d774d6ebadbee50a79614f49dd1eef58d1374a075fd59eb551c251c8
 SHA512 
98ecb2488cdf21c83004204f4cb7e7d9327fef5a33e5a37d977c659d76be3cef861473676fa7fbd1d40f38742b365b98431e17d9b0318ddb4cc407953acdde87
 DIST nvme-cli-2.11.gh.tar.gz 1023249 BLAKE2B 
c60765aaf8343adb29b2b042223accdd1ac4b132eaab77eec777c7aaf8f135d03b227ca915ef49ef9c67bec1dc89d43b782c38683c0d5e8fde8c997d17bd7347
 SHA512 
33de20ad990a3b87fef46fa486832edde41907223aa6b8a47606e605b360745fd7e2054226bf93a59b2a09c6bc04d0b684e4b3bb27c3fc0e6110c64a558cadc0
-DIST nvme-cli-2.9.1.gh.tar.gz 932210 BLAKE2B 
865808c17f2098f8d0be8ba928869801023f77f0ffd44b5d2424b9f75e01180f8d1990684e3e4a79363e650a44e58abe213b5ab55328f0bde9ed699eba9a215c
 SHA512 
c9c86e7567c2d4c59aff1eb9d18f4775923db3c81a89c628b819121c32150d4bc2d65d0dacac764c64594369890b380d0fd06bc7c1f83f4a7f3e71a51a6fee24

diff --git a/sys-apps/nvme-cli/files/nvme-cli-2.9.1-musl-stdint.patch 
b/sys-apps/nvme-cli/files/nvme-cli-2.9.1-musl-stdint.patch
deleted file mode 100644
index 6ecdac41e3cc..000000000000
--- a/sys-apps/nvme-cli/files/nvme-cli-2.9.1-musl-stdint.patch
+++ /dev/null
@@ -1,107 +0,0 @@
-https://github.com/linux-nvme/nvme-cli/pull/2332
-
-From 61bbd959bc069e4552e50a276b8a0e1487545ec2 Mon Sep 17 00:00:00 2001
-From: Sam James <[email protected]>
-Date: Sat, 4 May 2024 09:13:06 +0100
-Subject: [PATCH 1/2] Use C99 types for uint32_t
-
-<stdint.h> provides `uint32_t`, while `u_int_32` is an unofficial/internal
-typedef that glibc happens to provide. This fixes the build on musl.
-
-Bug: https://bugs.gentoo.org/931194
-Signed-off-by: Sam James <[email protected]>
---- a/nvme.c
-+++ b/nvme.c
-@@ -34,6 +34,7 @@
- #include <inttypes.h>
- #include <locale.h>
- #include <stdio.h>
-+#include <stdint.h>
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
-@@ -9075,8 +9076,8 @@ static int check_dhchap_key(int argc, char **argv, 
struct command *command, stru
- 
-       unsigned char decoded_key[128];
-       unsigned int decoded_len;
--      u_int32_t crc = crc32(0L, NULL, 0);
--      u_int32_t key_crc;
-+      uint32_t crc = crc32(0L, NULL, 0);
-+      uint32_t key_crc;
-       int err = 0, hmac;
-       struct config {
-               char    *key;
-@@ -9144,10 +9145,10 @@ static int check_dhchap_key(int argc, char **argv, 
struct command *command, stru
-               return -EINVAL;
-       }
-       crc = crc32(crc, decoded_key, decoded_len);
--      key_crc = ((u_int32_t)decoded_key[decoded_len]) |
--                 ((u_int32_t)decoded_key[decoded_len + 1] << 8) |
--                 ((u_int32_t)decoded_key[decoded_len + 2] << 16) |
--                 ((u_int32_t)decoded_key[decoded_len + 3] << 24);
-+      key_crc = ((uint32_t)decoded_key[decoded_len]) |
-+                 ((uint32_t)decoded_key[decoded_len + 1] << 8) |
-+                 ((uint32_t)decoded_key[decoded_len + 2] << 16) |
-+                 ((uint32_t)decoded_key[decoded_len + 3] << 24);
-       if (key_crc != crc) {
-               nvme_show_error("CRC mismatch (key %08x, crc %08x)", key_crc, 
crc);
-               return -EINVAL;
---- a/util/base64.c
-+++ b/util/base64.c
-@@ -20,6 +20,7 @@
-  * MA  02110-1301, USA.
-  */
- 
-+#include <stdint.h>
- #include <stdlib.h>
- #include <string.h>
- #include <errno.h>
-@@ -42,7 +43,7 @@ static const char base64_table[65] =
- int base64_encode(const unsigned char *src, int srclen, char *dst)
- {
-       int i, bits = 0;
--      u_int32_t ac = 0;
-+      uint32_t ac = 0;
-       char *cp = dst;
- 
-       for (i = 0; i < srclen; i++) {
-@@ -77,7 +78,7 @@ int base64_encode(const unsigned char *src, int srclen, char 
*dst)
-  */
- int base64_decode(const char *src, int srclen, unsigned char *dst)
- {
--      u_int32_t ac = 0;
-+      uint32_t ac = 0;
-       int i, bits = 0;
-       unsigned char *bp = dst;
- 
-
-From 51208e30da0bfb12340d3a4f3afa0472312a8541 Mon Sep 17 00:00:00 2001
-From: Sam James <[email protected]>
-Date: Sat, 4 May 2024 09:15:03 +0100
-Subject: [PATCH 2/2] `u_char` -> `unsigned char`
-
-`u_char` is not a standard name for `unsigned char` and may not work;
-some implementations may provide it for convenience.
-
-Signed-off-by: Sam James <[email protected]>
---- a/plugins/innogrit/typedef.h
-+++ b/plugins/innogrit/typedef.h
-@@ -53,14 +53,14 @@ struct vsc_smart_log {
-       unsigned int low_pwr_cnt;
-       unsigned int wa;
-       unsigned int ps3_entry_cnt;
--      u_char highest_temp[4];
-+      unsigned char highest_temp[4];
-       unsigned int weight_ec;
-       unsigned int slc_cap_mb;
-       unsigned long long nand_page_write_cnt;
-       unsigned int program_error_cnt;
-       unsigned int erase_error_cnt;
--      u_char flash_type;
--      u_char reserved2[3];
-+      unsigned char flash_type;
-+      unsigned char reserved2[3];
-       unsigned int hs_crc_err_cnt;
-       unsigned int ddr_ecc_err_cnt;
-       unsigned int reserved3[44];
-

diff --git a/sys-apps/nvme-cli/files/nvme-cli-2.9.1-musl.patch 
b/sys-apps/nvme-cli/files/nvme-cli-2.9.1-musl.patch
deleted file mode 100644
index de7b488cc25d..000000000000
--- a/sys-apps/nvme-cli/files/nvme-cli-2.9.1-musl.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-https://bugs.gentoo.org/934081
-https://github.com/linux-nvme/nvme-cli/commit/650070ad5d4a97fc87f9018743e3b566deba36c8
-
-From 650070ad5d4a97fc87f9018743e3b566deba36c8 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Tue, 21 May 2024 14:09:32 -0700
-Subject: [PATCH] plugins/ssstc: Replace __uint16_t with uint16_t
-
-uint16_t is ISO defined and comes from stdint.h, makes it
-portable across glibc and musl on linux.
-
-Signed-off-by: Khem Raj <[email protected]>
---- a/plugins/ssstc/ssstc-nvme.c
-+++ b/plugins/ssstc/ssstc-nvme.c
-@@ -64,9 +64,9 @@ void show_ssstc_add_smart_log_jsn(struct 
nvme_additional_smart_log *smart,
-               unsigned int nsid, const char *devname)
- {
-       struct json_object *root, *entry_stats, *dev_stats, *multi;
--      __uint16_t wear_level_min = 0;
--      __uint16_t wear_level_max = 0;
--      __uint16_t wear_level_avg = 0;
-+      uint16_t wear_level_min = 0;
-+      uint16_t wear_level_max = 0;
-+      uint16_t wear_level_avg = 0;
-       uint64_t raw_val = 0;
- 
-       root = json_create_object();
-

diff --git a/sys-apps/nvme-cli/nvme-cli-2.10.2.ebuild 
b/sys-apps/nvme-cli/nvme-cli-2.10.2.ebuild
deleted file mode 100644
index 3bcbb78bf70d..000000000000
--- a/sys-apps/nvme-cli/nvme-cli-2.10.2.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit meson systemd udev
-
-DESCRIPTION="NVM-Express user space tooling for Linux"
-HOMEPAGE="https://github.com/linux-nvme/nvme-cli";
-SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
-
-LICENSE="GPL-2 GPL-2+"
-SLOT="0"
-KEYWORDS="amd64 arm64 ~loong ppc64 ~riscv ~sparc x86"
-IUSE="+json pdc"
-
-RDEPEND="
-       >=sys-libs/libnvme-1.10:=[json?]
-       json? ( dev-libs/json-c:= )
-       sys-libs/zlib:=
-"
-DEPEND="
-       ${RDEPEND}
-       virtual/os-headers
-"
-BDEPEND="
-       virtual/pkgconfig
-"
-
-src_configure() {
-       local emesonargs=(
-               -Dversion-tag="${PV}"
-               -Ddocs=all
-               -Dhtmldir="${EPREFIX}/usr/share/doc/${PF}/html"
-               -Dsystemddir="$(systemd_get_systemunitdir)"
-               -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
-               $(meson_feature json json-c)
-               $(meson_use pdc pdc-enabled)
-       )
-       meson_src_configure
-}
-
-pkg_postinst() {
-       udev_reload
-}
-
-pkg_postrm() {
-       udev_reload
-}

diff --git a/sys-apps/nvme-cli/nvme-cli-2.9.1.ebuild 
b/sys-apps/nvme-cli/nvme-cli-2.9.1.ebuild
deleted file mode 100644
index 0732d81affd6..000000000000
--- a/sys-apps/nvme-cli/nvme-cli-2.9.1.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit meson systemd udev
-
-DESCRIPTION="NVM-Express user space tooling for Linux"
-HOMEPAGE="https://github.com/linux-nvme/nvme-cli";
-SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
-
-LICENSE="GPL-2 GPL-2+"
-SLOT="0"
-KEYWORDS="amd64 arm64 ~loong ppc64 ~riscv ~sparc x86"
-IUSE="+json"
-
-RDEPEND="
-       >=sys-libs/libnvme-1.9:=[json?]
-       json? ( dev-libs/json-c:= )
-       sys-libs/zlib:=
-"
-DEPEND="
-       ${RDEPEND}
-       virtual/os-headers
-"
-BDEPEND="
-       virtual/pkgconfig
-"
-
-PATCHES=(
-       "${FILESDIR}"/${PN}-2.9.1-musl-stdint.patch
-       "${FILESDIR}"/${PN}-2.9.1-musl.patch
-)
-
-src_configure() {
-       local emesonargs=(
-               -Dversion-tag="${PV}"
-               -Ddocs=all
-               -Dhtmldir="${EPREFIX}/usr/share/doc/${PF}/html"
-               -Dsystemddir="$(systemd_get_systemunitdir)"
-               -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
-               $(meson_feature json json-c)
-       )
-       meson_src_configure
-}
-
-pkg_postinst() {
-       udev_reload
-}
-
-pkg_postrm() {
-       udev_reload
-}

Reply via email to