public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-GD] epel9: Update to 2.76
@ 2026-06-09 20:12 Paul Howarth
0 siblings, 0 replies; 2+ messages in thread
From: Paul Howarth @ 2026-06-09 20:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-GD
Branch : epel9
Commit : 6983e018419231ed8fe99120527c770403083f0e
Author : Paul Howarth <paul@city-fan.org>
Date : 2022-02-01T16:07:04+00:00
Stats : +9/-77 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/perl-GD/c/6983e018419231ed8fe99120527c770403083f0e?branch=epel9
Log:
Update to 2.76
- New upstream release 2.76
- Fix broken TIFF and AVIF support (GH#43)
- Re-enable XBM support (always on)
- Provide xbm magic support (a hack, for GD::Graph)
---
diff --git a/GD-2.75-copy-paste.patch b/GD-2.75-copy-paste.patch
deleted file mode 100644
index f12457a..0000000
--- a/GD-2.75-copy-paste.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-From 96c5f7b43c68a26de448150d186ac2fe20f8c7c8 Mon Sep 17 00:00:00 2001
-From: Paul Howarth <paul@city-fan.org>
-Date: Tue, 1 Feb 2022 12:46:05 +0000
-Subject: [PATCH] Fix copy and paste error in updated image format support
-
-This fixes a problem that manifests in GDGraph with GD 2.75:
-https://rt.cpan.org/Public/Bug/Display.html?id=140910
-
-: Not a TIFF or MDI file, bad magic number 25635 (0x6423).
-GD Warning: Cannot open TIFF imagegdImageCreateFromTiff error at /usr/local/lib/perl5/site_perl/5.34.0/x86_64-linux-gnu/GD/Image.pm line 256.
-t/bugfixes.t ...................
-Dubious, test returned 25 (wstat 6400, 0x1900)
-Failed 14/33 subtests
----
- lib/GD/Image.pm | 6 +++---
- lib/GD/Image_pm.PL | 13 -------------
- 2 files changed, 3 insertions(+), 16 deletions(-)
-
-diff --git a/lib/GD/Image.pm b/lib/GD/Image.pm
-index 9cd3abd..48ed81c 100644
---- a/lib/GD/Image.pm
-+++ b/lib/GD/Image.pm
-@@ -229,11 +229,11 @@ sub newFromTiff {
- }
-
- sub newFromXbm {
-- croak("Usage: newFromTiff(class,filehandle)") unless @_==2;
-+ croak("Usage: newFromXbm(class,filehandle)") unless @_==2;
- my($class,$f) = @_;
- my $fh = $class->_make_filehandle($f);
- binmode($fh);
-- $class->_newFromTiff($fh);
-+ $class->_newFromXbm($fh);
- }
-
- sub newFromWebp {
-@@ -252,7 +252,7 @@ sub newFromHeif {
- $class->_newFromHeif($fh);
- }
-
--sub newFromHeif {
-+sub newFromAvif {
- croak("Usage: newFromAvif(class,filehandle)") unless @_==2;
- my($class,$f) = @_;
- my $fh = $class->_make_filehandle($f);
-diff --git a/lib/GD/Image_pm.PL b/lib/GD/Image_pm.PL
-index e73e8ae..a4693ef 100644
---- a/lib/GD/Image_pm.PL
-+++ b/lib/GD/Image_pm.PL
-@@ -317,19 +317,6 @@ sub newFromXbm {
- !NO!SUBS!
- }
-
--if ($DEFINES =~ /HAVE_TIFF/) {
-- print OUT <<'!NO!SUBS!'
--sub newFromXbm {
-- croak("Usage: newFromTiff(class,filehandle)") unless @_==2;
-- my($class,$f) = @_;
-- my $fh = $class->_make_filehandle($f);
-- binmode($fh);
-- $class->_newFromTiff($fh);
--}
--
--!NO!SUBS!
--}
--
- if ($DEFINES =~ /HAVE_WEBP/) {
- print OUT <<'!NO!SUBS!'
- sub newFromWebp {
diff --git a/perl-GD.spec b/perl-GD.spec
index 4c9a474..185dd37 100644
--- a/perl-GD.spec
+++ b/perl-GD.spec
@@ -1,13 +1,12 @@
Name: perl-GD
-Version: 2.75
-Release: 2%{?dist}
+Version: 2.76
+Release: 1%{?dist}
Summary: Perl interface to the GD graphics library
License: GPL+ or Artistic 2.0
URL: https://metacpan.org/release/GD
Source0: https://cpan.metacpan.org/modules/by-module/GD/GD-%{version}.tar.gz
Patch0: GD-2.74-utf8.patch
Patch1: GD-2.70-cflags.patch
-Patch2: GD-2.75-copy-paste.patch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
@@ -62,10 +61,6 @@ create PNG images on the fly or modify existing files.
# Upstream wants -Wformat=1 but we don't
%patch1
-# Fix copy and paste errors introduced in GD 2.75 (#2048953, CPAN RT#140910)
-# https://github.com/lstein/Perl-GD/pull/43
-%patch2 -p1
-
# Fix shellbangs in sample scripts
perl -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \
demos/{*.{pl,cgi},truetype_test}
@@ -99,6 +94,12 @@ make test TEST_VERBOSE=1
%{_mandir}/man3/GD::Simple.3*
%changelog
+* Tue Feb 1 2022 Paul Howarth <paul@city-fan.org> - 2.76-1
+- Update to 2.76
+ - Fix broken TIFF and AVIF support (GH#43)
+ - Re-enable XBM support (always on)
+ - Provide xbm magic support (a hack, for GD::Graph)
+
* Tue Feb 1 2022 Paul Howarth <paul@city-fan.org> - 2.75-2
- Fix copy and paste errors introduced in GD 2.75
(#2048953, CPAN RT#140910, GH#43)
diff --git a/sources b/sources
index c645b15..3f75a16 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (GD-2.75.tar.gz) = d58af8973a419193e5ce9d141a7f6e4ab64d995d3752ec0fa7e5c3a580f6f037563ea97fe71ddefe1cea0d50e49de632f2d9de89c02dab9d7b40041a03e8c0c3
+SHA512 (GD-2.76.tar.gz) = 31c2d61440a7fef9804aed677ee5568f6c237e678cf5a2b7f48e98326ef7cddbf3624ce3965e6711ef9cec4148881a0cb4352c19b91ead4b78835fafaeefbe4d
^ permalink raw reply related [flat|nested] 2+ messages in thread* [rpms/perl-GD] epel9: Update to 2.76
@ 2026-06-09 20:12 Paul Howarth
0 siblings, 0 replies; 2+ messages in thread
From: Paul Howarth @ 2026-06-09 20:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-GD
Branch : epel9
Commit : 586a43eebcc51efd99fec43e202973754154ad86
Author : Paul Howarth <paul@city-fan.org>
Date : 2023-05-29T10:59:07+01:00
Stats : +22/-39 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/perl-GD/c/586a43eebcc51efd99fec43e202973754154ad86?branch=epel9
Log:
Update to 2.76
- New upstream release 2.76
- Add BMP support with libgd 2.1.0 (GH#49J
- Don't link to -lXPM without XPM nor X11 (GH#45)
- Rename ANIMGIF feature to GIFANIM
- Fix unused variable failure in GH CI (CPAN RT#141125)
---
diff --git a/GD-2.70-cflags.patch b/GD-2.70-cflags.patch
deleted file mode 100644
index fab1d98..0000000
--- a/GD-2.70-cflags.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.PL
-+++ Makefile.PL
-@@ -259,7 +259,7 @@ print F $DEFINES,"\n";
- close F;
-
- my $CCFLAGS = $Config{ccflags};
--$CCFLAGS .= " -Wall -Wextra -Wformat=1" if $Config{gccversion} and $] > 5.020;
-+$CCFLAGS .= " -Wall -Wextra" if $Config{gccversion} and $] > 5.020;
- # hardened CFLAGS for testing
- #$CCFLAGS .= ' -D_GNU_SOURCE -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches';
-
diff --git a/GD-2.74-utf8.patch b/GD-2.74-utf8.patch
deleted file mode 100644
index fd44f41..0000000
--- a/GD-2.74-utf8.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- ChangeLog
-+++ ChangeLog
-@@ -3,7 +3,7 @@
- * added Github actions (for PR's)
- * fix poly->transform documentation RT #140043
- * fix GD,GD2 detection and tests RT #139399 (since libgd 2.3.3)
-- fixed tests by H�kon H�gland.
-+ fixed tests by Håkon Hægland.
- * POD: Remove indirect object constructors from example code snippet (PR #39)
- * patch from Ben Crowell that fixes incorrect behaviour of GD::Simple->fontMetrics
- * fix cross-compilation if gdlib.pc has no cflags by Fabrice Fontaine
-@@ -145,7 +145,7 @@
- 2.18 This version needs libgd 2.0.28 or higher.
- Fixed documentation bug in synopsis of GD::Simple.
- Updated Polyline to version 0.20
--2.17 Added animated GIF patches from Jaakko Hyv�tti.
-+2.17 Added animated GIF patches from Jaakko Hyvätti.
- Added dynamic bitmapped font loading support.
- Added fontconfig support.
- Added a simplified API called GD::Simple.
diff --git a/GD-2.77-cflags.patch b/GD-2.77-cflags.patch
new file mode 100644
index 0000000..087b860
--- /dev/null
+++ b/GD-2.77-cflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.PL
++++ Makefile.PL
+@@ -339,7 +339,7 @@ print F $DEFINES,"\n";
+ close F;
+
+ my $CCFLAGS = $Config{ccflags};
+-$CCFLAGS .= " -Wall -Wextra -Wformat=1" if $Config{gccversion} and $] > 5.020;
++$CCFLAGS .= " -Wall -Wextra" if $Config{gccversion} and $] > 5.020;
+ # hardened CFLAGS for testing
+ #$CCFLAGS .= ' -D_GNU_SOURCE -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches';
+ my $LDDLFLAGS = $Config{lddlflags};
diff --git a/perl-GD.spec b/perl-GD.spec
index 192e4ad..e3e3582 100644
--- a/perl-GD.spec
+++ b/perl-GD.spec
@@ -1,12 +1,11 @@
Name: perl-GD
-Version: 2.76
-Release: 4%{?dist}
+Version: 2.77
+Release: 1%{?dist}
Summary: Perl interface to the GD graphics library
License: GPL-1.0-or-later OR Artistic-2.0
URL: https://metacpan.org/release/GD
Source0: https://cpan.metacpan.org/modules/by-module/GD/GD-%{version}.tar.gz
-Patch0: GD-2.74-utf8.patch
-Patch1: GD-2.70-cflags.patch
+Patch1: GD-2.77-cflags.patch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
@@ -54,9 +53,6 @@ create PNG images on the fly or modify existing files.
%prep
%setup -q -n GD-%{version}
-# Re-code documentation as UTF8
-%patch -P 0
-
# Upstream wants -Wformat=1 but we don't
%patch -P 1
@@ -93,6 +89,13 @@ make test TEST_VERBOSE=1
%{_mandir}/man3/GD::Simple.3*
%changelog
+* Mon May 29 2023 Paul Howarth <paul@city-fan.org> - 2.77-1
+- Update to 2.76
+ - Add BMP support with libgd 2.1.0 (GH#49J
+ - Don't link to -lXPM without XPM nor X11 (GH#45)
+ - Rename ANIMGIF feature to GIFANIM
+ - Fix unused variable failure in GH CI (CPAN RT#141125)
+
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.76-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
diff --git a/sources b/sources
index 3f75a16..5aab806 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (GD-2.76.tar.gz) = 31c2d61440a7fef9804aed677ee5568f6c237e678cf5a2b7f48e98326ef7cddbf3624ce3965e6711ef9cec4148881a0cb4352c19b91ead4b78835fafaeefbe4d
+SHA512 (GD-2.77.tar.gz) = de794793bdd4d965bf42a5de0f0d622f037700d9db0e94a1cc20dad8dc1b35003dd15bf3352da1dc63072e079ee91367620806f992d0d3dd0c63baa016fa5268
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-09 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 20:12 [rpms/perl-GD] epel9: Update to 2.76 Paul Howarth
2026-06-09 20:12 Paul Howarth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox