From 72a3babbbbc21330923903c96d0e9856f57c5d2a Mon Sep 17 00:00:00 2001 From: alihanozturk Date: Wed, 25 Jan 2017 23:42:04 +0300 Subject: [PATCH] tiff:v.bump --- .../graphics/tiff/files/fix-hylafax.patch | 33 +++++++++++++++++++ multimedia/graphics/tiff/pspec.xml | 12 ++++++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 multimedia/graphics/tiff/files/fix-hylafax.patch diff --git a/multimedia/graphics/tiff/files/fix-hylafax.patch b/multimedia/graphics/tiff/files/fix-hylafax.patch new file mode 100644 index 0000000000..635b6aef3d --- /dev/null +++ b/multimedia/graphics/tiff/files/fix-hylafax.patch @@ -0,0 +1,33 @@ +From 7757b91a71631ada835740733f3dab51eda36df8 Mon Sep 17 00:00:00 2001 +From: erouault +Date: Tue, 13 Dec 2016 18:15:48 +0000 +Subject: [PATCH] * libtiff/tif_fax3.h: revert change done on 2016-01-09 that + made Param member of TIFFFaxTabEnt structure a uint16 to reduce size of the + binary. It happens that the Hylafax software uses the tables that follow this + typedef (TIFFFaxMainTable, TIFFFaxWhiteTable, TIFFFaxBlackTable), also they + are not in a public libtiff header. Raised by Lee Howard. Fixes + http://bugzilla.maptools.org/show_bug.cgi?id=2636 + +--- + ChangeLog | 10 ++++++++++ + libtiff/tif_fax3.h | 4 +++- + 2 files changed, 13 insertions(+), 1 deletion(-) + +diff --git a/libtiff/tif_fax3.h b/libtiff/tif_fax3.h +index aafb5a7..2b64290 100644 +--- a/libtiff/tif_fax3.h ++++ b/libtiff/tif_fax3.h +@@ -81,10 +81,12 @@ extern void _TIFFFax3fillruns(unsigned char*, uint32*, uint32*, uint32); + #define S_MakeUp 11 + #define S_EOL 12 + ++/* WARNING: do not change the layout of this structure as the Halyfax software */ ++/* really depends on it. See http://bugzilla.maptools.org/show_bug.cgi?id=2636 */ + typedef struct { /* state table entry */ + unsigned char State; /* see above */ + unsigned char Width; /* width of code in bits */ +- uint16 Param; /* unsigned 16-bit run length in bits */ ++ uint32 Param; /* unsigned 32-bit run length in bits (holds on 16 bit actually, but cannot be changed. See above warning) */ + } TIFFFaxTabEnt; + + extern const TIFFFaxTabEnt TIFFFaxMainTable[]; diff --git a/multimedia/graphics/tiff/pspec.xml b/multimedia/graphics/tiff/pspec.xml index afbe6ee60a..8575db2156 100644 --- a/multimedia/graphics/tiff/pspec.xml +++ b/multimedia/graphics/tiff/pspec.xml @@ -12,11 +12,14 @@ library Library for manipulation of TIFF (Tag Image File Format) images This software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data. - ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz + http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz libjpeg-turbo-devel jbigkit-devel + + fix-hylafax.patch + @@ -74,6 +77,13 @@ + + 2017-01-25 + 4.0.7 + Version Bump + Pisi Linux Community + admin@pisilinux.org + 2016-06-09 4.0.3