public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Sereal-Decoder] epel10.2: Fix detection of miniz 3.1.0
Date: Tue, 02 Jun 2026 06:25:29 GMT	[thread overview]
Message-ID: <178038152940.1.2183392845954325958.rpms-perl-Sereal-Decoder-b0fe219eafba@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/perl-Sereal-Decoder
            Branch : epel10.2
            Commit : b0fe219eafba77c68f4e6bd74c9c787ecff89a8a
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2025-09-22T15:34:22+01:00
            Stats  : +21/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/perl-Sereal-Decoder/c/b0fe219eafba77c68f4e6bd74c9c787ecff89a8a?branch=epel10.2

            Log:
            Fix detection of miniz 3.1.0

miniz 3.1.0 has static functions in miniz.h that reference functions in the
miniz library so we need -lminiz even for the header check.

---
diff --git a/Sereal-Decoder-5.004-external-miniz.patch b/Sereal-Decoder-5.004-external-miniz.patch
new file mode 100644
index 0000000..a545e18
--- /dev/null
+++ b/Sereal-Decoder-5.004-external-miniz.patch
@@ -0,0 +1,12 @@
+--- inc/Sereal/BuildTools.pm
++++ inc/Sereal/BuildTools.pm
+@@ -108,6 +108,9 @@ sub check_external_libraries {
+            !$ENV{SEREAL_USE_BUNDLED_LIBS}
+         && !$ENV{SEREAL_USE_BUNDLED_MINIZ}
+         && Devel::CheckLib::check_lib(
++            # miniz 3.1.0 has static functions in miniz.h that reference functions in the miniz library
++            # so we need -lminiz even for the header check
++            ldflags => '-lminiz',
+             lib    => 'miniz',
+             header => 'miniz.h'
+         ) )

diff --git a/perl-Sereal-Decoder.spec b/perl-Sereal-Decoder.spec
index 6cb1096..d8d55f4 100644
--- a/perl-Sereal-Decoder.spec
+++ b/perl-Sereal-Decoder.spec
@@ -3,7 +3,7 @@
 
 Name:           perl-Sereal-Decoder
 Version:        5.004
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        Perl deserialization for Sereal format
 # lib/Sereal/Decoder.pm:    GPL+ or Artistic
 ## Unbundled:
@@ -13,6 +13,7 @@ Summary:        Perl deserialization for Sereal format
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            https://metacpan.org/release/Sereal-Decoder
 Source0:        https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Decoder-%{version}.tar.gz
+Patch0:         Sereal-Decoder-5.004-external-miniz.patch
 # Build
 BuildRequires:  coreutils
 BuildRequires:  csnappy-devel
@@ -77,6 +78,10 @@ and feature-rich binary protocol called Sereal.
 
 %prep
 %setup -q -n Sereal-Decoder-%{version}
+
+# Fix detection of miniz 3.1.0
+%patch -P0
+
 # Remove bundled Perl modules
 rm -r ./inc/Devel
 perl -i -ne 'print $_ unless m{^inc/Devel/}' MANIFEST
@@ -112,6 +117,9 @@ make test
 %{_mandir}/man3/Sereal::Performance.3*
 
 %changelog
+* Mon Sep 22 2025 Paul Howarth <paul@city-fan.org> - 5.004-16
+- Fix detection of miniz 3.1.0
+
 * Sun Aug 03 2025 Dominik Mierzejewski <dominik@greysector.net> - 5.004-15
 - Rebuild after bootstrapping
 

                 reply	other threads:[~2026-06-02  6:25 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=178038152940.1.2183392845954325958.rpms-perl-Sereal-Decoder-b0fe219eafba@fedoraproject.org \
    --to=paul@city-fan.org \
    --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