commit: f908799e1426c93655cbbab52652ae8ca28e7b89 Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Wed May 18 07:25:17 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Wed May 18 10:37:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f908799e
sys-apps/plocate: only check for io-uring kernel config if USE enabled Closes: https://bugs.gentoo.org/844883 Closes: https://github.com/gentoo/gentoo/pull/25546 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> sys-apps/plocate/plocate-1.1.15.ebuild | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys-apps/plocate/plocate-1.1.15.ebuild b/sys-apps/plocate/plocate-1.1.15.ebuild index 3fb8c7c34d07..5df0276d30a1 100644 --- a/sys-apps/plocate/plocate-1.1.15.ebuild +++ b/sys-apps/plocate/plocate-1.1.15.ebuild @@ -24,13 +24,18 @@ RDEPEND=" " DEPEND="${RDEPEND}" -CONFIG_CHECK="~IO_URING" -ERROR_IO_URING="required for USE=io-uring" - PATCHES=( "${FILESDIR}"/${PN}-1.1.15-meson-use-feature-option-for-libiouring.patch ) +pkg_setup() { + if use io-uring && linux_config_exists; then + if ! linux_chkconfig_present IO_URING; then + ewarn "CONFIG_IO_URING must be enabled for USE=io-uring" + fi + fi +} + src_prepare() { # We'll install the manpage ourself to locate.1 sed -i "/install_man('plocate.1')/d" meson.build || die