SHA256
1
0
forked from pool/ghostscript

Accepting request 253098 from Printing

More descriptive texts and upstream bug regarding re-added ppc64le-support.patch (forwarded request 253097 from jsmeix)

OBS-URL: https://build.opensuse.org/request/show/253098
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostscript?expand=0&rev=18
This commit is contained in:
Stephan Kulow 2014-10-01 05:40:20 +00:00 committed by Git OBS Bridge
commit 28adab4a5e
5 changed files with 65 additions and 1 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sun Sep 28 18:00:37 CEST 2014 - ro@suse.de
- readd ppc64le patch ppc64le-support.patch (adapted for lcms2 in
Ghostscript version 9.15): the tests in lcms2.h cannot work
without "include <endian.h>" that is now added and
regardless that lcms is not used by default (unless the
configure option --with-lcms is set), lcms is again fixed
(see http://bugs.ghostscript.com/show_bug.cgi?id=695544).
-------------------------------------------------------------------
Tue Sep 23 10:14:28 CEST 2014 - jsmeix@suse.de

View File

@ -65,6 +65,10 @@ Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.t
# 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
# lcms2 has been fixed upstream not working and lcms has not been fixed
# 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:
#
@ -137,6 +141,10 @@ 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}
# Patch11 ppc64le-support.patch is a remainder of the previous patch
# lcms2 has been fixed upstream not working and lcms has not been fixed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544
%patch11 -p1
%build
# Set our preferred architecture-specific flags for the compiler and linker:

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sun Sep 28 18:00:37 CEST 2014 - ro@suse.de
- readd ppc64le patch ppc64le-support.patch (adapted for lcms2 in
Ghostscript version 9.15): the tests in lcms2.h cannot work
without "include <endian.h>" that is now added and
regardless that lcms is not used by default (unless the
configure option --with-lcms is set), lcms is again fixed
(see http://bugs.ghostscript.com/show_bug.cgi?id=695544).
-------------------------------------------------------------------
Tue Sep 23 10:14:28 CEST 2014 - jsmeix@suse.de

View File

@ -71,6 +71,10 @@ Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.t
# 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
# lcms2 has been fixed upstream not working and lcms has not been fixed
# 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:
#
@ -260,6 +264,10 @@ 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}
# Patch11 ppc64le-support.patch is a remainder of the previous patch
# lcms2 has been fixed upstream not working and lcms has not been fixed
# see http://bugs.ghostscript.com/show_bug.cgi?id=695544
%patch11 -p1
%build
# Set our preferred architecture-specific flags for the compiler and linker:

28
ppc64le-support.patch Normal file
View File

@ -0,0 +1,28 @@
--- ghostscript-9.15/lcms/include/lcms.h
+++ ghostscript-9.15/lcms/include/lcms.h
@@ -140,11 +140,15 @@
#endif
#if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) || defined(__ppc__) || defined(__s390__) || defined(__s390x__)
+# ifndef __LITTLE_ENDIAN__
# define USE_BIG_ENDIAN 1
+# endif
#endif
#if TARGET_CPU_PPC
+# ifndef __LITTLE_ENDIAN__
# define USE_BIG_ENDIAN 1
+# endif
#endif
#if macintosh
--- ghostscript-9.15/lcms2/include/lcms2.h
+++ ghostscript-9.15/lcms2/include/lcms2.h
@@ -67,6 +67,7 @@
#include <limits.h>
#include <time.h>
#include <stddef.h>
+#include <endian.h>
#ifndef CMS_USE_CPP_API
# ifdef __cplusplus