public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jitka Plesnikova <jplesnik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-re-engine-RE2] rawhide: Adapt to perl 5.43.11
Date: Thu, 11 Jun 2026 10:14:09 GMT	[thread overview]
Message-ID: <178117284980.1.12369924419160080193.rpms-perl-re-engine-RE2-78bddaabfd97@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/perl-re-engine-RE2
            Branch : rawhide
            Commit : 78bddaabfd9716b2b5b81217f554c07e0c965883
            Author : Jitka Plesnikova <jplesnik@redhat.com>
            Date   : 2026-06-11T10:53:59+02:00
            Stats  : +30/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/perl-re-engine-RE2/c/78bddaabfd9716b2b5b81217f554c07e0c965883?branch=rawhide

            Log:
            Adapt to perl 5.43.11

define PERL_EXT to access reg_numbered_buff and reg_named_buff functions

---
diff --git a/perl-re-engine-RE2.spec b/perl-re-engine-RE2.spec
index 97a8639..8bebe6a 100644
--- a/perl-re-engine-RE2.spec
+++ b/perl-re-engine-RE2.spec
@@ -1,7 +1,7 @@
 Name:           perl-re-engine-RE2
 Summary:        RE2 regex engine
 Version:        0.18
-Release:        14%{?dist}
+Release:        15%{?dist}
 # lib/re/engine/RE2.pm: GPL-1.0-or-later OR Artistic-1.0-Perl
 # ppport.h:             GPL-1.0-or-later OR Artistic-1.0-Perl
 # README:               GPL-1.0-or-later OR Artistic-1.0-Perl
@@ -112,6 +112,8 @@ Source0:        https://cpan.metacpan.org/authors/id/D/DG/DGL/re-engine-RE2-%{ve
 Patch0:         re-engine-RE2-0.18-Unbundle-re2.patch
 # Adapt to re2-20240702, bug #2304727, CPAN RT#83467
 Patch1:         re-engine-RE2-0.18-Use-C-17.patch
+# Adapt to changes in Perl 5.43.11
+Patch2:         re-engine-RE2-0.18-Adapt-to-perl-5.43.11.patch
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
 # (This is a leaf package on i686 because all dependent packages are noarch,
 # and noarch packages no longer build on i686.)
@@ -163,6 +165,7 @@ with "%{_libexecdir}/%{name}/test".
 rm -r ./re2
 # Remove incorrect executable bits
 chmod -x lib/re/engine/RE2.pm
+
 # Help generators to recognize Perl scripts
 for F in $(find t -name '*.t'); do
     perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
@@ -204,6 +207,10 @@ make test
 %{_libexecdir}/%{name}
 
 %changelog
+* Wed Jun 10 2026 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-15
+- Adapt to perl 5.43.11 (define PERL_EXT to access reg_numbered_buff and
+  reg_named_buff functions)
+
 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

diff --git a/re-engine-RE2-0.18-Adapt-to-perl-5.43.11.patch b/re-engine-RE2-0.18-Adapt-to-perl-5.43.11.patch
new file mode 100644
index 0000000..fc2a5d0
--- /dev/null
+++ b/re-engine-RE2-0.18-Adapt-to-perl-5.43.11.patch
@@ -0,0 +1,22 @@
+Perl 5.43.11 restructured embed.pl code generation (commit 4d526fc8af) to
+properly enforce visibility flags in proto.h and embed.h. Functions flagged
+EXp in embed.fnc (reg_numbered_buff_fetch, reg_numbered_buff_store,
+reg_numbered_buff_length, reg_named_buff, reg_named_buff_iter) are now
+wrapped in #if defined(PERL_CORE) || defined(PERL_EXT), making their
+Perl_-prefixed declarations invisible to external XS modules.
+
+Since re-engine-RE2 uses these as function pointers in the regexp_engine
+struct, and is effectively a perl extension, define PERL_EXT to restore
+visibility.
+
+diff -up re-engine-RE2-0.18/Makefile.PL.orig re-engine-RE2-0.18/Makefile.PL
+--- re-engine-RE2-0.18/Makefile.PL.orig	2026-06-10 17:20:23.781288442 +0200
++++ re-engine-RE2-0.18/Makefile.PL	2026-06-10 17:19:42.453410603 +0200
+@@ -18,6 +18,7 @@ my %opt = (
+   VERSION_FROM       => 'lib/re/engine/RE2.pm',
+   ABSTRACT_FROM      => 'lib/re/engine/RE2.pm',
+   LICENSE            => 'perl',
++  DEFINE             => '-DPERL_EXT',
+   LIBS               => '-lre2',
+   PMLIBDIRS          => ["lib"],
+   OBJECT             => join(" ", @objects),

                 reply	other threads:[~2026-06-11 10:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178117284980.1.12369924419160080193.rpms-perl-re-engine-RE2-78bddaabfd97@fedoraproject.org \
    --to=jplesnik@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox