From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1398159-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id F2E55158090
	for <garchives@archives.gentoo.org>; Wed, 18 May 2022 10:37:56 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 378AEE0956;
	Wed, 18 May 2022 10:37:56 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 16371E0956
	for <gentoo-commits@lists.gentoo.org>; Wed, 18 May 2022 10:37:56 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id E585134193F
	for <gentoo-commits@lists.gentoo.org>; Wed, 18 May 2022 10:37:54 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 85ED646A
	for <gentoo-commits@lists.gentoo.org>; Wed, 18 May 2022 10:37:53 +0000 (UTC)
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" <flow@gentoo.org>
Message-ID: <1652870268.f908799e1426c93655cbbab52652ae8ca28e7b89.flow@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/plocate/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-apps/plocate/plocate-1.1.15.ebuild
X-VCS-Directories: sys-apps/plocate/
X-VCS-Committer: flow
X-VCS-Committer-Name: Florian Schmaus
X-VCS-Revision: f908799e1426c93655cbbab52652ae8ca28e7b89
X-VCS-Branch: master
Date: Wed, 18 May 2022 10:37:53 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 66795fc0-8f7a-46f0-8530-6a5d19d5b482
X-Archives-Hash: 9ca80eace2357c6bee98e64a2aa68874

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