summaryrefslogtreecommitdiff
path: root/dev-libs/libpcre2
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 11:50:53 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 11:50:53 -0500
commit290aebdea65a02557706eaeda477fef0437b6a48 (patch)
treef87a939169a508a2e943570501b64cc16b411cda /dev-libs/libpcre2
parent6783ddcd4b73d9ce586a71770caed352bec93b16 (diff)
downloadbaldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz
baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz
baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip
Adding metadata
Diffstat (limited to 'dev-libs/libpcre2')
-rw-r--r--dev-libs/libpcre2/Manifest2
-rw-r--r--dev-libs/libpcre2/files/libpcre2-10.10-000-Fix-multilib.patch37
-rw-r--r--dev-libs/libpcre2/files/libpcre2-10.47-constness.patch48
-rw-r--r--dev-libs/libpcre2/files/libpcre2-10.47-riscv.patch118
-rw-r--r--dev-libs/libpcre2/libpcre2-10.47.ebuild116
-rw-r--r--dev-libs/libpcre2/metadata.xml31
6 files changed, 0 insertions, 352 deletions
diff --git a/dev-libs/libpcre2/Manifest b/dev-libs/libpcre2/Manifest
deleted file mode 100644
index a051b362802a..000000000000
--- a/dev-libs/libpcre2/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST pcre2-10.47.tar.bz2 2145789 BLAKE2B 9b56eddbc8b6fd6ce925575c337891c4f7790215c77325c1f0ad4a72be07e2a2a6a6b6638a5a2c49d1da6f4715320f240fd17c4ffcb77d1bb00875b990d6ee13 SHA512 889a6fdc80f8a7285e4a75d189c183b4588df81bdf048302cf0830e11bbf9b9eeb387ba43dfd3aff8ffb3aa693291e8c535845c06e8ce92d1028cefa6b474804
-DIST pcre2-10.47.tar.bz2.sig 566 BLAKE2B 0bfe968f32c410a49bf1120b05027d3171b38fdd8fd4d9d77e58cad4811770ef9cabcc3275556116a5cfe28784fc5faa0c5f5bf959e7aae9d6ef2f491ffbb936 SHA512 fbea8f001533c700e0adae881d2d13f2a5f32c272cb1323fd6b76530b011fb3e8eafdc6eb762c36d91296f66fe2fe3861887d6f5219045a2dad8de55f3825051
diff --git a/dev-libs/libpcre2/files/libpcre2-10.10-000-Fix-multilib.patch b/dev-libs/libpcre2/files/libpcre2-10.10-000-Fix-multilib.patch
deleted file mode 100644
index c216aa62d279..000000000000
--- a/dev-libs/libpcre2/files/libpcre2-10.10-000-Fix-multilib.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 8b6b10229201e5b148979a24e06c640dbbcfbad9 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Fri, 20 Feb 2015 14:34:26 +0100
-Subject: [PATCH] Fix multilib
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Do not set RPATH nor add explicit -L path to compiler.
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
-
---- a/pcre2-config.in
-+++ b/pcre2-config.in
-@@ -28,19 +28,7 @@ if test $# -eq 0; then
- fi
-
- libR=
--case `uname -s` in
-- *SunOS*)
-- libR=" -R@libdir@"
-- ;;
-- *BSD*)
-- libR=" -Wl,-R@libdir@"
-- ;;
--esac
--
- libS=
--if test @libdir@ != /usr/lib ; then
-- libS=-L@libdir@
--fi
-
- while test $# -gt 0; do
- case "$1" in
---
-2.1.0
-
diff --git a/dev-libs/libpcre2/files/libpcre2-10.47-constness.patch b/dev-libs/libpcre2/files/libpcre2-10.47-constness.patch
deleted file mode 100644
index 8f7025371ddd..000000000000
--- a/dev-libs/libpcre2/files/libpcre2-10.47-constness.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-https://github.com/PCRE2Project/pcre2/commit/d8a443253783718f62f970b10bec2fcf34f077e3
-
-From: Rudi Heitbaum <rudi@heitbaum.com>
-Date: Mon, 9 Feb 2026 21:10:22 +1100
-Subject: [PATCH] pcre2grep: retain const qualifier from pointer (#879)
-
-Since glibc-2.43:
-
-For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.
-
-https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00005.html
----
- src/pcre2grep.c | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/pcre2grep.c b/src/pcre2grep.c
-index 705e15f5d..044a8f6e4 100644
---- a/src/pcre2grep.c
-+++ b/src/pcre2grep.c
-@@ -593,7 +593,7 @@ static char *
- parse_grep_colors(const char *gc)
- {
- static char seq[16];
--char *col;
-+const char *col;
- uint32_t len;
- if (gc == NULL) return NULL;
- col = strstr(gc, "ms=");
-@@ -1309,7 +1309,7 @@ if (*endptr != 0) /* Error */
- {
- if (longop)
- {
-- char *equals = strchr(op->long_name, '=');
-+ const char *equals = strchr(op->long_name, '=');
- int nlen = (equals == NULL)? (int)strlen(op->long_name) :
- (int)(equals - op->long_name);
- fprintf(stderr, "pcre2grep: Malformed number \"%s\" after --%.*s\n",
-@@ -4007,8 +4007,8 @@ for (i = 1; i < argc; i++)
-
- for (op = optionlist; op->one_char != 0; op++)
- {
-- char *opbra = strchr(op->long_name, '(');
-- char *equals = strchr(op->long_name, '=');
-+ const char *opbra = strchr(op->long_name, '(');
-+ const char *equals = strchr(op->long_name, '=');
-
- /* Handle options with only one spelling of the name */
-
diff --git a/dev-libs/libpcre2/files/libpcre2-10.47-riscv.patch b/dev-libs/libpcre2/files/libpcre2-10.47-riscv.patch
deleted file mode 100644
index a95be85df7b0..000000000000
--- a/dev-libs/libpcre2/files/libpcre2-10.47-riscv.patch
+++ /dev/null
@@ -1,118 +0,0 @@
-https://bugs.gentoo.org/964425
-https://github.com/PCRE2Project/pcre2/issues/831
-https://github.com/PCRE2Project/pcre2/pull/835 (doc change snipped)
-
-From 6454fac3920d9223a2b05becf15e3cb8e6022243 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= <carenas@gmail.com>
-Date: Thu, 30 Oct 2025 13:57:32 -0700
-Subject: [PATCH] pcre2test: dynamically allocate buffer for JITTARGET (#835)
-
-Always ask `pcre2_config()` for the expected size of buffers and abort if
-it is too small.
-
-In the documentation, remove the description of a static buffer size for
-JITTARGET.
----
- src/pcre2test.c | 12 ++++++------
- src/pcre2test_inc.h | 35 ++++++++++++++++++++++++++---------
- 3 files changed, 43 insertions(+), 25 deletions(-)
-
---- a/src/pcre2test.c
-+++ b/src/pcre2test.c
-@@ -2942,9 +2942,9 @@ static int pcre2_config(uint32_t what, void *where)
- DISPATCH(return, pcre2_config_, (what, where));
- }
-
--static void config_str(uint32_t what, char *where)
-+static char *config_str(uint32_t what, char *where, int size)
- {
--DISPATCH(, config_str_, (what, where));
-+DISPATCH(return, config_str_, (what, where, size));
- }
-
- static BOOL decode_modifiers(uint8_t *p, int ctx, patctl *pctl, datctl *dctl)
-@@ -3014,7 +3014,7 @@ static void
- print_version(FILE *f, BOOL include_mode)
- {
- char buf[VERSION_SIZE];
--config_str(PCRE2_CONFIG_VERSION, buf);
-+config_str(PCRE2_CONFIG_VERSION, buf, sizeof(buf));
- fprintf(f, "PCRE2 version %s", buf);
- if (include_mode)
- {
-@@ -3033,7 +3033,7 @@ static void
- print_unicode_version(FILE *f)
- {
- char buf[VERSION_SIZE];
--config_str(PCRE2_CONFIG_UNICODE_VERSION, buf);
-+config_str(PCRE2_CONFIG_UNICODE_VERSION, buf, sizeof(buf));
- fprintf(f, "Unicode version %s", buf);
- }
-
-@@ -3046,9 +3046,9 @@ fprintf(f, "Unicode version %s", buf);
- static void
- print_jit_target(FILE *f)
- {
--char buf[VERSION_SIZE];
--config_str(PCRE2_CONFIG_JITTARGET, buf);
-+char *buf = config_str(PCRE2_CONFIG_JITTARGET, NULL, 0);
- fputs(buf, f);
-+free(buf);
- }
-
-
-diff --git a/src/pcre2test_inc.h b/src/pcre2test_inc.h
-index c47074171..ce808a82f 100644
---- a/src/pcre2test_inc.h
-+++ b/src/pcre2test_inc.h
-@@ -558,24 +558,41 @@ return 0;
-
- Arguments:
- what the item to read
-- where the 8-bit buffer to receive the string
-+ where the 8-bit buffer to receive the string (NULLABLE)
-+ size sizeof(where) or 0 to ask for the buffer to be allocated
-+
-+Returns: the string where the data was written
- */
-
--static void
--config_str(uint32_t what, char *where)
-+static char *
-+config_str(uint32_t what, char *where, int size)
- {
--int r1, r2;
--PCRE2_UCHAR buf[VERSION_SIZE];
-+int r2;
-+PCRE2_UCHAR *buf;
-+int needed_len;
-
--r1 = pcre2_config(what, NULL);
--r2 = pcre2_config(what, buf);
--if (r1 < 0 || r1 != r2 || r1 >= VERSION_SIZE)
-+needed_len = pcre2_config(what, NULL);
-+if (needed_len <= 0)
- {
- cfprintf(clr_test_error, stderr, "pcre2test: Error in pcre2_config(%d)\n", what);
- exit(1);
- }
-+else if (size != 0 && needed_len > size)
-+ {
-+ cfprintf(clr_test_error, stderr,
-+ "pcre2test: Static buffer provided to pcre2_config(%d) too small\n", what);
-+ exit(1);
-+ }
-+
-+buf = malloc(needed_len * sizeof(PCRE2_UCHAR));
-+r2 = pcre2_config(what, buf);
-+PCRE2_ASSERT(r2 == needed_len);
-+
-+if (where == NULL) where = malloc(needed_len);
-+while (r2-- > 0) where[r2] = (char)buf[r2];
-+free(buf);
-
--while (r1-- > 0) where[r1] = (char)buf[r1];
-+return where;
- }
-
-
diff --git a/dev-libs/libpcre2/libpcre2-10.47.ebuild b/dev-libs/libpcre2/libpcre2-10.47.ebuild
deleted file mode 100644
index 46f1655beb8f..000000000000
--- a/dev-libs/libpcre2/libpcre2-10.47.ebuild
+++ /dev/null
@@ -1,116 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# https://pcre2project.github.io/pcre2/project/security/
-VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/nicholaswilson.asc
-inherit dot-a libtool multilib multilib-minimal toolchain-funcs verify-sig
-
-MY_P="pcre2-${PV/_rc/-RC}"
-
-DESCRIPTION="Perl-compatible regular expression library"
-HOMEPAGE="https://pcre2project.github.io/pcre2/ https://www.pcre.org/"
-SRC_URI="
- https://github.com/PCRE2Project/pcre2/releases/download/${MY_P}/${MY_P}.tar.bz2
- https://ftp.pcre.org/pub/pcre/${MY_P}.tar.bz2
- verify-sig? ( https://github.com/PCRE2Project/pcre2/releases/download/${MY_P}/${MY_P}.tar.bz2.sig )
-"
-
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="BSD"
-SLOT="0/3" # libpcre2-posix.so version
-if [[ ${PV} != *_rc* ]] ; then
- KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
-fi
-IUSE="bzip2 +jit libedit +pcre16 +pcre32 +readline static-libs unicode valgrind zlib"
-REQUIRED_USE="?? ( libedit readline )"
-
-RDEPEND="
- bzip2? ( app-arch/bzip2 )
- libedit? ( dev-libs/libedit )
- readline? ( sys-libs/readline:= )
- zlib? ( virtual/zlib:= )
-"
-DEPEND="
- ${RDEPEND}
- valgrind? ( dev-debug/valgrind )
-"
-BDEPEND="
- virtual/pkgconfig
- verify-sig? ( >=sec-keys/openpgp-keys-nicholaswilson-20250910 )
-"
-
-MULTILIB_CHOST_TOOLS=(
- /usr/bin/pcre2-config
-)
-
-PATCHES=(
- "${FILESDIR}"/${PN}-10.10-000-Fix-multilib.patch
- "${FILESDIR}"/${PN}-10.47-riscv.patch
- "${FILESDIR}"/${PN}-10.47-constness.patch
-)
-
-QA_CONFIG_IMPL_DECL_SKIP=(
- # Only exists in MS Visual C++ (bug #954363)
- __assume
-)
-
-src_prepare() {
- default
-
- elibtoolize
-}
-
-src_configure() {
- use static-libs && lto-guarantee-fat
- multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
- local myeconfargs=(
- --enable-pcre2-8
- --enable-shared
- $(multilib_native_use_enable bzip2 pcre2grep-libbz2)
- $(multilib_native_use_enable libedit pcre2test-libedit)
- $(multilib_native_use_enable readline pcre2test-libreadline)
- $(multilib_native_use_enable valgrind)
- $(multilib_native_use_enable zlib pcre2grep-libz)
- $(use_enable jit)
- $(use_enable jit pcre2grep-jit)
- $(use_enable pcre16 pcre2-16)
- $(use_enable pcre32 pcre2-32)
- $(use_enable static-libs static)
- $(use_enable unicode)
- )
-
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
-}
-
-multilib_src_compile() {
- emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=")
-}
-
-multilib_src_test() {
- emake check VERBOSE=yes
-}
-
-multilib_src_install() {
- emake \
- DESTDIR="${D}" \
- $(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \
- install
-
- # bug #934977
- if ! tc-is-static-only && [[ ! -f "${ED}/usr/$(get_libdir)/libpcre2-8$(get_libname)" ]] ; then
- eerror "Sanity check for libpcre2-8$(get_libname) failed."
- eerror "Shared library wasn't built, possible libtool bug"
- [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]] && die "libpcre2-8$(get_libname) not found in build, aborting"
- fi
-}
-
-multilib_src_install_all() {
- find "${ED}" -type f -name "*.la" -delete || die
- strip-lto-bytecode
-}
diff --git a/dev-libs/libpcre2/metadata.xml b/dev-libs/libpcre2/metadata.xml
deleted file mode 100644
index 1995ec5b88cb..000000000000
--- a/dev-libs/libpcre2/metadata.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>base-system@gentoo.org</email>
- <name>Gentoo Base System</name>
- </maintainer>
- <use>
- <flag name="bzip2">
- Add support for pcregrep command to search within
- bzip2-compressed files (via <pkg>app-arch/bzip2</pkg>).
- </flag>
- <flag name="pcre16">Build PCRE library for 16 bit characters (e.g. UTF-16).</flag>
- <flag name="pcre32">Build PCRE library for 32 bit characters (e.g. UTF-32).</flag>
- <flag name="readline">
- Add support for command line editing to pcretest, through
- <pkg>sys-libs/readline</pkg>.
- </flag>
- <flag name="zlib">
- Add support for pcregrep command to search within
- gzip-compressed files (via <pkg>virtual/zlib</pkg>).
- </flag>
- </use>
- <slots>
- <subslots>Reflects binary compatibility for libpcre2-posix.so.</subslots>
- </slots>
- <upstream>
- <remote-id type="cpe">cpe:/a:pcre:pcre</remote-id>
- </upstream>
- <origin>baldeagleos-repo</origin>
-</pkgmetadata>