summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-10-17 05:27:13 +0100
committerSam James <sam@gentoo.org>2024-10-17 05:29:00 +0100
commit07fb585882958d34f256654918550abae39d6ac2 (patch)
tree839392d22f23782c003ec310a29399ad86f583cc /sys-block
parentdev-libs/libgcrypt: backport fix for arm asm (diff)
downloadgentoo-07fb585882958d34f256654918550abae39d6ac2.tar.gz
gentoo-07fb585882958d34f256654918550abae39d6ac2.tar.bz2
gentoo-07fb585882958d34f256654918550abae39d6ac2.zip
sys-block/thin-provisioning-tools: patch out linting from rio crate
Affects USE=io-uring. This broke with nightly, just drop the unused_qualifications linting. Closes: https://bugs.gentoo.org/939517 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/thin-provisioning-tools/files/thin-provisioning-tools-1.1.0-rio-nightly.patch11
-rw-r--r--sys-block/thin-provisioning-tools/thin-provisioning-tools-1.1.0.ebuild7
2 files changed, 18 insertions, 0 deletions
diff --git a/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-1.1.0-rio-nightly.patch b/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-1.1.0-rio-nightly.patch
new file mode 100644
index 000000000000..3472b9fbad64
--- /dev/null
+++ b/sys-block/thin-provisioning-tools/files/thin-provisioning-tools-1.1.0-rio-nightly.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/939517
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -130,7 +130,6 @@
+ trivial_casts,
+ trivial_numeric_casts,
+ unsafe_code,
+- unused_qualifications
+ )]
+ #![deny(
+ clippy::cast_lossless,
diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-1.1.0.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-1.1.0.ebuild
index 5611fe2ff14b..361f762d5c9a 100644
--- a/sys-block/thin-provisioning-tools/thin-provisioning-tools-1.1.0.ebuild
+++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-1.1.0.ebuild
@@ -204,6 +204,13 @@ src_unpack() {
fi
}
+src_prepare() {
+ default
+
+ cd "${WORKDIR}"/rio* || die
+ eapply "${FILESDIR}/${PN}-1.1.0-rio-nightly.patch"
+}
+
src_configure() {
local myfeatures=( $(usev io-uring io_uring) )
cargo_src_configure