summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2023-09-02 00:18:16 -0400
committerSam James <sam@gentoo.org>2023-09-06 09:36:00 +0100
commit9a95714a5b34a03ac5bec527b5b2ccff2de9c888 (patch)
treea67acd90cac17e120e110c15b15fced91f8abd0a /sys-block
parentsys-block/thin-provisioning-tools: update LICENSE (diff)
downloadgentoo-9a95714a5b34a03ac5bec527b5b2ccff2de9c888.tar.gz
gentoo-9a95714a5b34a03ac5bec527b5b2ccff2de9c888.tar.bz2
gentoo-9a95714a5b34a03ac5bec527b5b2ccff2de9c888.zip
sys-block/thin-provisioning-tools: add io-uring USE flag
Add experimental support for io uring. Signed-off-by: Peter Levine <plevine457@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/thin-provisioning-tools/metadata.xml3
-rw-r--r--sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild6
2 files changed, 9 insertions, 0 deletions
diff --git a/sys-block/thin-provisioning-tools/metadata.xml b/sys-block/thin-provisioning-tools/metadata.xml
index 15dea8bd8d8e..35126c511402 100644
--- a/sys-block/thin-provisioning-tools/metadata.xml
+++ b/sys-block/thin-provisioning-tools/metadata.xml
@@ -8,6 +8,9 @@
<email>base-system@gentoo.org</email>
<name>Gentoo Base System</name>
</maintainer>
+ <use>
+ <flag name="io-uring">Enable experimental support for io-uring.</flag>
+ </use>
<upstream>
<remote-id type="github">jthornber/thin-provisioning-tools</remote-id>
</upstream>
diff --git a/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild b/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild
index 6954b9ad8878..ae24da6e182e 100644
--- a/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild
+++ b/sys-block/thin-provisioning-tools/thin-provisioning-tools-9999.ebuild
@@ -151,6 +151,7 @@ fi
LICENSE="Apache-2.0 BSD GPL-3 MIT Unicode-DFS-2016"
SLOT="0"
+IUSE="io-uring"
# Rust
QA_FLAGS_IGNORED="usr/sbin/pdata_tools"
@@ -164,6 +165,11 @@ src_unpack() {
fi
}
+src_configure() {
+ local myfeatures=( $(usev io-uring io_uring) )
+ cargo_src_configure
+}
+
src_compile() {
emake V= STRIP=true
}