[packages/ghostscript] - up to 9.24 which has important SECURITY fixes; use internal lcms2 which is supposed to be thread s

arekm arekm at pld-linux.org
Tue Sep 4 18:38:47 CEST 2018


commit a7f5e96339f1c59d9604ef660cb4b733e902cbfb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Sep 4 18:38:39 2018 +0200

    - up to 9.24 which has important SECURITY fixes; use internal lcms2 which is supposed to be thread safe (while official project is not)

 ghostscript-iccprofiles-initdir.patch |  6 +++---
 ghostscript.spec                      | 13 ++++++-------
 2 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/ghostscript.spec b/ghostscript.spec
index 94c7186..ae3eb64 100644
--- a/ghostscript.spec
+++ b/ghostscript.spec
@@ -6,7 +6,7 @@
 %bcond_without	cairo		# disable cairo support (for cairo bootstrap)
 %bcond_without	system_freetype	# build with included freetype
 %bcond_without	system_jbig2dec	# build with included jbig2dec
-%bcond_without	system_lcms2	# build with included lcms2
+%bcond_with	system_lcms2	# build with included lcms2 (which is thread safe)
 %bcond_with	svga		# svgalib display support (vgalib,lvga256 devices) [broken in sources]
 %bcond_without	gtk		# gsx (GTK+ based frontend)
 %bcond_without	texdocs		# skip tetex BRs
@@ -18,13 +18,13 @@ Summary(ja.UTF-8):	PostScript インタープリタ・レンダラー
 Summary(pl.UTF-8):	Bezpłatny interpreter i renderer PostScriptu i PDF
 Summary(tr.UTF-8):	PostScript & PDF yorumlayıcı ve gösterici
 Name:		ghostscript
-Version:	9.22
+Version:	9.24
 Release:	1
 License:	AGPL v3+
 Group:		Applications/Graphics
 #Source0Download: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
-Source0:	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/%{name}-%{version}.tar.xz
-# Source0-md5:	684c5371e52215f7289d2c32737e4def
+Source0:	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs924/%{name}-%{version}.tar.xz
+# Source0-md5:	258c73e4ec0da94c95ea3cbd2968889a
 Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5:	9b5953aa0cc155f4364f20036b848585
 Patch0:		%{name}-missquotes.patch
@@ -241,8 +241,8 @@ Statyczna wersja biblioteki IJS.
 %{__rm} -r libpng zlib
 # (unmodified) libjpeg 9a is built with different configuration (D_MAX_BLOCKS_IN_MCU=64)
 # openjpeg is 2.1.0 + fixes; stick to bundled for now
-# lcms2 is 2.6 with some minor future changes (one already in 2.7, two post-2.7, extra_xform.h ???)
-%{?with_system_lcms2:%{__rm} -r lcms2}
+# lcms2mt is thread safe version of lcms2
+%{?with_system_lcms2:%{__rm} -r lcms2mt}
 %{__aclocal}
 %{__autoconf}
 %configure \
@@ -360,7 +360,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/%{name}/%{version}/Resource
 %{_datadir}/%{name}/%{version}/iccprofiles
 %dir %{_datadir}/%{name}/%{version}/lib
-%{_datadir}/%{name}/%{version}/examples
 %{_datadir}/%{name}/%{version}/lib/*.ppd
 %{_datadir}/%{name}/%{version}/lib/*.ps
 %{_datadir}/%{name}/%{version}/lib/*.rpd
diff --git a/ghostscript-iccprofiles-initdir.patch b/ghostscript-iccprofiles-initdir.patch
index b47511c..9c9c4a5 100644
--- a/ghostscript-iccprofiles-initdir.patch
+++ b/ghostscript-iccprofiles-initdir.patch
@@ -1,14 +1,14 @@
 diff -up ghostscript-9.06/base/gsicc_manage.c.iccprofiles-initdir ghostscript-9.06/base/gsicc_manage.c
 --- ghostscript-9.06/base/gsicc_manage.c.iccprofiles-initdir	2012-08-09 13:58:22.102364807 +0100
 +++ ghostscript-9.06/base/gsicc_manage.c	2012-08-09 14:09:24.495864641 +0100
-@@ -38,6 +38,7 @@
- #include "gsicc_create.h"
+@@ -40,6 +40,7 @@
  #include "gpmisc.h"
  #include "gxdevice.h"
+ #include "gxdevsop.h"
 +#include "gxiodev.h"
  
  #define ICC_HEADER_SIZE 128
- 
+ #define CREATE_V2_DATA 0
 @@ -2176,8 +2177,21 @@ gs_currenticcdirectory(const gs_state *
      const gs_lib_ctx_t *lib_ctx = pgs->memory->gs_lib_ctx;
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghostscript.git/commitdiff/a7f5e96339f1c59d9604ef660cb4b733e902cbfb



More information about the pld-cvs-commit mailing list