From owner-svn-ports-head@freebsd.org Thu Jun 6 20:02:24 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2AEA915BEB40; Thu, 6 Jun 2019 20:02:24 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B610385D04; Thu, 6 Jun 2019 20:02:23 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D5047215C7; Thu, 6 Jun 2019 20:02:19 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x56K2Jm4092218; Thu, 6 Jun 2019 20:02:19 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x56K2J5i092217; Thu, 6 Jun 2019 20:02:19 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201906062002.x56K2J5i092217@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Thu, 6 Jun 2019 20:02:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r503600 - in head/graphics/tiff: . files X-SVN-Group: ports-head X-SVN-Commit-Author: antoine X-SVN-Commit-Paths: in head/graphics/tiff: . files X-SVN-Commit-Revision: 503600 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B610385D04 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.98)[-0.976,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jun 2019 20:02:24 -0000 Author: antoine Date: Thu Jun 6 20:02:19 2019 New Revision: 503600 URL: https://svnweb.freebsd.org/changeset/ports/503600 Log: Fix tiff2ps error regarding "Inconsistent value of es" by allowing es to be zero. PR: 238372 Added: head/graphics/tiff/files/patch-tools_tiff2ps.c (contents, props changed) Modified: head/graphics/tiff/Makefile Modified: head/graphics/tiff/Makefile ============================================================================== --- head/graphics/tiff/Makefile Thu Jun 6 18:37:52 2019 (r503599) +++ head/graphics/tiff/Makefile Thu Jun 6 20:02:19 2019 (r503600) @@ -3,6 +3,7 @@ PORTNAME= tiff PORTVERSION= 4.0.10 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= https://download.osgeo.org/libtiff/ Added: head/graphics/tiff/files/patch-tools_tiff2ps.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/tiff/files/patch-tools_tiff2ps.c Thu Jun 6 20:02:19 2019 (r503600) @@ -0,0 +1,16 @@ +Fix tiff2ps error regarding "Inconsistent value of es" by allowing es to be zero. + +--- tools/tiff2ps.c.orig 2018-11-03 19:25:46 UTC ++++ tools/tiff2ps.c +@@ -2444,9 +2444,9 @@ PSDataColorContig(FILE* fd, TIFF* tif, u + unsigned char *cp, c; + + (void) w; +- if( es <= 0 ) ++ if( es < 0 ) + { +- TIFFError(filename, "Inconsistent value of es: %d", es); ++ TIFFError(filename, "Inconsistent value of es: %d (samplesperpixel=%u, nc=%d)", es, samplesperpixel, nc); + return; + } + tf_buf = (unsigned char *) _TIFFmalloc(tf_bytesperrow);