public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Sereal-Decoder] epel10.2: Fix detection of miniz 3.1.0
@ 2026-06-02  6:25 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-06-02  6:25 UTC (permalink / raw)
  To: git-commits

            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
 

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

only message in thread, other threads:[~2026-06-02  6:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02  6:25 [rpms/perl-Sereal-Decoder] epel10.2: Fix detection of miniz 3.1.0 Paul Howarth

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