public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Sereal-Encoder] epel10.2: Fix detection of miniz 3.1.0
@ 2026-06-02 7:09 Paul Howarth
0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-06-02 7:09 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Sereal-Encoder
Branch : epel10.2
Commit : c85c9ecedc4cef87d08dd5aafc2ee534c8db11d6
Author : Paul Howarth <paul@city-fan.org>
Date : 2025-09-22T15:51:25+01:00
Stats : +21/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Sereal-Encoder/c/c85c9ecedc4cef87d08dd5aafc2ee534c8db11d6?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-Encoder-5.004-external-miniz.patch b/Sereal-Encoder-5.004-external-miniz.patch
new file mode 100644
index 0000000..a545e18
--- /dev/null
+++ b/Sereal-Encoder-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-Encoder.spec b/perl-Sereal-Encoder.spec
index 607521a..37ad4c8 100644
--- a/perl-Sereal-Encoder.spec
+++ b/perl-Sereal-Encoder.spec
@@ -7,7 +7,7 @@
Name: perl-Sereal-Encoder
Version: 5.004
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: Perl serialization into Sereal format
# lib/Sereal/Encoder.pm: GPL+ or Artistic
# qsort.h: LGPLv2+ (borrowed from glibc)
@@ -19,6 +19,7 @@ Summary: Perl serialization into Sereal format
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND LGPL-2.1-or-later
URL: https://metacpan.org/release/Sereal-Encoder
Source0: https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Encoder-%{version}.tar.gz
+Patch0: Sereal-Encoder-5.004-external-miniz.patch
# Build:
BuildRequires: coreutils
BuildRequires: csnappy-devel
@@ -85,6 +86,10 @@ serializer using a binary protocol called Sereal.
%prep
%setup -q -n Sereal-Encoder-%{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
@@ -119,6 +124,9 @@ make test
%{_mandir}/man3/Sereal::Encoder.3*
%changelog
+* Mon Sep 22 2025 Paul Howarth <paul@city-fan.org> - 5.004-12
+- Fix detection of miniz 3.1.0
+
* Sat Aug 02 2025 Dominik Mierzejewski <dominik@greysector.net> - 5.004-11
- Rebuilt for miniz SONAME bump (and fixed include path)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-02 7:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02 7:09 [rpms/perl-Sereal-Encoder] 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