sys-apps/azure-nvme-utils: Bump to 0.2.0, drop old 0.1.3

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot
2024-07-09 15:52:15 +01:00
parent 4edae64ba7
commit 8b8a0bbb4d
3 changed files with 2 additions and 42 deletions
+1 -1
View File
@@ -1 +1 @@
DIST azure-nvme-utils-0.1.3.tar.gz 11365 BLAKE2B 97b040a6cdacdd1e8eede89b16722a8e870c6027f0318ce0700ce4087f93fb2df7b25ab3154567548a1704cd9585a4f0cda3cf2bdde408990a715b96639225b4 SHA512 42b6ada9ec2db9d53e4b7f9b4a4dc581a06af2954c0da94a5851ed88b66cc2d349c3b6b3a7d4bcf73a68094620df4cd9d480dde31edaf9b80d5235129b634fa8
DIST azure-nvme-utils-0.2.0.tar.gz 13177 BLAKE2B 5c486d035422ea6547e2886324e0b6e2537d11089bc0b3dfd550130e82ab8de8cc9a5be8e3bfd0722cb71c17a66c261f0cfd021e4a48e5568de01dd0c052fbbc SHA512 4ef2de641839bfbcc2e1a084cec218d1105550366770d731bb7a3e5d4b4e45a47b21ccf9a3a8069f469389e1d27e485bfed235a55d398930bddc8829eebc2708
@@ -11,21 +11,12 @@ SRC_URI="https://github.com/Azure/${PN}/archive/refs/tags/v${PV}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="doc +lun-fallback"
BDEPEND="
doc? ( virtual/pandoc )
"
PATCHES=(
"${FILESDIR}"/${PN}-werror.patch
)
IUSE="+lun-fallback"
src_configure() {
local mycmakeargs=(
-DAZURE_LUN_CALCULATION_BY_NSID_ENABLED=$(usex lun-fallback)
-DUDEV_RULES_INSTALL_DIR="$(get_udevdir)/rules.d"
-DPANDOC_EXECUTABLE="$(usex doc "${BROOT}"/usr/bin/pandoc no)"
)
cmake_src_configure
}
@@ -1,31 +0,0 @@
From d4afc19a9432e1b7c25269732d18143263f87404 Mon Sep 17 00:00:00 2001
From: James Le Cuirot <jlecuirot@microsoft.com>
Date: Fri, 3 May 2024 12:52:04 +0100
Subject: [PATCH] cmake: Only enable -Werror for debug builds
-Werror is very unhelpful for distributions and end users as different
(usually newer) compilers will raise warnings that the maintainers may
not see. The warnings should get reported upstream, but they shouldn't
block users from using the software.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d3cd4b..75db578 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,7 @@ include(cmake/doc.cmake)
include(CTest)
enable_testing()
-add_compile_options(-Wextra -Wall -Werror -std=gnu11 -D_GNU_SOURCE=1)
+add_compile_options(-Wextra -Wall $<$<CONFIG:Debug>:-Werror> -std=gnu11 -D_GNU_SOURCE=1)
add_executable(azure-nvme-id src/main.c)
set(AZURE_NVME_ID_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/sbin")
--
2.44.0