Accepting request 211704 from Printing

Added explanatory info what ppc64le-support.patch is about and added RPM recommends for cups-filters-ghostscript (forwarded request 211702 from jsmeix)

OBS-URL: https://build.opensuse.org/request/show/211704
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostscript?expand=0&rev=13
This commit is contained in:
Tomáš Chvátal 2013-12-22 18:32:43 +00:00 committed by Git OBS Bridge
commit 96a279a4a8
7 changed files with 251 additions and 74 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44800d004c53f13192d1b5db413119198ddfc8a11c4d2a030aac2f2fda822ebf
size 31911560

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

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:913fc974433238ffd4e0549ce11ba2a3360d1d159cf5c3b988d72a77acb74d04
size 35282727

View File

@ -1,3 +1,52 @@
-------------------------------------------------------------------
Fri Dec 13 19:09:12 UTC 2013 - uweigand@de.ibm.com
- ppc64le-support.patch from IBM fixes endianness
in lcms (the Little-CMS library) to support the new
architecture ppc64le (IBM Power PC Little Endian architecture)
because ppc64 is big-endian and ppc64le is little-endian
and lcms has a hard-coded check that assumes PowerPC
is always big-endian which is incorrect on ppc64le.
The fix is already in the main Little-CMS repository
by this Git commit
https://github.com/mm2/Little-CMS/commit/b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79
(There are some cosmetic changes in the upstream patch.)
It is not yet in the imported copy in Ghostscript.
IBM will work with upstream to get the fix imported too.
-------------------------------------------------------------------
Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de
- Version upgrade to 9.10. Primarily a maintenance release.
Highlights in this release include:
* LittleCMS2 and libpng have both been updated to the
latest versions.
* The URW Postscript font set has been updated to the
latest version, fixing many compatibility problems
with the Adobe fonts.
* The CUPS filters gstoraster and gstopxl have been
removed from Ghostscript. Those filters are now provided by
cups-filters (a free software package hosted by OpenPrinting)
that contains all CUPS filters needed by CUPS under Linux
(see also the openSUSE issue bnc#735404 comment#44 at
https://bugzilla.novell.com/show_bug.cgi?id=735404#c44).
For details see the News.htm and History9.htm files.
- fix-undefined-operation.patch is no longer needed because
it is fixed in the upstream sources.
-------------------------------------------------------------------
Thu Aug 29 15:06:13 CEST 2013 - jsmeix@suse.de
- Version upgrade to 9.10rc1 (release candidate for the 9.10 version).
For details see the News.htm and History9.htm files.
- Prepare spec files to build both releases and release candidates
easily in the future by using special different version strings.
- fix-undefined-operation.patch fixes
http://bugs.ghostscript.com/show_bug.cgi?id=694546
- Removed BuildRequires for liblcms-devel because it is not needed
when we build Ghostscript that works in compliance with upstream
(see https://bugzilla.novell.com/show_bug.cgi?id=828751#c5).
-------------------------------------------------------------------
Wed Mar 27 07:58:08 UTC 2013 - mmeister@suse.com

View File

@ -17,7 +17,6 @@
Name: ghostscript-mini
BuildRequires: freetype2-devel
BuildRequires: liblcms-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
@ -27,18 +26,49 @@ Summary: Minimal Ghostscript for minimal build requirements
License: AGPL-3.0
Group: System/Libraries
Url: http://www.ghostscript.com/
Version: 9.07
# Special version needed for Ghostscript release candidates e.g. "Version: 9.pre10rc1":
# Version 9.10rc1 would be newer than 9.10 (run "zypper vcmp 9.10rc1 9.10") because the rpmvercmp algorithm
# would treat 9.10rc1 as 9.10.rc.1 (alphabetic and numeric sections get separated into different elements)
# and 9.10.rc.1 is newer than 9.10 (it has one more element in the list while previous elements are equal)
# so that we use an alphabetic prefix to make it older than 9.10 (numbers are considered newer than letters):
#Version: 9.pre10rc1
# Normal version for Ghostscript releases is the upstream version:
Version: 9.10
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.10rc1".
# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version):
%define tarball_version %{version}
# 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.10".
# For Ghostscript releases built_version and version are the same (i.e. the upstream version):
%define built_version %{version}
# Source0...Source9 is for sources from upstream:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz
# Special URLs for Ghostscript release candidates:
# URL for Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz
# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS
# MD5 checksum for Source0: 0cdf23c5dff76040983bca74675f88be
#Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz
# Normal URLs for Ghostscript releases:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.10.tar.gz
# URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS
# MD5 checksum for Source0: 57ebf17c5abcf0fc95a386bfff08c1a4
# MD5 checksum for Source0: 5f0c0a2670b08466a4050ddbd1f3de63
Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.tar.gz
# Patch0...Patch9 is for patches from upstream:
#
# Source10...Source99 is for sources from SUSE which are intended for upstream:
#
# Patch10...Patch99 is for patches from SUSE which are intended for upstream:
# Patch10 ppc64le-support.patch from IBM fixes endianness in lcms (the Little-CMS library)
# to support the new architecture ppc64le (IBM Power PC Little Endian architecture)
# because ppc64 is big-endian and ppc64le is little-endian and lcms has a hard-coded
# check that assumes PowerPC is always big-endian which is incorrect on ppc64le.
# The fix is already in the main Little-CMS repository by this Git commit
# https://github.com/mm2/Little-CMS/commit/b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79
# (There are some cosmetic changes in the patch as it went upstream.)
# It is not yet in the imported copy in Ghostscript.
# IBM will work with upstream to get the fix imported too.
Patch10: ppc64le-support.patch
#
# Source100...Source999 is for sources from SUSE which are not intended for upstream:
#
@ -110,7 +140,9 @@ This package contains the development files for Minimal Ghostscript.
%prep
# Be quiet when unpacking and
# use a directory name matching Source0 to make it work also for ghostscript-mini:
%setup -q -n ghostscript-%{version}
%setup -q -n ghostscript-%{tarball_version}
# Patch10 ppc64le-support.patch from IBM fixes endianness in lcms (the Little-CMS library):
%patch10 -p1
%build
# Set our preferred architecture-specific flags for the compiler and linker:
@ -134,18 +166,6 @@ autoreconf -fi
# which would require a commercial license.
# --without-libpaper disables libpaper support because SUSE does not have libpaper.
%define gs_font_path /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID:/usr/share/fonts/URW
%if 0%{?suse_version} >= 1210
# --without-system-libtiff enforces not to use the systems libtiff because
# currently (dated Thu Mar 15 2012) using system libtiff fails
# in openSUSE:Factory and openSUSE:12.1 with
# "checking for libtiff with pkg-config... checking for TIFFOpen in -ltiff... no
# configure: Could not find a copy of libtiff on your system.
# Disabling tiff output devices."
# regardless of "BuildRequires libtiff-devel" which works everywhere except openSUSE:Factory.
%define with_or_without_system_libtiff --without-system-libtiff
%else
%define with_or_without_system_libtiff --with-system-libtiff
%endif
# See http://bugs.ghostscript.com/show_bug.cgi?id=693100
export SUSE_ASNEEDED=0
./configure --prefix=%{_prefix} \
@ -156,7 +176,6 @@ export SUSE_ASNEEDED=0
--infodir=%{_infodir} \
--with-fontpath=%{gs_font_path} \
--with-libiconv=maybe \
%{with_or_without_system_libtiff} \
--enable-freetype \
--with-jbig2dec \
--without-jasper \
@ -204,14 +223,10 @@ popd
rm %{buildroot}%{_bindir}/ijs_client_example
rm %{buildroot}%{_bindir}/ijs_server_example
rm %{buildroot}%{_libdir}/libijs.la
# Remove installed but obsolete pdfopt man pages because pdfopt is removed since version 9.07
# and fail intentionally as notification when this is fixed upstream:
rm %{buildroot}%{_mandir}/man1/pdfopt.1 || exit 99
rm %{buildroot}%{_mandir}/de/man1/pdfopt.1 || exit 99
# Install documentation which is not installed by default
# see http://bugs.ghostscript.com/show_bug.cgi?id=693002
# and fail intentionally as notification if something changed:
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{version}/doc
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/doc
for D in LICENSE
do test -e $DOCDIR/$( basename $D ) && exit 99
install -m 644 $D $DOCDIR
@ -220,7 +235,7 @@ done
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
install -d -m 755 %{buildroot}%{_defaultdocdir}
pushd %{buildroot}%{_defaultdocdir}
ln -s ../../ghostscript/%{version}/doc ghostscript
ln -s ../../ghostscript/%{built_version}/doc ghostscript
popd
# Extract the catalog of devices which are actually built-in in exactly this Ghostscript:
# Do not pollute the build log file with zillions of meaningless messages:
@ -320,12 +335,12 @@ exit 0
%doc %{_mandir}/de/man1/wftopfa.1.gz
%doc %{_defaultdocdir}/ghostscript
%dir %{_datadir}/ghostscript
%dir %{_datadir}/ghostscript/%{version}
%doc %{_datadir}/ghostscript/%{version}/doc/
%{_datadir}/ghostscript/%{version}/examples/
%{_datadir}/ghostscript/%{version}/iccprofiles/
%{_datadir}/ghostscript/%{version}/lib/
%{_datadir}/ghostscript/%{version}/Resource/
%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,52 @@
-------------------------------------------------------------------
Fri Dec 13 19:09:12 UTC 2013 - uweigand@de.ibm.com
- ppc64le-support.patch from IBM fixes endianness
in lcms (the Little-CMS library) to support the new
architecture ppc64le (IBM Power PC Little Endian architecture)
because ppc64 is big-endian and ppc64le is little-endian
and lcms has a hard-coded check that assumes PowerPC
is always big-endian which is incorrect on ppc64le.
The fix is already in the main Little-CMS repository
by this Git commit
https://github.com/mm2/Little-CMS/commit/b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79
(There are some cosmetic changes in the upstream patch.)
It is not yet in the imported copy in Ghostscript.
IBM will work with upstream to get the fix imported too.
-------------------------------------------------------------------
Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de
- Version upgrade to 9.10. Primarily a maintenance release.
Highlights in this release include:
* LittleCMS2 and libpng have both been updated to the
latest versions.
* The URW Postscript font set has been updated to the
latest version, fixing many compatibility problems
with the Adobe fonts.
* The CUPS filters gstoraster and gstopxl have been
removed from Ghostscript. Those filters are now provided by
cups-filters (a free software package hosted by OpenPrinting)
that contains all CUPS filters needed by CUPS under Linux
(see also the openSUSE issue bnc#735404 comment#44 at
https://bugzilla.novell.com/show_bug.cgi?id=735404#c44).
For details see the News.htm and History9.htm files.
- fix-undefined-operation.patch is no longer needed because
it is fixed in the upstream sources.
-------------------------------------------------------------------
Thu Aug 29 15:06:13 CEST 2013 - jsmeix@suse.de
- Version upgrade to 9.10rc1 (release candidate for the 9.10 version).
For details see the News.htm and History9.htm files.
- Prepare spec files to build both releases and release candidates
easily in the future by using special different version strings.
- fix-undefined-operation.patch fixes
http://bugs.ghostscript.com/show_bug.cgi?id=694546
- Removed BuildRequires for liblcms-devel because it is not needed
when we build Ghostscript that works in compliance with upstream
(see https://bugzilla.novell.com/show_bug.cgi?id=828751#c5).
-------------------------------------------------------------------
Wed Mar 27 07:58:08 UTC 2013 - mmeister@suse.com

View File

@ -21,7 +21,6 @@ BuildRequires: cups-devel
BuildRequires: dbus-1-devel
BuildRequires: freetype2-devel
BuildRequires: libexpat-devel
BuildRequires: liblcms-devel
BuildRequires: libopenssl-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
@ -34,18 +33,49 @@ Summary: The Ghostscript interpreter for PostScript and PDF
License: AGPL-3.0
Group: System/Libraries
Url: http://www.ghostscript.com/
Version: 9.07
# Special version needed for Ghostscript release candidates e.g. "Version: 9.pre10rc1":
# Version 9.10rc1 would be newer than 9.10 (run "zypper vcmp 9.10rc1 9.10") because the rpmvercmp algorithm
# would treat 9.10rc1 as 9.10.rc.1 (alphabetic and numeric sections get separated into different elements)
# and 9.10.rc.1 is newer than 9.10 (it has one more element in the list while previous elements are equal)
# so that we use an alphabetic prefix to make it older than 9.10 (numbers are considered newer than letters):
#Version: 9.pre10rc1
# Normal version for Ghostscript releases is the upstream version:
Version: 9.10
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.10rc1".
# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version):
%define tarball_version %{version}
# 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.10".
# For Ghostscript releases built_version and version are the same (i.e. the upstream version):
%define built_version %{version}
# Source0...Source9 is for sources from upstream:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz
# Special URLs for Ghostscript release candidates:
# URL for Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz
# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS
# MD5 checksum for Source0: 0cdf23c5dff76040983bca74675f88be
#Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz
# Normal URLs for Ghostscript releases:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.10.tar.gz
# URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS
# MD5 checksum for Source0: 57ebf17c5abcf0fc95a386bfff08c1a4
# MD5 checksum for Source0: 5f0c0a2670b08466a4050ddbd1f3de63
Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.tar.gz
# Patch0...Patch9 is for patches from upstream:
#
# Source10...Source99 is for sources from SUSE which are intended for upstream:
#
# Patch10...Patch99 is for patches from SUSE which are intended for upstream:
# Patch10 ppc64le-support.patch from IBM fixes endianness in lcms (the Little-CMS library)
# to support the new architecture ppc64le (IBM Power PC Little Endian architecture)
# because ppc64 is big-endian and ppc64le is little-endian and lcms has a hard-coded
# check that assumes PowerPC is always big-endian which is incorrect on ppc64le.
# The fix is already in the main Little-CMS repository by this Git commit
# https://github.com/mm2/Little-CMS/commit/b4f5c91a2c1582bd284f0d0f49cb43e2c2235a79
# (There are some cosmetic changes in the patch as it went upstream.)
# It is not yet in the imported copy in Ghostscript.
# IBM will work with upstream to get the fix imported too.
Patch10: ppc64le-support.patch
#
# Source100...Source999 is for sources from SUSE which are not intended for upstream:
#
@ -128,6 +158,16 @@ Conflicts: ghostscript-x11 > %{version}-%{release}
# When the ghostscript main-package is installed, usually the exact matching
# version-release of the ghostscript-x11 sub-package should be also installed:
Recommends: ghostscript-x11 = %{version}-%{release}
# When the ghostscript main-package is installed, usually the CUPS filters gstoraster and gstopxl
# should be also installed. Since version 9.10 those CUPS filters are removed from Ghostscript
# and are now provided by the binary RPM sub-package cups-filters-ghostscript
# (see the cups-filters-ghostscript sub-package description).
# No RPM requirement because Ghostscript can be used without those CUPS filters
# and cups-filters-ghostscript is only available for newer openSUSE versions
# (currently since openSUSE 12.2) but in particular not for SLE11:
%if 0%{?suse_version} > 1210
Recommends: cups-filters-ghostscript
%endif
# Require Ghostscript's fonts because the Ghostscript package provides the
# "Fontmap" file /usr/share/ghostscript/<version>/Resource/Init/Fontmap.GS
# which lists Ghostscript's fonts but the fonts itself are provided in the
@ -224,7 +264,9 @@ This package contains the development files for Ghostscript.
%prep
# Be quiet when unpacking and
# use a directory name matching Source0 to make it work also for ghostscript-mini:
%setup -q -n ghostscript-%{version}
%setup -q -n ghostscript-%{tarball_version}
# Patch10 ppc64le-support.patch from IBM fixes endianness in lcms (the Little-CMS library):
%patch10 -p1
%build
# Set our preferred architecture-specific flags for the compiler and linker:
@ -249,18 +291,6 @@ autoreconf -fi
# which would require a commercial license.
# --without-libpaper disables libpaper support because SUSE does not have libpaper.
%define gs_font_path /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID:/usr/share/fonts/URW
%if 0%{?suse_version} >= 1210
# --without-system-libtiff enforces not to use the systems libtiff because
# currently (dated Thu Mar 15 2012) using system libtiff fails
# in openSUSE:Factory and openSUSE:12.1 with
# "checking for libtiff with pkg-config... checking for TIFFOpen in -ltiff... no
# configure: Could not find a copy of libtiff on your system.
# Disabling tiff output devices."
# regardless of "BuildRequires libtiff-devel" which works everywhere except openSUSE:Factory.
%define with_or_without_system_libtiff --without-system-libtiff
%else
%define with_or_without_system_libtiff --with-system-libtiff
%endif
# See http://bugs.ghostscript.com/show_bug.cgi?id=693100
export SUSE_ASNEEDED=0
./configure --prefix=%{_prefix} \
@ -271,7 +301,6 @@ export SUSE_ASNEEDED=0
--infodir=%{_infodir} \
--with-fontpath=%{gs_font_path} \
--with-libiconv=maybe \
%{with_or_without_system_libtiff} \
--enable-freetype \
--with-jbig2dec \
--without-jasper \
@ -319,14 +348,10 @@ popd
rm %{buildroot}%{_bindir}/ijs_client_example
rm %{buildroot}%{_bindir}/ijs_server_example
rm %{buildroot}%{_libdir}/libijs.la
# Remove installed but obsolete pdfopt man pages because pdfopt is removed since version 9.07
# and fail intentionally as notification when this is fixed upstream:
rm %{buildroot}%{_mandir}/man1/pdfopt.1 || exit 99
rm %{buildroot}%{_mandir}/de/man1/pdfopt.1 || exit 99
# Install documentation which is not installed by default
# see http://bugs.ghostscript.com/show_bug.cgi?id=693002
# and fail intentionally as notification if something changed:
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{version}/doc
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/doc
for D in LICENSE
do test -e $DOCDIR/$( basename $D ) && exit 99
install -m 644 $D $DOCDIR
@ -335,7 +360,7 @@ done
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
install -d -m 755 %{buildroot}%{_defaultdocdir}
pushd %{buildroot}%{_defaultdocdir}
ln -s ../../ghostscript/%{version}/doc ghostscript
ln -s ../../ghostscript/%{built_version}/doc ghostscript
popd
# Extract the catalog of devices which are actually built-in in exactly this Ghostscript:
# Do not pollute the build log file with zillions of meaningless messages:
@ -364,7 +389,6 @@ exit 0
%files
%defattr(-, root, root)
%config %{_sysconfdir}/cups/gstoraster.convs
%{_bindir}/dvipdf
%{_bindir}/eps2eps
%{_bindir}/font2c
@ -395,14 +419,6 @@ exit 0
%{_bindir}/ps2ps2
%{_bindir}/unix-lpr.sh
%{_bindir}/wftopfa
%dir /usr/lib/cups
%dir /usr/lib/cups/filter
/usr/lib/cups/filter/gstopxl
/usr/lib/cups/filter/gstoraster
%dir %{_datadir}/cups
%dir %{_datadir}/cups/model
%{_datadir}/cups/model/pxlcolor.ppd
%{_datadir}/cups/model/pxlmono.ppd
%doc %{_mandir}/man1/dvipdf.1.gz
%doc %{_mandir}/man1/eps2eps.1.gz
%doc %{_mandir}/man1/font2c.1.gz
@ -444,20 +460,20 @@ exit 0
%doc %{_mandir}/de/man1/wftopfa.1.gz
%doc %{_defaultdocdir}/ghostscript
%dir %{_datadir}/ghostscript
%dir %{_datadir}/ghostscript/%{version}
%doc %{_datadir}/ghostscript/%{version}/doc/
%{_datadir}/ghostscript/%{version}/examples/
%{_datadir}/ghostscript/%{version}/iccprofiles/
%{_datadir}/ghostscript/%{version}/lib/
%{_datadir}/ghostscript/%{version}/Resource/
%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
%exclude %{_libdir}/ghostscript/%{version}/X11.so
%exclude %{_libdir}/ghostscript/%{built_version}/X11.so
%files x11
%defattr(-,root,root)
%{_libdir}/ghostscript/%{version}/X11.so
%{_libdir}/ghostscript/%{built_version}/X11.so
%files devel
%defattr(-,root,root)

48
ppc64le-support.patch Normal file
View File

@ -0,0 +1,48 @@
Index: ghostscript-9.10/lcms/include/lcms.h
===================================================================
--- ghostscript-9.10.orig/lcms/include/lcms.h
+++ ghostscript-9.10/lcms/include/lcms.h
@@ -140,11 +140,15 @@ typedef pthread_rwlock_t LCMS_RW
#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
Index: ghostscript-9.10/lcms2/include/lcms2.h
===================================================================
--- ghostscript-9.10.orig/lcms2/include/lcms2.h
+++ ghostscript-9.10/lcms2/include/lcms2.h
@@ -178,17 +178,23 @@ typedef int cmsBool;
#endif
#if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc)
+# ifndef __LITTLE_ENDIAN__
# define CMS_USE_BIG_ENDIAN 1
+# endif
#endif
#if defined(__ppc__) || defined(__s390__) || defined(__s390x__)
+# ifndef __LITTLE_ENDIAN__
# define CMS_USE_BIG_ENDIAN 1
+# endif
#endif
#ifdef TARGET_CPU_PPC
# if TARGET_CPU_PPC
+# ifndef __LITTLE_ENDIAN__
# define CMS_USE_BIG_ENDIAN 1
# endif
+# endif
#endif
#ifdef macintosh