pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/tiff tiff: update to 4.2.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff23a815fbf4
branches:  trunk
changeset: 444320:ff23a815fbf4
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jan 04 18:05:03 2021 +0000

description:
tiff: update to 4.2.0.

MAJOR CHANGES:

    Optional support for using libdeflate is added.
    Many of the tools now support a memory usage limit.

CHANGES IN LIBTIFF:

    A great many issues discovered by fuzzers (via oss-fuzz and other reports) have been addressed.
    EXIF 2.32 and GPS tags and functionality have been upgraded:
        Existing EXIF field definition of tags are upgraded to EXIF version 2.3.2
        EXIF-GPS structure, tags and access functions are added as special CustomDirectory (like it was done for EXIF).
        Reading error for FileSource and SceneType tags corrected.
    Make TIFFTAG_CFAPATTERN variable count.
    Cmake configuration fixes for big-endian targets.

    Added support for optional building against libdeflate for faster Zip/Deflate compression/decompression.

    We now have 2 kinds of builds with the Zip/Deflate codec:
        zlib only
        zlib + libdeflate

    Speed improvements in the 35%-50% range can be expected when libdeflate is used. Compression level up to 12 is now supported (capped to 9 when zlib is used). Still requires zlib for situations 
where libdeflate cannot be used (that is for scanline access, since libdeflate has no streaming mode)

    Pseudo-tag TIFFTAG_DEFLATE_SUBCODEC=DEFLATE_SUBCODEC_ZLIB/DEFLATE_SUBCODEC_LIBDEFLATE is added to control which subcodec (zlib or libdeflate) should be used (it defaults of course to libdeflate, 
when it is available). This is mostly aimed at being used on the writing side, to be able to reproduce output of previous libtiff versions at a binary level, in situations where this would be really 
needed. Or as a safety belt in case there would be unforeseen issues with using libdeflate. It can be used to know when libdeflate is available at runtime (DEFLATE_SUBCODEC_LIBDEFLATE will be the 
default value in that situation).

    Of course, deflate codestreams produced by libdeflate can be read by zlib, and vice-versa.

CHANGES IN THE TOOLS:

    A great many issues discovered by fuzzers (via oss-fuzz and other reports) have been addressed.
    ppm2tiff: support any bps value from 1 to 16.
    tiff2ps, tiff2rgba: A default memory limit is now enforced (256MiB) and a '-M' option is added to allow the user to adjust the limit.
    tiff2pdf, tiffcp: A default memory limit is now enforced (256MiB) and a '-m' option is added to allow the user to adjust the limit.
    tiffcrop: A default memory limit is now enforced (256MiB) and a '-k' option is added to allow the user to adjust the limit.
    tiff2pdf: fix "raw" copy of Deflate streams.
    tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr
    tiffcp: disable strip chopping when trying to convert to JBIG compression

diffstat:

 graphics/tiff/Makefile |   5 ++---
 graphics/tiff/PLIST    |   6 +++---
 graphics/tiff/distinfo |  10 +++++-----
 3 files changed, 10 insertions(+), 11 deletions(-)

diffs (54 lines):

diff -r 5a607b1b9d3e -r ff23a815fbf4 graphics/tiff/Makefile
--- a/graphics/tiff/Makefile    Mon Jan 04 17:58:02 2021 +0000
+++ b/graphics/tiff/Makefile    Mon Jan 04 18:05:03 2021 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.147 2020/08/18 00:42:27 tnn Exp $
+# $NetBSD: Makefile,v 1.148 2021/01/04 18:05:03 wiz Exp $
 
-DISTNAME=      tiff-4.1.0
-PKGREVISION=   1
+DISTNAME=      tiff-4.2.0
 CATEGORIES=    graphics
 MASTER_SITES=  https://download.osgeo.org/libtiff/
 
diff -r 5a607b1b9d3e -r ff23a815fbf4 graphics/tiff/PLIST
--- a/graphics/tiff/PLIST       Mon Jan 04 17:58:02 2021 +0000
+++ b/graphics/tiff/PLIST       Mon Jan 04 18:05:03 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.27 2019/11/04 01:11:38 gdt Exp $
+@comment $NetBSD: PLIST,v 1.28 2021/01/04 18:05:03 wiz Exp $
 bin/fax2ps
 bin/fax2tiff
 bin/pal2rgb
@@ -225,7 +225,7 @@
 share/doc/tiff/html/v3.9.2.html
 share/doc/tiff/html/v4.0.0.html
 share/doc/tiff/html/v4.0.1.html
-share/doc/tiff/html/v${PKGVERSION}.html
+share/doc/tiff/html/v4.0.10.html
 share/doc/tiff/html/v4.0.2.html
 share/doc/tiff/html/v4.0.3.html
 share/doc/tiff/html/v4.0.4.html
@@ -235,5 +235,5 @@
 share/doc/tiff/html/v4.0.7.html
 share/doc/tiff/html/v4.0.8.html
 share/doc/tiff/html/v4.0.9.html
-share/doc/tiff/html/v4.0.10.html
 share/doc/tiff/html/v4.1.0.html
+share/doc/tiff/html/v${PKGVERSION}.html
diff -r 5a607b1b9d3e -r ff23a815fbf4 graphics/tiff/distinfo
--- a/graphics/tiff/distinfo    Mon Jan 04 17:58:02 2021 +0000
+++ b/graphics/tiff/distinfo    Mon Jan 04 18:05:03 2021 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.95 2019/11/04 01:11:38 gdt Exp $
+$NetBSD: distinfo,v 1.96 2021/01/04 18:05:03 wiz Exp $
 
-SHA1 (tiff-4.1.0.tar.gz) = 7a882f8d55fd0620cbf89c47994d2d1d3b975452
-RMD160 (tiff-4.1.0.tar.gz) = 913703005630320efc075650d5d7776c73c065f9
-SHA512 (tiff-4.1.0.tar.gz) = fd541dcb11e3d5afaa1ec2f073c9497099727a52f626b338ef87dc93ca2e23ca5f47634015a4beac616d4e8f05acf7b7cd5797fb218758cc2ad31b390491c5a6
-Size (tiff-4.1.0.tar.gz) = 2421581 bytes
+SHA1 (tiff-4.2.0.tar.gz) = 400ff865beb34499633dd1095fe438995e6da707
+RMD160 (tiff-4.2.0.tar.gz) = ec0786653efa76fcd30c9c7274c1c246719821de
+SHA512 (tiff-4.2.0.tar.gz) = d7d42e6e6dbda9604c638f28e6cfa4705191a4e8ea276d18031d50dbab0931ac91141e57a2cf294124487f1a2e6dfcb9be62431c1b69de5acf4d0e632f3322e5
+Size (tiff-4.2.0.tar.gz) = 2809373 bytes
 SHA1 (patch-configure) = a0032133f06b6ac92bbf52349fabe83f74ea14a6



Home | Main Index | Thread Index | Old Index