SHA256
1
0
forked from pool/ghostscript

Accepting request 344035 from Printing

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/344035
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostscript?expand=0&rev=21
This commit is contained in:
2015-11-17 13:20:38 +00:00
committed by Git OBS Bridge
9 changed files with 290 additions and 66 deletions

View File

@@ -1,11 +0,0 @@
--- base/gsmalloc.c
+++ base/gsmalloc.c
@@ -178,7 +178,7 @@ gs_heap_alloc_bytes(gs_memory_t * mem, uint size, client_name_t cname)
} else {
uint added = size + sizeof(gs_malloc_block_t);
- if (mmem->limit - added < mmem->used)
+ if (added <= size || mmem->limit - added < mmem->used)
set_msg("exceeded limit");
else if ((ptr = (byte *) Memento_label(malloc(added), cname)) == 0)
set_msg("failed");

View File

@@ -0,0 +1,47 @@
--- devices/gdevijs.c.orig 2015-10-05 10:21:11.000000000 +0200
+++ devices/gdevijs.c 2015-10-12 10:17:53.000000000 +0200
@@ -827,6 +827,10 @@ gsijs_open(gx_device *dev)
if (code < 0)
return code;
+ while (dev->child)
+ dev = dev->child;
+ ijsdev = (gx_device_ijs *)dev;
+
if (use_outputfd) {
/* Note: dup() may not be portable to all interesting IJS
platforms. In that case, this branch should be #ifdef'ed out.
--- base/gdevdflt.c.orig 2015-10-05 10:21:11.000000000 +0200
+++ base/gdevdflt.c 2015-10-12 10:21:11.000000000 +0200
@@ -17,6 +17,8 @@
#include "math_.h"
#include "memory_.h"
#include "gx.h"
+#include "gsstruct.h"
+#include "gxobj.h"
#include "gserrors.h"
#include "gsropt.h"
#include "gxcomp.h"
@@ -1294,6 +1296,11 @@ int gx_device_subclass(gx_device *dev_to
ptr1 = ((char *)new_prototype) + sizeof(gx_device);
memcpy(ptr, ptr1, new_prototype->params_size - sizeof(gx_device));
+ /* We have to patch up the "type" parameters that the memory manage/garbage
+ * collector will use, as well.
+ */
+ (((obj_header_t *)dev_to_subclass) - 1)->o_type = new_prototype->stype;
+
/* If the original device's stype structure was dynamically allocated, we need
* to 'fixup' the contents, it's procs need to point to the new device's procs
* for instance.
--- base/lib.mak.orig 2015-10-05 10:21:11.000000000 +0200
+++ base/lib.mak 2015-10-12 10:22:51.000000000 +0200
@@ -1210,7 +1210,7 @@ $(GLOBJ)gdevdsha.$(OBJ) : $(GLSRC)gdevds
$(GLOBJ)gdevdflt.$(OBJ) : $(GLSRC)gdevdflt.c $(AK) $(gx_h)\
$(gserrors_h) $(gsropt_h) $(gxcomp_h) $(gxdevice_h) $(gxdevsop_h) $(math__h)\
- $(MAKEDIRS)
+ $(gsstruct_h) $(gxobj_h) $(MAKEDIRS)
$(GLCC) $(GLO_)gdevdflt.$(OBJ) $(C_) $(GLSRC)gdevdflt.c
$(GLOBJ)gdevdgbr.$(OBJ) : $(GLSRC)gdevdgbr.c $(AK) $(gx_h)\

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:746d77280cca8afdd3d4c2c1389e332ed9b0605bd107bcaae1d761b061d1a68d
size 33623036

3
ghostscript-9.18.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5fc93079749a250be5404c465943850e3ed5ffbc0d5c07e10c7c5ee8afbbdb1b
size 33727053

View File

@@ -1,3 +1,83 @@
-------------------------------------------------------------------
Thu Nov 5 13:33:14 CET 2015 - jsmeix@suse.de
- An incompatible change appeared when building other software
with Ghostscript 9.18.
Since version 9.18 Ghostscript does no longer provide
e_<SomeError> (e.g. e_NeedInput) in its header files
(gserrors.h and ierrors.h).
When building other software with Ghostscript 9.18
gs_error_<SomeError> (e.g. gs_error_NeedInput)
must be used, see boo#953149 and
http://bugs.ghostscript.com/show_bug.cgi?id=696317
-------------------------------------------------------------------
Fri Oct 30 11:28:14 CET 2015 - jsmeix@suse.de
- install_gserrors.h.patch installs gserrors.h to fix
http://bugs.ghostscript.com/show_bug.cgi?id=696301
because without gserrors.h several other packages fail to build
(in particular texlive, libspectre, gimp,...).
-------------------------------------------------------------------
Mon Oct 12 10:26:52 CEST 2015 - jsmeix@suse.de
- fix_ijs_and_x11_for_FirstPage_and_LastPage.patch
fixes the Ghostscript device ijs and the x11* devices
so that they also work when -dFirstPage/-dLastPage is used,
see http://bugs.ghostscript.com/show_bug.cgi?id=696246
-------------------------------------------------------------------
Tue Oct 6 10:21:22 CEST 2015 - jsmeix@suse.de
- Version upgrade to 9.18. A maintenance release.
There are no recorded incompatible changes (as of this writing).
Highlights in this release include:
* A substantial revision of the build system and GhostPDL
directory structure. Ghostscript-only users should
not be affected by this change.
* A new method of internally inserting devices into the device
chain has been developed, named "device subclassing".
This allows suitably written devices to be more easily and
consistently as "filter" devices.
The first fruit of this is a new implementation of
the "-dFirstPage"/"-dLastPage" feature which functions
a device filter in the Ghostscript graphics library, meaning
it works consistently with all input languages.
* Plus the usual round of bug fixes, compatibility changes,
and incremental improvements.
See http://www.ghostscript.com/doc/9.18/News.htm
For details see the News.htm and History9.htm files.
-------------------------------------------------------------------
Tue Sep 29 11:05:48 CEST 2015 - jsmeix@suse.de
- Version upgrade to 9.18rc2 (second release candidate for 9.18).
For details see the News.htm and History9.htm files.
Regarding installing packages (in particular release candidates)
from the openSUSE build service development project "Printing"
see https://build.opensuse.org/project/show/Printing
- assign_pointer_not_value_in_gximono.c.patch is no longer needed
because it is fixed in the upstream sources.
-------------------------------------------------------------------
Thu Sep 24 10:29:04 CEST 2015 - jsmeix@suse.de
- Version upgrade to 9.18rc1 (first release candidate for 9.18).
For details see the News.htm and History9.htm files.
Regarding installing packages (in particular release candidates)
from the openSUSE build service development project "Printing"
see https://build.opensuse.org/project/show/Printing
- CVE-2015-3228.patch is no longer needed because it is fixed
in the upstream sources.
- assign_pointer_not_value_in_gximono.c.patch attempts to fix a
"assignment makes pointer from integer without a cast" compiler
warning by assigning the pointer and not the integer value.
- Removed --disable-compile-inits from configure, see
http://bugs.ghostscript.com/show_bug.cgi?id=696223
and "Precompiled run-time data" in
/usr/share/ghostscript/9.18/doc/Make.htm
-------------------------------------------------------------------
Wed Jul 29 15:20:46 CEST 2015 - jsmeix@suse.de

View File

@@ -35,36 +35,46 @@ Url: http://www.ghostscript.com/
# But only with the alphabetic prefix "9.pre15rc1" would be older than the previous version number "9.14"
# because rpmvercmp would treat 9.pre15rc1 as 9.pre.15.rc1 and letters are older than numbers
# so that we keep additionally the previous version number to upgrade from the previous version:
#Version: 9.15pre16rc2
#Version: 9.16pre18rc2
# Normal version for Ghostscript releases is the upstream version:
Version: 9.16
Version: 9.18
Release: 0
# tarball_version is used below to specify the directory via "setup -n":
# Special tarball_version needed for Ghostscript release candidates e.g. "define tarball_version 9.15rc1".
# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version):
%define tarball_version %{version}
#define tarball_version 9.16rc2
#define tarball_version 9.18rc2
# built_version is used below in the install and files sections:
# Separated built_version needed in case of Ghostscript release candidates e.g. "define built_version 9.15".
# For Ghostscript releases built_version and version are the same (i.e. the upstream version):
%define built_version %{version}
#define built_version 9.16
#define built_version 9.18
# Source0...Source9 is for sources from upstream:
# Special URLs for Ghostscript release candidates:
# URL for Source0: http://downloads.ghostscript.com/public/.release_candidate/ghostscript-9.16rc2.tar.gz
# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS or http://www.ghostscript.com/~chrisl/MD5SUM
# or http://downloads.ghostscript.com/public/.release_candidate/MD5SUMS
# MD5 checksum for Source0: 17983ee93d97596ffa72fd32be2426a4
#Source0: http://downloads.ghostscript.com/public/.release_candidate/ghostscript-9.16rc2.tar.gz
# URL for Source0: http://downloads.ghostscript.com/public/.release_candidate/ghostscript-9.18rc2.tar.gz
# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS
# or http://www.ghostscript.com/~chrisl/MD5SUM
# or http://downloads.ghostscript.com/public/.release_candidate/MD5SUMS
# MD5 checksum for Source0: 7cea0466e845de0a05e60b89225ab0d3
#Source0: http://downloads.ghostscript.com/public/.release_candidate/ghostscript-9.18rc2.tar.gz
# Normal URLs for Ghostscript releases:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.16.tar.gz
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.18.tar.gz
# URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS
# MD5 checksum for Source0: 829319325bbdb83f5c81379a8f86f38f
# MD5 checksum for Source0: 33a47567d7a591c00a253caddd12a88a
Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.tar.gz
# Patch0...Patch9 is for patches from upstream:
#
# Patch1 fix_ijs_and_x11_for_FirstPage_and_LastPage.patch
# fixes the Ghostscript device ijs and the x11* devices
# so that they also work when -dFirstPage/-dLastPage is used,
# see http://bugs.ghostscript.com/show_bug.cgi?id=696246
Patch1: fix_ijs_and_x11_for_FirstPage_and_LastPage.patch
# Patch2 install_gserrors.h.patch
# installs gserrors.h to fix
# http://bugs.ghostscript.com/show_bug.cgi?id=696301
# because without gserrors.h several other packages fail to build
# (in particular texlive, libspectre, gimp,...)
Patch2: install_gserrors.h.patch
# Source10...Source99 is for sources from SUSE which are intended for upstream:
#
# Patch10...Patch99 is for patches from SUSE which are intended for upstream:
# Patch11 ppc64le-support.patch is a remainder of the previous patch
# now the hunk for LCMS (lcms/include/lcms.h) is removed
@@ -72,14 +82,8 @@ Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.t
# but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544
Patch11: ppc64le-support.patch
#
# Source100...Source999 is for sources from SUSE which are not intended for upstream:
#
# Patch100...Patch999 is for patches from SUSE which are not intended for upstream:
# Patch101 CVE-2015-3228.patch fixes out of bound read/write cause by integer overflow
# in gsmalloc.c (see https://bugzilla.opensuse.org/show_bug.cgi?id=939342):
Patch101: CVE-2015-3228.patch
#
Conflicts: ghostscript
Conflicts: ghostscript-x11
Conflicts: ghostscript-devel
@@ -147,19 +151,27 @@ This package contains the development files for Minimal Ghostscript.
# Be quiet when unpacking and
# use a directory name matching Source0 to make it work also for ghostscript-mini:
%setup -q -n ghostscript-%{tarball_version}
# Patch1 fix_ijs_and_x11_for_FirstPage_and_LastPage.patch
# fixes the Ghostscript device ijs and the x11* devices
# so that they also work when -dFirstPage/-dLastPage is used,
# see http://bugs.ghostscript.com/show_bug.cgi?id=696246
%patch1 -b fix_ijs_and_x11_for_FirstPage_and_LastPage.orig
# Patch2 install_gserrors.h.patch
# installs gserrors.h to fix
# http://bugs.ghostscript.com/show_bug.cgi?id=696301
# because without gserrors.h several other packages fail to build
# (in particular texlive, libspectre, gimp,...)
%patch2 -b install_gserrors.h.orig
# Patch11 ppc64le-support.patch is a remainder of the previous patch
# now the hunk for LCMS (lcms/include/lcms.h) is removed
# because LCMS 1.x is removed since Ghostscript 9.16
# but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544
%patch11 -p1 -b ppc64le-support.orig
# Patch101 CVE-2015-3228.patch fixes out of bound read/write cause by integer overflow
# in gsmalloc.c (see https://bugzilla.opensuse.org/show_bug.cgi?id=939342):
%patch101 -b .CVE-2015-3228.orig
%build
# Set our preferred architecture-specific flags for the compiler and linker:
export CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -fi
# --docdir=%%{_defaultdocdir}/%%{name} does not work therefore it is not used.
@@ -202,7 +214,6 @@ export SUSE_ASNEEDED=0
--with-drivers=FILES \
--without-x \
--disable-gtk \
--disable-compile-inits \
--without-omni \
--without-ufst \
--without-luratech \
@@ -356,9 +367,7 @@ exit 0
%dir %{_datadir}/ghostscript/%{built_version}
%doc %{_datadir}/ghostscript/%{built_version}/doc/
%{_datadir}/ghostscript/%{built_version}/examples/
%{_datadir}/ghostscript/%{built_version}/iccprofiles/
%{_datadir}/ghostscript/%{built_version}/lib/
%{_datadir}/ghostscript/%{built_version}/Resource/
%{_libdir}/libgs.so.*
%{_libdir}/ghostscript/
%{_libdir}/libijs-0.35.so

View File

@@ -1,3 +1,83 @@
-------------------------------------------------------------------
Thu Nov 5 13:33:14 CET 2015 - jsmeix@suse.de
- An incompatible change appeared when building other software
with Ghostscript 9.18.
Since version 9.18 Ghostscript does no longer provide
e_<SomeError> (e.g. e_NeedInput) in its header files
(gserrors.h and ierrors.h).
When building other software with Ghostscript 9.18
gs_error_<SomeError> (e.g. gs_error_NeedInput)
must be used, see boo#953149 and
http://bugs.ghostscript.com/show_bug.cgi?id=696317
-------------------------------------------------------------------
Fri Oct 30 11:28:14 CET 2015 - jsmeix@suse.de
- install_gserrors.h.patch installs gserrors.h to fix
http://bugs.ghostscript.com/show_bug.cgi?id=696301
because without gserrors.h several other packages fail to build
(in particular texlive, libspectre, gimp,...).
-------------------------------------------------------------------
Mon Oct 12 10:26:52 CEST 2015 - jsmeix@suse.de
- fix_ijs_and_x11_for_FirstPage_and_LastPage.patch
fixes the Ghostscript device ijs and the x11* devices
so that they also work when -dFirstPage/-dLastPage is used,
see http://bugs.ghostscript.com/show_bug.cgi?id=696246
-------------------------------------------------------------------
Tue Oct 6 10:21:22 CEST 2015 - jsmeix@suse.de
- Version upgrade to 9.18. A maintenance release.
There are no recorded incompatible changes (as of this writing).
Highlights in this release include:
* A substantial revision of the build system and GhostPDL
directory structure. Ghostscript-only users should
not be affected by this change.
* A new method of internally inserting devices into the device
chain has been developed, named "device subclassing".
This allows suitably written devices to be more easily and
consistently as "filter" devices.
The first fruit of this is a new implementation of
the "-dFirstPage"/"-dLastPage" feature which functions
a device filter in the Ghostscript graphics library, meaning
it works consistently with all input languages.
* Plus the usual round of bug fixes, compatibility changes,
and incremental improvements.
See http://www.ghostscript.com/doc/9.18/News.htm
For details see the News.htm and History9.htm files.
-------------------------------------------------------------------
Tue Sep 29 11:05:48 CEST 2015 - jsmeix@suse.de
- Version upgrade to 9.18rc2 (second release candidate for 9.18).
For details see the News.htm and History9.htm files.
Regarding installing packages (in particular release candidates)
from the openSUSE build service development project "Printing"
see https://build.opensuse.org/project/show/Printing
- assign_pointer_not_value_in_gximono.c.patch is no longer needed
because it is fixed in the upstream sources.
-------------------------------------------------------------------
Thu Sep 24 10:29:04 CEST 2015 - jsmeix@suse.de
- Version upgrade to 9.18rc1 (first release candidate for 9.18).
For details see the News.htm and History9.htm files.
Regarding installing packages (in particular release candidates)
from the openSUSE build service development project "Printing"
see https://build.opensuse.org/project/show/Printing
- CVE-2015-3228.patch is no longer needed because it is fixed
in the upstream sources.
- assign_pointer_not_value_in_gximono.c.patch attempts to fix a
"assignment makes pointer from integer without a cast" compiler
warning by assigning the pointer and not the integer value.
- Removed --disable-compile-inits from configure, see
http://bugs.ghostscript.com/show_bug.cgi?id=696223
and "Precompiled run-time data" in
/usr/share/ghostscript/9.18/doc/Make.htm
-------------------------------------------------------------------
Wed Jul 29 15:20:46 CEST 2015 - jsmeix@suse.de

View File

@@ -55,36 +55,46 @@ Url: http://www.ghostscript.com/
# But only with the alphabetic prefix "9.pre15rc1" would be older than the previous version number "9.14"
# because rpmvercmp would treat 9.pre15rc1 as 9.pre.15.rc1 and letters are older than numbers
# so that we keep additionally the previous version number to upgrade from the previous version:
#Version: 9.15pre16rc2
#Version: 9.16pre18rc2
# Normal version for Ghostscript releases is the upstream version:
Version: 9.16
Version: 9.18
Release: 0
# tarball_version is used below to specify the directory via "setup -n":
# Special tarball_version needed for Ghostscript release candidates e.g. "define tarball_version 9.15rc1".
# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version):
%define tarball_version %{version}
#define tarball_version 9.16rc2
#define tarball_version 9.18rc2
# built_version is used below in the install and files sections:
# Separated built_version needed in case of Ghostscript release candidates e.g. "define built_version 9.15".
# For Ghostscript releases built_version and version are the same (i.e. the upstream version):
%define built_version %{version}
#define built_version 9.16
#define built_version 9.18
# Source0...Source9 is for sources from upstream:
# Special URLs for Ghostscript release candidates:
# URL for Source0: http://downloads.ghostscript.com/public/.release_candidate/ghostscript-9.16rc2.tar.gz
# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS or http://www.ghostscript.com/~chrisl/MD5SUM
# or http://downloads.ghostscript.com/public/.release_candidate/MD5SUMS
# MD5 checksum for Source0: 17983ee93d97596ffa72fd32be2426a4
#Source0: http://downloads.ghostscript.com/public/.release_candidate/ghostscript-9.16rc2.tar.gz
# URL for Source0: http://downloads.ghostscript.com/public/.release_candidate/ghostscript-9.18rc2.tar.gz
# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS
# or http://www.ghostscript.com/~chrisl/MD5SUM
# or http://downloads.ghostscript.com/public/.release_candidate/MD5SUMS
# MD5 checksum for Source0: 7cea0466e845de0a05e60b89225ab0d3
#Source0: http://downloads.ghostscript.com/public/.release_candidate/ghostscript-9.18rc2.tar.gz
# Normal URLs for Ghostscript releases:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.16.tar.gz
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.18.tar.gz
# URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS
# MD5 checksum for Source0: 829319325bbdb83f5c81379a8f86f38f
# MD5 checksum for Source0: 33a47567d7a591c00a253caddd12a88a
Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.tar.gz
# Patch0...Patch9 is for patches from upstream:
#
# Patch1 fix_ijs_and_x11_for_FirstPage_and_LastPage.patch
# fixes the Ghostscript device ijs and the x11* devices
# so that they also work when -dFirstPage/-dLastPage is used,
# see http://bugs.ghostscript.com/show_bug.cgi?id=696246
Patch1: fix_ijs_and_x11_for_FirstPage_and_LastPage.patch
# Patch2 install_gserrors.h.patch
# installs gserrors.h to fix
# http://bugs.ghostscript.com/show_bug.cgi?id=696301
# because without gserrors.h several other packages fail to build
# (in particular texlive, libspectre, gimp,...)
Patch2: install_gserrors.h.patch
# Source10...Source99 is for sources from SUSE which are intended for upstream:
#
# Patch10...Patch99 is for patches from SUSE which are intended for upstream:
# Patch11 ppc64le-support.patch is a remainder of the previous patch
# now the hunk for LCMS (lcms/include/lcms.h) is removed
@@ -92,14 +102,8 @@ Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.t
# but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544
Patch11: ppc64le-support.patch
#
# Source100...Source999 is for sources from SUSE which are not intended for upstream:
#
# Patch100...Patch999 is for patches from SUSE which are not intended for upstream:
# Patch101 CVE-2015-3228.patch fixes out of bound read/write cause by integer overflow
# in gsmalloc.c (see https://bugzilla.opensuse.org/show_bug.cgi?id=939342):
Patch101: CVE-2015-3228.patch
#
# RPM dependencies:
# Additional RPM Provides of the ghostscript-library packages in openSUSE 11.4 from
# "rpm -q --provides ghostscript-library" and "rpm -q --provides ghostscript-x11":
@@ -284,19 +288,27 @@ This package contains the development files for Ghostscript.
# Be quiet when unpacking and
# use a directory name matching Source0 to make it work also for ghostscript-mini:
%setup -q -n ghostscript-%{tarball_version}
# Patch1 fix_ijs_and_x11_for_FirstPage_and_LastPage.patch
# fixes the Ghostscript device ijs and the x11* devices
# so that they also work when -dFirstPage/-dLastPage is used,
# see http://bugs.ghostscript.com/show_bug.cgi?id=696246
%patch1 -b fix_ijs_and_x11_for_FirstPage_and_LastPage.orig
# Patch2 install_gserrors.h.patch
# installs gserrors.h to fix
# http://bugs.ghostscript.com/show_bug.cgi?id=696301
# because without gserrors.h several other packages fail to build
# (in particular texlive, libspectre, gimp,...)
%patch2 -b install_gserrors.h.orig
# Patch11 ppc64le-support.patch is a remainder of the previous patch
# now the hunk for LCMS (lcms/include/lcms.h) is removed
# because LCMS 1.x is removed since Ghostscript 9.16
# but the hunk for LCMS2 (lcms2/include/lcms2.h) is still needed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544
%patch11 -p1 -b ppc64le-support.orig
# Patch101 CVE-2015-3228.patch fixes out of bound read/write cause by integer overflow
# in gsmalloc.c (see https://bugzilla.opensuse.org/show_bug.cgi?id=939342):
%patch101 -b .CVE-2015-3228.orig
%build
# Set our preferred architecture-specific flags for the compiler and linker:
export CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -fi
# --docdir=%%{_defaultdocdir}/%%{name} does not work therefore it is not used.
@@ -339,7 +351,6 @@ export SUSE_ASNEEDED=0
--with-drivers=ALL \
--with-x \
--disable-gtk \
--disable-compile-inits \
--without-omni \
--without-ufst \
--without-luratech \
@@ -493,9 +504,7 @@ exit 0
%dir %{_datadir}/ghostscript/%{built_version}
%doc %{_datadir}/ghostscript/%{built_version}/doc/
%{_datadir}/ghostscript/%{built_version}/examples/
%{_datadir}/ghostscript/%{built_version}/iccprofiles/
%{_datadir}/ghostscript/%{built_version}/lib/
%{_datadir}/ghostscript/%{built_version}/Resource/
%{_libdir}/libgs.so.*
%{_libdir}/ghostscript/
%{_libdir}/libijs-0.35.so

10
install_gserrors.h.patch Normal file
View File

@@ -0,0 +1,10 @@
--- base/unix-dll.mak.orig 2015-10-05 10:21:11.000000000 +0200
+++ base/unix-dll.mak 2015-10-30 11:22:12.000000000 +0100
@@ -184,6 +184,7 @@ install-so-subtarget: so-subtarget
ln -s $(GS_SONAME_MAJOR_MINOR) $(DESTDIR)$(libdir)/$(GS_SONAME_MAJOR)
$(INSTALL_DATA) $(PSSRC)iapi.h $(DESTDIR)$(gsincludedir)iapi.h
$(INSTALL_DATA) $(PSSRC)ierrors.h $(DESTDIR)$(gsincludedir)ierrors.h
+ $(INSTALL_DATA) $(GLSRC)gserrors.h $(DESTDIR)$(gsincludedir)gserrors.h
$(INSTALL_DATA) $(DEVSRC)gdevdsp.h $(DESTDIR)$(gsincludedir)gdevdsp.h
soinstall: