Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/plocate/
Date: Wed, 18 May 2022 10:37:56
Message-Id: 1652870268.f908799e1426c93655cbbab52652ae8ca28e7b89.flow@gentoo
1 commit: f908799e1426c93655cbbab52652ae8ca28e7b89
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 18 07:25:17 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Wed May 18 10:37:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f908799e
7
8 sys-apps/plocate: only check for io-uring kernel config if USE enabled
9
10 Closes: https://bugs.gentoo.org/844883
11 Closes: https://github.com/gentoo/gentoo/pull/25546
12 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
13
14 sys-apps/plocate/plocate-1.1.15.ebuild | 11 ++++++++---
15 1 file changed, 8 insertions(+), 3 deletions(-)
16
17 diff --git a/sys-apps/plocate/plocate-1.1.15.ebuild b/sys-apps/plocate/plocate-1.1.15.ebuild
18 index 3fb8c7c34d07..5df0276d30a1 100644
19 --- a/sys-apps/plocate/plocate-1.1.15.ebuild
20 +++ b/sys-apps/plocate/plocate-1.1.15.ebuild
21 @@ -24,13 +24,18 @@ RDEPEND="
22 "
23 DEPEND="${RDEPEND}"
24
25 -CONFIG_CHECK="~IO_URING"
26 -ERROR_IO_URING="required for USE=io-uring"
27 -
28 PATCHES=(
29 "${FILESDIR}"/${PN}-1.1.15-meson-use-feature-option-for-libiouring.patch
30 )
31
32 +pkg_setup() {
33 + if use io-uring && linux_config_exists; then
34 + if ! linux_chkconfig_present IO_URING; then
35 + ewarn "CONFIG_IO_URING must be enabled for USE=io-uring"
36 + fi
37 + fi
38 +}
39 +
40 src_prepare() {
41 # We'll install the manpage ourself to locate.1
42 sed -i "/install_man('plocate.1')/d" meson.build || die