From ad730e7afc99cf9e8ee7645d12bc7cb8c6239fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= Date: Fri, 12 Sep 2025 18:36:50 +0200 Subject: [PATCH] dev-libs/rasqal: fix build with USE=pcre when old libpcre is not installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previously committed upstream patch for libpcre2 support has some dodgy behaviour wrt. the --enable-pcre flag. Instead we can let configure autodetect whatever it finds and then select the library we want (libpcre2 or posix) depending on USE. Also properly depend on libcre2 subslot. Closes: https://bugs.gentoo.org/962785 Signed-off-by: Holger Hoffstätte Part-of: https://github.com/gentoo/gentoo/pull/43756 Closes: https://github.com/gentoo/gentoo/pull/43756 Signed-off-by: Sam James --- dev-libs/rasqal/rasqal-0.9.33-r5.ebuild | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev-libs/rasqal/rasqal-0.9.33-r5.ebuild b/dev-libs/rasqal/rasqal-0.9.33-r5.ebuild index ddecc6b530dd5..74230e78171a5 100644 --- a/dev-libs/rasqal/rasqal-0.9.33-r5.ebuild +++ b/dev-libs/rasqal/rasqal-0.9.33-r5.ebuild @@ -24,7 +24,7 @@ RDEPEND=" !gmp? ( dev-libs/mpfr:= ) gmp? ( dev-libs/gmp:= ) kernel_linux? ( >=sys-apps/util-linux-2.19 ) - pcre? ( dev-libs/libpcre2 ) + pcre? ( dev-libs/libpcre2:= ) xml? ( dev-libs/libxml2:= ) " DEPEND="${RDEPEND}" @@ -58,7 +58,6 @@ src_configure() { local myeconfargs=( --with-decimal=$(usex gmp gmp mpfr) --with-uuid-library=$(usex kernel_linux libuuid internal) - $(use_enable pcre) --with-regex-library=$(usex pcre pcre2 posix) $(use_enable static-libs static) $(use_enable xml xml2)