GraphicsMagick p5-GraphicsMagick: updated to 1.3.42

1.3.42 (September 23, 2023)
Special Issues:

GraphicsMagick really does need some additional productive volunteers. For several years now, the burden has entirely been on me (Bob Friesenhahn). I have been sheparding the project for 22 years already (and contributed to ImageMagick and GraphicsMagick combined for 27 years already). It is not reasonable to expect someone with a full time job (and expecting to retire in a few years) to do all of the work.
Security Fixes:

GraphicsMagick is participating in Google's oss-fuzz project since February 4 2018 due to the contributions and assistance of Alex Gaynor and Paul Kehrer. The issues list is available at https://bugs.chromium.org/p/oss-fuzz/issues/list under search term "graphicsmagick". Issues are available for anyone to view and duplicate if they have been in "Verified" status for 30 days, or if they have been in "New" status for 90 days. Please consult the GraphicsMagick ChangeLog file, Mercurial repository commit log, and the oss-fuzz issues list for details.
GraphicsMagick has been participating in Synopsys's Coverity program for free software projects since 2015. There has been a continuing objective to keep outstanding defects at 0, or very close to 0. Information about the Coverity status may be found at https://scan.coverity.com/projects/graphicsmagick.
Bug fixes:

TIFF: Default the alpha channel to type EXTRASAMPLE_UNASSALPHA(2).
BMP: Many fixes for reading esoteric BMP sub-formats.
TranslateTextEx(): Revert change so now a NULL pointer is returned when given an empty string. Some algorithms (e.g. montage) were depending on this!.
PAM: Fix reading comments.
PNG: Added Add missing module aliases "PNG00", "PNG48", "PNG64", so it is again possible to request these subformats directly.
TIFF: For common formats with the required number of channels, but one is an 'unspecified' channel, promote unspecified alpha to unassociated alpha so that the alpha channel is not ignored.
"Magick" command line emulation: Eliminate duplicate utility name output in error messages
New Features:

BMP: Added the ability to read and write BMP using JPEG compression. Use '-define bmp:allow-jpeg' to allow use of JPEG compression.
BMP: Added support for BI_ALPHABITFIELDS compression
BMP: Added support for reading BMP with PNG compression.
API Updates:

None.
Windows Delegate Updates/Additions:

None.
Build Changes:

Inno-Setup installer script now also supports MSVC 2010 and 2013 runtimes.
Support for the 'XTRN' coder (needed by ImageMagickObject) is now optional and disabled by default.
Visual Studio 2013 (MSVC 12.0) (or later) is needed to build 64-bit applications given that 'strtod()' is broken in earlier versions. Not much works at all if strtod() does not work properly.
Behavior Changes:

Decided to not deprecate the ability to extend existing image attribute text by calling SetImageAttribute() multiple times. There are too many subtle usages of this feature. The annoying printf introduced in 1.3.41 has been disabled.
This commit is contained in:
adam 2023-11-15 13:20:53 +00:00
parent 83947b44f6
commit 4e7f6039fc
6 changed files with 11 additions and 48 deletions

View File

@ -1,6 +1,5 @@
# $NetBSD: Makefile,v 1.135 2023/11/12 13:21:49 wiz Exp $
# $NetBSD: Makefile,v 1.136 2023/11/15 13:20:53 adam Exp $
PKGREVISION= 8
.include "Makefile.common"
MAINTAINER= pkgsrc-users@NetBSD.org

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile.common,v 1.29 2023/01/25 06:40:45 adam Exp $
# $NetBSD: Makefile.common,v 1.30 2023/11/15 13:20:53 adam Exp $
#
# used by graphics/GraphicsMagick/Makefile
# used by graphics/p5-GraphicsMagick/Makefile
GM_MAJOR_VER= 1.3
GM_MINOR_VER= 40
GM_MINOR_VER= 42
DISTVERSION= ${GM_MAJOR_VER}.${GM_MINOR_VER}
DISTNAME= GraphicsMagick-${DISTVERSION}
CATEGORIES= graphics

View File

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.33 2023/01/25 06:40:45 adam Exp $
@comment $NetBSD: PLIST,v 1.34 2023/11/15 13:20:53 adam Exp $
bin/GraphicsMagick++-config
bin/GraphicsMagick-config
bin/GraphicsMagickWand-config
@ -225,6 +225,8 @@ share/doc/GraphicsMagick/ChangeLog.2017
share/doc/GraphicsMagick/ChangeLog.2018
share/doc/GraphicsMagick/ChangeLog.2019
share/doc/GraphicsMagick/ChangeLog.2020
share/doc/GraphicsMagick/ChangeLog.2021
share/doc/GraphicsMagick/ChangeLog.2022
share/doc/GraphicsMagick/Copyright.txt
share/doc/GraphicsMagick/NEWS.txt
share/doc/GraphicsMagick/www/ChangeLog-2001.html

View File

@ -1,8 +1,7 @@
$NetBSD: distinfo,v 1.58 2023/08/02 07:57:36 adam Exp $
$NetBSD: distinfo,v 1.59 2023/11/15 13:20:53 adam Exp $
BLAKE2s (GraphicsMagick-1.3.40.tar.xz) = 72e78a94e255d00850d118813fed2f9a46d7a61c7300e28e75ee2895fde2c3a9
SHA512 (GraphicsMagick-1.3.40.tar.xz) = e64902aa2a8702d03d188350bd4252a2263e431611f9a70f38cd8beede8a38cc91bb4de3603fedf15420ebbba488f609f218e9b45e356b9f8dc8e4a75f380ee5
Size (GraphicsMagick-1.3.40.tar.xz) = 5507792 bytes
SHA1 (patch-coders_jpeg.c) = b4d6b79c06561b22baff3bcc81fcb12e900808c9
BLAKE2s (GraphicsMagick-1.3.42.tar.xz) = 0a0fbc4559bc93c98d329819b0cf87611f8e6cc38a02865cbea454df24bb1e0a
SHA512 (GraphicsMagick-1.3.42.tar.xz) = b512c9c4c06ec60f7d31e140da08f2bc16d492a2dab82778f1b38c074a25340159e59bfbaa30b2997a6fbd10a500ae1bda527e3c3854e4462bcae837e818428a
Size (GraphicsMagick-1.3.42.tar.xz) = 5553692 bytes
SHA1 (patch-config_delegates.mgk.in) = c52192a35bede530d310688a576ef2181a9f073c
SHA1 (patch-configure) = 327dcb718ebaf65f2d2c97440c1cc7fdb9e03482

View File

@ -1,36 +0,0 @@
$NetBSD: patch-coders_jpeg.c,v 1.1 2023/08/02 07:57:36 adam Exp $
Fix for libjpeg-turbo 3.0.0.
https://sourceforge.net/p/graphicsmagick/bugs/711/
--- coders/jpeg.c.orig 2022-12-26 16:56:04.000000000 +0000
+++ coders/jpeg.c
@@ -954,7 +954,7 @@ EstimateJPEGQuality(const struct jpeg_de
i;
save_quality=0;
-#ifdef D_LOSSLESS_SUPPORTED
+#if !defined(LIBJPEG_TURBO_VERSION_NUMBER) && defined(D_LOSSLESS_SUPPORTED)
if (image->compression==LosslessJPEGCompression)
{
save_quality=100;
@@ -1461,7 +1461,9 @@ static Image *ReadJPEGImage(const ImageI
}
#endif
#if (JPEG_LIB_VERSION >= 61) && defined(D_PROGRESSIVE_SUPPORTED)
-#ifdef D_LOSSLESS_SUPPORTED
+#if !defined(LIBJPEG_TURBO_VERSION_NUMBER) && defined(D_LOSSLESS_SUPPORTED)
+ /* This code is based on a patch to IJG JPEG 6b, or somesuch. Standard
+ library does not have a 'process' member. */
image->interlace=
jpeg_info.process == JPROC_PROGRESSIVE ? LineInterlace : NoInterlace;
image->compression=jpeg_info.process == JPROC_LOSSLESS ?
@@ -2896,7 +2896,7 @@ static MagickPassFail WriteJPEGImage(con
if ((image->compression == LosslessJPEGCompression) ||
(quality > 100))
{
-#if defined(C_LOSSLESS_SUPPORTED)
+#if !defined(LIBJPEG_TURBO_VERSION_NUMBER) && defined(C_LOSSLESS_SUPPORTED)
if (quality < 100)
ThrowException(&image->exception,CoderWarning,
LosslessToLossyJPEGConversion,(char *) NULL);

View File

@ -1,6 +1,5 @@
# $NetBSD: Makefile,v 1.71 2023/11/12 13:22:10 wiz Exp $
# $NetBSD: Makefile,v 1.72 2023/11/15 13:20:53 adam Exp $
PKGREVISION= 7
.include "../../graphics/GraphicsMagick/Makefile.common"
PKGNAME= p5-GraphicsMagick-${DISTVERSION}