public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/biber] epel10: Adapt to Perl 5.36
@ 2026-08-18 11:23 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-18 11:23 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/biber
Branch : epel10
Commit : 107d1fca3635578eaa6042c9460a1db91c2f7363
Author : Petr Písař <ppisar@redhat.com>
Date   : 2022-05-25T12:52:17+02:00
Stats  : +56/-4 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/biber/c/107d1fca3635578eaa6042c9460a1db91c2f7363?branch=epel10

Log:
Adapt to Perl 5.36

---
diff --git a/biber-2.17-Adapt-to-Perl-5.36.patch b/biber-2.17-Adapt-to-Perl-5.36.patch
new file mode 100644
index 0000000..4f839ca
--- /dev/null
+++ b/biber-2.17-Adapt-to-Perl-5.36.patch
@@ -0,0 +1,48 @@
+From d9e961710074d266ad6bdf395c98868d91952088 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Wed, 25 May 2022 12:41:59 +0200
+Subject: [PATCH] Adapt to Perl 5.36
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+A developmental release of Perl 5.36.0 fails to run tests with:
+
+    $ perl -Ilib t/basic-misc.t
+    1..72
+    Can't modify undef operator in scalar assignment at lib/Biber/Section.pm line 433, near "undef;"
+    Compilation failed in require at lib/Biber.pm line 24.
+    BEGIN failed--compilation aborted at lib/Biber.pm line 24.
+    Compilation failed in require at t/basic-misc.t line 11.
+    BEGIN failed--compilation aborted at t/basic-misc.t line 11.
+    # Looks like your test exited with 255 before it could output anything.
+
+This is because of a missing semicolon between commands in
+del_everykeys(). The new perl is more strict and raises a compile-time
+error:
+
+    $ perl -e '$a = undef $b = undef;'
+    Can't modify undef operator in scalar assignment at -e line 1, near "undef;"
+    Execution of -e aborted due to compilation errors.
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ lib/Biber/Section.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Biber/Section.pm b/lib/Biber/Section.pm
+index 03ed69a5..a78942f5 100644
+--- a/lib/Biber/Section.pm
++++ b/lib/Biber/Section.pm
+@@ -429,7 +429,7 @@ sub add_everykey {
+ 
+ sub del_everykeys {
+   my $self = shift;
+-  $self->{everykey} = undef
++  $self->{everykey} = undef;
+   $self->{everykey_lc} = undef;
+   return;
+ }
+-- 
+2.35.3
+

diff --git a/biber.spec b/biber.spec
index fdbce40..3c82dcb 100644
--- a/biber.spec
+++ b/biber.spec
@@ -5,7 +5,7 @@ Name:           biber
 # Export $BCF_VERSION from lib/Biber/Constants.pm, bug #2048536
 %define bcfversion 3.8
 Version:        2.17
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Command-line bibliographic manager, BibTeX replacement
 # bin/biber:        Artistic 2.0
 # data/texmap.xsl:  Artistic 2.0
@@ -26,6 +26,9 @@ Source0:        https://github.com/plk/biber/archive/v%{version}.tar.gz
 Patch0:         biber-drop-builddeps-for-monolithic-build.patch
 # Do not use /bin/env in shebangs
 Patch1:         biber-2.16-Normalize-shebangs.patch
+# Adapt to Perl 5.36, <https://github.com/plk/biber/pull/411>,
+# proposed to the upstream
+Patch2:         biber-2.17-Adapt-to-Perl-5.36.patch
 BuildArch:      noarch
 BuildRequires:  coreutils
 BuildRequires:  perl-interpreter
@@ -177,9 +180,7 @@ with "%{_libexecdir}/%{name}/test".
 
 
 %prep
-%setup -q -n biber-%{version}
-%patch0 -p1
-%patch1 -p1
+%autosetup -p1 -n biber-%{version}
 # t/remote-files.t needs the Internet
 for F in \
     t/remote-files.t \
@@ -258,6 +259,9 @@ export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print
 
 
 %changelog
+* Wed May 25 2022 Petr Pisar <ppisar@redhat.com> - 2.17-3
+- Adapt to Perl 5.36
+
 * Mon Jan 31 2022 Petr Pisar <ppisar@redhat.com> - 2.17-2
 - Provide bcfversion for textlive-biblatex to depend on (bug #2048536)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-18 11:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-18 11:23 [rpms/biber] epel10: Adapt to Perl 5.36 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox