[arch-commits] Commit in ghostscript/repos (12 files)

Andreas Radke andyrtr at archlinux.org
Tue Aug 1 13:28:09 UTC 2017


    Date: Tuesday, August 1, 2017 @ 13:28:08
  Author: andyrtr
Revision: 301460

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  ghostscript/repos/extra-i686/CVE-2017-8291.patch
    (from rev 301459, ghostscript/trunk/CVE-2017-8291.patch)
  ghostscript/repos/extra-i686/PKGBUILD
    (from rev 301459, ghostscript/trunk/PKGBUILD)
  ghostscript/repos/extra-i686/ghostscript-sys-zlib.patch
    (from rev 301459, ghostscript/trunk/ghostscript-sys-zlib.patch)
  ghostscript/repos/extra-x86_64/CVE-2017-8291.patch
    (from rev 301459, ghostscript/trunk/CVE-2017-8291.patch)
  ghostscript/repos/extra-x86_64/PKGBUILD
    (from rev 301459, ghostscript/trunk/PKGBUILD)
  ghostscript/repos/extra-x86_64/ghostscript-sys-zlib.patch
    (from rev 301459, ghostscript/trunk/ghostscript-sys-zlib.patch)
Deleted:
  ghostscript/repos/extra-i686/CVE-2017-8291.patch
  ghostscript/repos/extra-i686/PKGBUILD
  ghostscript/repos/extra-i686/ghostscript-sys-zlib.patch
  ghostscript/repos/extra-x86_64/CVE-2017-8291.patch
  ghostscript/repos/extra-x86_64/PKGBUILD
  ghostscript/repos/extra-x86_64/ghostscript-sys-zlib.patch

-----------------------------------------+
 /CVE-2017-8291.patch                    |  264 ++++++++++++++++++++++++++++++
 /PKGBUILD                               |  162 ++++++++++++++++++
 /ghostscript-sys-zlib.patch             |   50 +++++
 extra-i686/CVE-2017-8291.patch          |  132 ---------------
 extra-i686/PKGBUILD                     |   81 ---------
 extra-i686/ghostscript-sys-zlib.patch   |   25 --
 extra-x86_64/CVE-2017-8291.patch        |  132 ---------------
 extra-x86_64/PKGBUILD                   |   81 ---------
 extra-x86_64/ghostscript-sys-zlib.patch |   25 --
 9 files changed, 476 insertions(+), 476 deletions(-)

Deleted: extra-i686/CVE-2017-8291.patch
===================================================================
--- extra-i686/CVE-2017-8291.patch	2017-08-01 13:27:50 UTC (rev 301459)
+++ extra-i686/CVE-2017-8291.patch	2017-08-01 13:28:08 UTC (rev 301460)
@@ -1,132 +0,0 @@
-From: Chris Liddell <chris.liddell at artifex.com>
-Date: Thu, 27 Apr 2017 12:03:33 +0000 (+0100)
-Subject: Bug 697799: have .eqproc check its parameters
-X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=4f83478c88
-
-Bug 697799: have .eqproc check its parameters
-
-The Ghostscript custom operator .eqproc was not check the number or type of
-the parameters it was given.
----
-
-diff --git a/psi/zmisc3.c b/psi/zmisc3.c
-index 54b3042..37293ff 100644
---- a/psi/zmisc3.c
-+++ b/psi/zmisc3.c
-@@ -56,6 +56,12 @@ zeqproc(i_ctx_t *i_ctx_p)
-     ref2_t stack[MAX_DEPTH + 1];
-     ref2_t *top = stack;
- 
-+    if (ref_stack_count(&o_stack) < 2)
-+        return_error(gs_error_stackunderflow);
-+    if (!r_is_array(op - 1) || !r_is_array(op)) {
-+        return_error(gs_error_typecheck);
-+    }
-+
-     make_array(&stack[0].proc1, 0, 1, op - 1);
-     make_array(&stack[0].proc2, 0, 1, op);
-     for (;;) {
-From: Chris Liddell <chris.liddell at artifex.com>
-Date: Thu, 27 Apr 2017 12:21:31 +0000 (+0100)
-Subject: Bug 697799: have .rsdparams check its parameters
-X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=04b37bbce1
-
-Bug 697799: have .rsdparams check its parameters
-
-The Ghostscript internal operator .rsdparams wasn't checking the number or
-type of the operands it was being passed. Do so.
----
-
-diff --git a/psi/zfrsd.c b/psi/zfrsd.c
-index 191107d..950588d 100644
---- a/psi/zfrsd.c
-+++ b/psi/zfrsd.c
-@@ -49,13 +49,20 @@ zrsdparams(i_ctx_t *i_ctx_p)
-     ref *pFilter;
-     ref *pDecodeParms;
-     int Intent = 0;
--    bool AsyncRead;
-+    bool AsyncRead = false;
-     ref empty_array, filter1_array, parms1_array;
-     uint i;
--    int code;
-+    int code = 0;
-+
-+    if (ref_stack_count(&o_stack) < 1)
-+        return_error(gs_error_stackunderflow);
-+    if (!r_has_type(op, t_dictionary) && !r_has_type(op, t_null)) {
-+        return_error(gs_error_typecheck);
-+    }
- 
-     make_empty_array(&empty_array, a_readonly);
--    if (dict_find_string(op, "Filter", &pFilter) > 0) {
-+    if (r_has_type(op, t_dictionary)
-+        && dict_find_string(op, "Filter", &pFilter) > 0) {
-         if (!r_is_array(pFilter)) {
-             if (!r_has_type(pFilter, t_name))
-                 return_error(gs_error_typecheck);
-@@ -94,12 +101,13 @@ zrsdparams(i_ctx_t *i_ctx_p)
-                 return_error(gs_error_typecheck);
-         }
-     }
--    code = dict_int_param(op, "Intent", 0, 3, 0, &Intent);
-+    if (r_has_type(op, t_dictionary))
-+        code = dict_int_param(op, "Intent", 0, 3, 0, &Intent);
-     if (code < 0 && code != gs_error_rangecheck) /* out-of-range int is ok, use 0 */
-         return code;
--    if ((code = dict_bool_param(op, "AsyncRead", false, &AsyncRead)) < 0
--        )
--        return code;
-+    if (r_has_type(op, t_dictionary))
-+        if ((code = dict_bool_param(op, "AsyncRead", false, &AsyncRead)) < 0)
-+            return code;
-     push(1);
-     op[-1] = *pFilter;
-     if (pDecodeParms)
-
-From: Chris Liddell <chris.liddell at artifex.com>
-Date: Wed, 3 May 2017 11:05:45 +0000 (+0100)
-Subject: Bug 697846: revision to commit 4f83478c88 (.eqproc)
-X-Git-Url: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=57f20719
-
-Bug 697846: revision to commit 4f83478c88 (.eqproc)
-
-When using the "DELAYBIND" feature, it turns out that .eqproc can be called with
-parameters that are not both procedures. In this case, it turns out, the
-expectation is for the operator to return 'false', rather than throw an error.
----
-
-diff --git a/psi/zmisc3.c b/psi/zmisc3.c
-index 37293ff..3f01d39 100644
---- a/psi/zmisc3.c
-+++ b/psi/zmisc3.c
-@@ -38,6 +38,15 @@ zcliprestore(i_ctx_t *i_ctx_p)
-     return gs_cliprestore(igs);
- }
- 
-+static inline bool
-+eqproc_check_type(ref *r)
-+{
-+    return r_has_type(r, t_array)
-+           || r_has_type(r, t_mixedarray)
-+           || r_has_type(r, t_shortarray)
-+           || r_has_type(r, t_oparray);
-+}
-+
- /* <proc1> <proc2> .eqproc <bool> */
- /*
-  * Test whether two procedures are equal to depth 10.
-@@ -58,8 +67,10 @@ zeqproc(i_ctx_t *i_ctx_p)
- 
-     if (ref_stack_count(&o_stack) < 2)
-         return_error(gs_error_stackunderflow);
--    if (!r_is_array(op - 1) || !r_is_array(op)) {
--        return_error(gs_error_typecheck);
-+    if (!eqproc_check_type(op -1) || !eqproc_check_type(op)) {
-+        make_false(op - 1);
-+        pop(1);
-+        return 0;
-     }
- 
-     make_array(&stack[0].proc1, 0, 1, op - 1);
-

Copied: ghostscript/repos/extra-i686/CVE-2017-8291.patch (from rev 301459, ghostscript/trunk/CVE-2017-8291.patch)
===================================================================
--- extra-i686/CVE-2017-8291.patch	                        (rev 0)
+++ extra-i686/CVE-2017-8291.patch	2017-08-01 13:28:08 UTC (rev 301460)
@@ -0,0 +1,132 @@
+From: Chris Liddell <chris.liddell at artifex.com>
+Date: Thu, 27 Apr 2017 12:03:33 +0000 (+0100)
+Subject: Bug 697799: have .eqproc check its parameters
+X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=4f83478c88
+
+Bug 697799: have .eqproc check its parameters
+
+The Ghostscript custom operator .eqproc was not check the number or type of
+the parameters it was given.
+---
+
+diff --git a/psi/zmisc3.c b/psi/zmisc3.c
+index 54b3042..37293ff 100644
+--- a/psi/zmisc3.c
++++ b/psi/zmisc3.c
+@@ -56,6 +56,12 @@ zeqproc(i_ctx_t *i_ctx_p)
+     ref2_t stack[MAX_DEPTH + 1];
+     ref2_t *top = stack;
+ 
++    if (ref_stack_count(&o_stack) < 2)
++        return_error(gs_error_stackunderflow);
++    if (!r_is_array(op - 1) || !r_is_array(op)) {
++        return_error(gs_error_typecheck);
++    }
++
+     make_array(&stack[0].proc1, 0, 1, op - 1);
+     make_array(&stack[0].proc2, 0, 1, op);
+     for (;;) {
+From: Chris Liddell <chris.liddell at artifex.com>
+Date: Thu, 27 Apr 2017 12:21:31 +0000 (+0100)
+Subject: Bug 697799: have .rsdparams check its parameters
+X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=04b37bbce1
+
+Bug 697799: have .rsdparams check its parameters
+
+The Ghostscript internal operator .rsdparams wasn't checking the number or
+type of the operands it was being passed. Do so.
+---
+
+diff --git a/psi/zfrsd.c b/psi/zfrsd.c
+index 191107d..950588d 100644
+--- a/psi/zfrsd.c
++++ b/psi/zfrsd.c
+@@ -49,13 +49,20 @@ zrsdparams(i_ctx_t *i_ctx_p)
+     ref *pFilter;
+     ref *pDecodeParms;
+     int Intent = 0;
+-    bool AsyncRead;
++    bool AsyncRead = false;
+     ref empty_array, filter1_array, parms1_array;
+     uint i;
+-    int code;
++    int code = 0;
++
++    if (ref_stack_count(&o_stack) < 1)
++        return_error(gs_error_stackunderflow);
++    if (!r_has_type(op, t_dictionary) && !r_has_type(op, t_null)) {
++        return_error(gs_error_typecheck);
++    }
+ 
+     make_empty_array(&empty_array, a_readonly);
+-    if (dict_find_string(op, "Filter", &pFilter) > 0) {
++    if (r_has_type(op, t_dictionary)
++        && dict_find_string(op, "Filter", &pFilter) > 0) {
+         if (!r_is_array(pFilter)) {
+             if (!r_has_type(pFilter, t_name))
+                 return_error(gs_error_typecheck);
+@@ -94,12 +101,13 @@ zrsdparams(i_ctx_t *i_ctx_p)
+                 return_error(gs_error_typecheck);
+         }
+     }
+-    code = dict_int_param(op, "Intent", 0, 3, 0, &Intent);
++    if (r_has_type(op, t_dictionary))
++        code = dict_int_param(op, "Intent", 0, 3, 0, &Intent);
+     if (code < 0 && code != gs_error_rangecheck) /* out-of-range int is ok, use 0 */
+         return code;
+-    if ((code = dict_bool_param(op, "AsyncRead", false, &AsyncRead)) < 0
+-        )
+-        return code;
++    if (r_has_type(op, t_dictionary))
++        if ((code = dict_bool_param(op, "AsyncRead", false, &AsyncRead)) < 0)
++            return code;
+     push(1);
+     op[-1] = *pFilter;
+     if (pDecodeParms)
+
+From: Chris Liddell <chris.liddell at artifex.com>
+Date: Wed, 3 May 2017 11:05:45 +0000 (+0100)
+Subject: Bug 697846: revision to commit 4f83478c88 (.eqproc)
+X-Git-Url: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=57f20719
+
+Bug 697846: revision to commit 4f83478c88 (.eqproc)
+
+When using the "DELAYBIND" feature, it turns out that .eqproc can be called with
+parameters that are not both procedures. In this case, it turns out, the
+expectation is for the operator to return 'false', rather than throw an error.
+---
+
+diff --git a/psi/zmisc3.c b/psi/zmisc3.c
+index 37293ff..3f01d39 100644
+--- a/psi/zmisc3.c
++++ b/psi/zmisc3.c
+@@ -38,6 +38,15 @@ zcliprestore(i_ctx_t *i_ctx_p)
+     return gs_cliprestore(igs);
+ }
+ 
++static inline bool
++eqproc_check_type(ref *r)
++{
++    return r_has_type(r, t_array)
++           || r_has_type(r, t_mixedarray)
++           || r_has_type(r, t_shortarray)
++           || r_has_type(r, t_oparray);
++}
++
+ /* <proc1> <proc2> .eqproc <bool> */
+ /*
+  * Test whether two procedures are equal to depth 10.
+@@ -58,8 +67,10 @@ zeqproc(i_ctx_t *i_ctx_p)
+ 
+     if (ref_stack_count(&o_stack) < 2)
+         return_error(gs_error_stackunderflow);
+-    if (!r_is_array(op - 1) || !r_is_array(op)) {
+-        return_error(gs_error_typecheck);
++    if (!eqproc_check_type(op -1) || !eqproc_check_type(op)) {
++        make_false(op - 1);
++        pop(1);
++        return 0;
+     }
+ 
+     make_array(&stack[0].proc1, 0, 1, op - 1);
+

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2017-08-01 13:27:50 UTC (rev 301459)
+++ extra-i686/PKGBUILD	2017-08-01 13:28:08 UTC (rev 301460)
@@ -1,81 +0,0 @@
-# $Id$
-# Maintainer: AndyRTR <andyrtr at archlinux.org>
-
-pkgname=ghostscript
-pkgver=9.21
-pkgrel=2
-pkgdesc="An interpreter for the PostScript language"
-arch=('i686' 'x86_64')
-license=('AGPL' 'custom')
-depends=('libxt' 'libcups' 'fontconfig' 'zlib' 'libpng' 'libjpeg'
-          'jbig2dec' 'libtiff' 'lcms2' 'dbus' 'libpaper' 'ijs')
-makedepends=('gtk3' 'gnutls' 'hardening-wrapper')
-optdepends=('texlive-core:      needed for dvipdf'
-            'gtk3:              needed for gsx')
-url="http://www.ghostscript.com/"
-source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${pkgver/./}/ghostscript-${pkgver}.tar.xz
-        ghostscript-sys-zlib.patch
-        CVE-2017-8291.patch)
-options=('!makeflags')
-# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
-sha256sums=('2be1d014888a34187ad4bbec19ab5692cc943bd1cb14886065aeb43a3393d053'
-            'c08c7e1354aaa243e753517c61ff86a799a49e0177c7bf6fe0029abc693386f6'
-            '9cf9b04c274eba318907807b24d813fdfd5e7e2f88352a4b88dfc728a5b1e6c3')
-
-prepare() {
-  cd ghostscript-${pkgver}
-  # fix build with system zlib
-  patch -Np1 -i ${srcdir}/ghostscript-sys-zlib.patch
-  # CVE-2017-8291; https://bugs.ghostscript.com/show_bug.cgi?id=697808
-  patch -Np1 -i ${srcdir}/CVE-2017-8291.patch
-}
-
-build() {
-  cd ghostscript-${pkgver}
-  
-  # force it to use system-libs
-  # keep heavily patched included openjpeg, leads to segfault with system openjpeg
-  # https://bugs.archlinux.org/task/38226
-  rm -rfv cups/libs freetype ijs jbig2dec jpeg lcms2 libpng tiff zlib
-
-  autoconf --force
-
-  ./configure --prefix=/usr \
-	--enable-dynamic \
-	--with-ijs \
-	--with-jbig2dec \
-	--without-omni \
-	--with-x \
-	--with-drivers=ALL\
-	--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
-	--enable-fontconfig \
-	--enable-freetype \
-	--enable-openjpeg \
-	--without-luratech \
-	--with-system-libtiff \
-	--with-libpaper \
-	--disable-compile-inits #--help # needed for linking with system-zlib
-  make so
-  make
-}
-
-package() {
-  cd ghostscript-${pkgver}
-  make DESTDIR="${pkgdir}" \
-	cups_serverroot="${pkgdir}"/etc/cups \
-	cups_serverbin="${pkgdir}"/usr/lib/cups install install-so
-
-  # drop full libs linked gs, prefer gsc dynamically linked against libgs; FS#50422
-  ln -sf /usr/bin/gsc "${pkgdir}"/usr/bin/gs
-
-  # install missing doc files # http://bugs.archlinux.org/task/18023
-  install -m 644 "${srcdir}"/ghostscript-${pkgver}/doc/{VectorDevices.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} "${pkgdir}"/usr/share/ghostscript/$pkgver/doc/
-  
-  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-
-  # remove unwanted localized man-pages
-  rm -rf "$pkgdir"/usr/share/man/[^man1]*
-
-  # remove filters that are now maintained in cups-filters as upstream home
-  rm -rf "$pkgdir"/usr/lib/cups/filter/{gstopxl,gstoraster}
-}

Copied: ghostscript/repos/extra-i686/PKGBUILD (from rev 301459, ghostscript/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2017-08-01 13:28:08 UTC (rev 301460)
@@ -0,0 +1,81 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+pkgname=ghostscript
+pkgver=9.21
+pkgrel=3
+pkgdesc="An interpreter for the PostScript language"
+arch=('i686' 'x86_64')
+license=('AGPL' 'custom')
+depends=('libxt' 'libcups' 'fontconfig' 'zlib' 'libpng' 'libjpeg'
+          'jbig2dec' 'libtiff' 'lcms2' 'dbus' 'libpaper' 'ijs')
+makedepends=('gtk3' 'gnutls')
+optdepends=('texlive-core:      needed for dvipdf'
+            'gtk3:              needed for gsx')
+url="http://www.ghostscript.com/"
+source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${pkgver/./}/ghostscript-${pkgver}.tar.xz
+        ghostscript-sys-zlib.patch
+        CVE-2017-8291.patch)
+options=('!makeflags')
+# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
+sha256sums=('2be1d014888a34187ad4bbec19ab5692cc943bd1cb14886065aeb43a3393d053'
+            'c08c7e1354aaa243e753517c61ff86a799a49e0177c7bf6fe0029abc693386f6'
+            '9cf9b04c274eba318907807b24d813fdfd5e7e2f88352a4b88dfc728a5b1e6c3')
+
+prepare() {
+  cd ghostscript-${pkgver}
+  # fix build with system zlib
+  patch -Np1 -i ${srcdir}/ghostscript-sys-zlib.patch
+  # CVE-2017-8291; https://bugs.ghostscript.com/show_bug.cgi?id=697808
+  patch -Np1 -i ${srcdir}/CVE-2017-8291.patch
+}
+
+build() {
+  cd ghostscript-${pkgver}
+  
+  # force it to use system-libs
+  # keep heavily patched included openjpeg, leads to segfault with system openjpeg
+  # https://bugs.archlinux.org/task/38226
+  rm -rfv cups/libs freetype ijs jbig2dec jpeg lcms2 libpng tiff zlib
+
+  autoconf --force
+
+  ./configure --prefix=/usr \
+	--enable-dynamic \
+	--with-ijs \
+	--with-jbig2dec \
+	--without-omni \
+	--with-x \
+	--with-drivers=ALL\
+	--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
+	--enable-fontconfig \
+	--enable-freetype \
+	--enable-openjpeg \
+	--without-luratech \
+	--with-system-libtiff \
+	--with-libpaper \
+	--disable-compile-inits #--help # needed for linking with system-zlib
+  make so
+  make
+}
+
+package() {
+  cd ghostscript-${pkgver}
+  make DESTDIR="${pkgdir}" \
+	cups_serverroot="${pkgdir}"/etc/cups \
+	cups_serverbin="${pkgdir}"/usr/lib/cups install install-so
+
+  # drop full libs linked gs, prefer gsc dynamically linked against libgs; FS#50422
+  ln -sf /usr/bin/gsc "${pkgdir}"/usr/bin/gs
+
+  # install missing doc files # http://bugs.archlinux.org/task/18023
+  install -m 644 "${srcdir}"/ghostscript-${pkgver}/doc/{VectorDevices.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} "${pkgdir}"/usr/share/ghostscript/$pkgver/doc/
+  
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+  # remove unwanted localized man-pages
+  rm -rf "$pkgdir"/usr/share/man/[^man1]*
+
+  # remove filters that are now maintained in cups-filters as upstream home
+  rm -rf "$pkgdir"/usr/lib/cups/filter/{gstopxl,gstoraster}
+}

Deleted: extra-i686/ghostscript-sys-zlib.patch
===================================================================
--- extra-i686/ghostscript-sys-zlib.patch	2017-08-01 13:27:50 UTC (rev 301459)
+++ extra-i686/ghostscript-sys-zlib.patch	2017-08-01 13:28:08 UTC (rev 301460)
@@ -1,25 +0,0 @@
-diff -up ghostscript-9.12/configure.ac.sys-zlib ghostscript-9.12/configure.ac
---- ghostscript-9.12/configure.ac.sys-zlib	2014-03-26 11:48:54.983972222 +0000
-+++ ghostscript-9.12/configure.ac	2014-03-26 11:49:36.807230531 +0000
-@@ -854,7 +854,7 @@ AC_MSG_CHECKING([for local zlib source])
- dnl zlib is needed for language level 3, and libpng
- # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
- # this seems a harmless default
--ZLIBDIR=src
-+ZLIBDIR=$includedir
- AUX_SHARED_ZLIB=
- 
- if test -d $srcdir/zlib; then
-diff -up ghostscript-9.12/configure.sys-zlib ghostscript-9.12/configure
---- ghostscript-9.12/configure.sys-zlib	2014-03-26 11:49:45.547284521 +0000
-+++ ghostscript-9.12/configure	2014-03-26 11:49:56.171350127 +0000
-@@ -6254,7 +6254,7 @@ fi
- $as_echo_n "checking for local zlib source... " >&6; }
- # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
- # this seems a harmless default
--ZLIBDIR=src
-+ZLIBDIR=$includedir
- AUX_SHARED_ZLIB=
- 
- if test -d $srcdir/zlib; then
-

Copied: ghostscript/repos/extra-i686/ghostscript-sys-zlib.patch (from rev 301459, ghostscript/trunk/ghostscript-sys-zlib.patch)
===================================================================
--- extra-i686/ghostscript-sys-zlib.patch	                        (rev 0)
+++ extra-i686/ghostscript-sys-zlib.patch	2017-08-01 13:28:08 UTC (rev 301460)
@@ -0,0 +1,25 @@
+diff -up ghostscript-9.12/configure.ac.sys-zlib ghostscript-9.12/configure.ac
+--- ghostscript-9.12/configure.ac.sys-zlib	2014-03-26 11:48:54.983972222 +0000
++++ ghostscript-9.12/configure.ac	2014-03-26 11:49:36.807230531 +0000
+@@ -854,7 +854,7 @@ AC_MSG_CHECKING([for local zlib source])
+ dnl zlib is needed for language level 3, and libpng
+ # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
+ # this seems a harmless default
+-ZLIBDIR=src
++ZLIBDIR=$includedir
+ AUX_SHARED_ZLIB=
+ 
+ if test -d $srcdir/zlib; then
+diff -up ghostscript-9.12/configure.sys-zlib ghostscript-9.12/configure
+--- ghostscript-9.12/configure.sys-zlib	2014-03-26 11:49:45.547284521 +0000
++++ ghostscript-9.12/configure	2014-03-26 11:49:56.171350127 +0000
+@@ -6254,7 +6254,7 @@ fi
+ $as_echo_n "checking for local zlib source... " >&6; }
+ # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
+ # this seems a harmless default
+-ZLIBDIR=src
++ZLIBDIR=$includedir
+ AUX_SHARED_ZLIB=
+ 
+ if test -d $srcdir/zlib; then
+

Deleted: extra-x86_64/CVE-2017-8291.patch
===================================================================
--- extra-x86_64/CVE-2017-8291.patch	2017-08-01 13:27:50 UTC (rev 301459)
+++ extra-x86_64/CVE-2017-8291.patch	2017-08-01 13:28:08 UTC (rev 301460)
@@ -1,132 +0,0 @@
-From: Chris Liddell <chris.liddell at artifex.com>
-Date: Thu, 27 Apr 2017 12:03:33 +0000 (+0100)
-Subject: Bug 697799: have .eqproc check its parameters
-X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=4f83478c88
-
-Bug 697799: have .eqproc check its parameters
-
-The Ghostscript custom operator .eqproc was not check the number or type of
-the parameters it was given.
----
-
-diff --git a/psi/zmisc3.c b/psi/zmisc3.c
-index 54b3042..37293ff 100644
---- a/psi/zmisc3.c
-+++ b/psi/zmisc3.c
-@@ -56,6 +56,12 @@ zeqproc(i_ctx_t *i_ctx_p)
-     ref2_t stack[MAX_DEPTH + 1];
-     ref2_t *top = stack;
- 
-+    if (ref_stack_count(&o_stack) < 2)
-+        return_error(gs_error_stackunderflow);
-+    if (!r_is_array(op - 1) || !r_is_array(op)) {
-+        return_error(gs_error_typecheck);
-+    }
-+
-     make_array(&stack[0].proc1, 0, 1, op - 1);
-     make_array(&stack[0].proc2, 0, 1, op);
-     for (;;) {
-From: Chris Liddell <chris.liddell at artifex.com>
-Date: Thu, 27 Apr 2017 12:21:31 +0000 (+0100)
-Subject: Bug 697799: have .rsdparams check its parameters
-X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=04b37bbce1
-
-Bug 697799: have .rsdparams check its parameters
-
-The Ghostscript internal operator .rsdparams wasn't checking the number or
-type of the operands it was being passed. Do so.
----
-
-diff --git a/psi/zfrsd.c b/psi/zfrsd.c
-index 191107d..950588d 100644
---- a/psi/zfrsd.c
-+++ b/psi/zfrsd.c
-@@ -49,13 +49,20 @@ zrsdparams(i_ctx_t *i_ctx_p)
-     ref *pFilter;
-     ref *pDecodeParms;
-     int Intent = 0;
--    bool AsyncRead;
-+    bool AsyncRead = false;
-     ref empty_array, filter1_array, parms1_array;
-     uint i;
--    int code;
-+    int code = 0;
-+
-+    if (ref_stack_count(&o_stack) < 1)
-+        return_error(gs_error_stackunderflow);
-+    if (!r_has_type(op, t_dictionary) && !r_has_type(op, t_null)) {
-+        return_error(gs_error_typecheck);
-+    }
- 
-     make_empty_array(&empty_array, a_readonly);
--    if (dict_find_string(op, "Filter", &pFilter) > 0) {
-+    if (r_has_type(op, t_dictionary)
-+        && dict_find_string(op, "Filter", &pFilter) > 0) {
-         if (!r_is_array(pFilter)) {
-             if (!r_has_type(pFilter, t_name))
-                 return_error(gs_error_typecheck);
-@@ -94,12 +101,13 @@ zrsdparams(i_ctx_t *i_ctx_p)
-                 return_error(gs_error_typecheck);
-         }
-     }
--    code = dict_int_param(op, "Intent", 0, 3, 0, &Intent);
-+    if (r_has_type(op, t_dictionary))
-+        code = dict_int_param(op, "Intent", 0, 3, 0, &Intent);
-     if (code < 0 && code != gs_error_rangecheck) /* out-of-range int is ok, use 0 */
-         return code;
--    if ((code = dict_bool_param(op, "AsyncRead", false, &AsyncRead)) < 0
--        )
--        return code;
-+    if (r_has_type(op, t_dictionary))
-+        if ((code = dict_bool_param(op, "AsyncRead", false, &AsyncRead)) < 0)
-+            return code;
-     push(1);
-     op[-1] = *pFilter;
-     if (pDecodeParms)
-
-From: Chris Liddell <chris.liddell at artifex.com>
-Date: Wed, 3 May 2017 11:05:45 +0000 (+0100)
-Subject: Bug 697846: revision to commit 4f83478c88 (.eqproc)
-X-Git-Url: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=57f20719
-
-Bug 697846: revision to commit 4f83478c88 (.eqproc)
-
-When using the "DELAYBIND" feature, it turns out that .eqproc can be called with
-parameters that are not both procedures. In this case, it turns out, the
-expectation is for the operator to return 'false', rather than throw an error.
----
-
-diff --git a/psi/zmisc3.c b/psi/zmisc3.c
-index 37293ff..3f01d39 100644
---- a/psi/zmisc3.c
-+++ b/psi/zmisc3.c
-@@ -38,6 +38,15 @@ zcliprestore(i_ctx_t *i_ctx_p)
-     return gs_cliprestore(igs);
- }
- 
-+static inline bool
-+eqproc_check_type(ref *r)
-+{
-+    return r_has_type(r, t_array)
-+           || r_has_type(r, t_mixedarray)
-+           || r_has_type(r, t_shortarray)
-+           || r_has_type(r, t_oparray);
-+}
-+
- /* <proc1> <proc2> .eqproc <bool> */
- /*
-  * Test whether two procedures are equal to depth 10.
-@@ -58,8 +67,10 @@ zeqproc(i_ctx_t *i_ctx_p)
- 
-     if (ref_stack_count(&o_stack) < 2)
-         return_error(gs_error_stackunderflow);
--    if (!r_is_array(op - 1) || !r_is_array(op)) {
--        return_error(gs_error_typecheck);
-+    if (!eqproc_check_type(op -1) || !eqproc_check_type(op)) {
-+        make_false(op - 1);
-+        pop(1);
-+        return 0;
-     }
- 
-     make_array(&stack[0].proc1, 0, 1, op - 1);
-

Copied: ghostscript/repos/extra-x86_64/CVE-2017-8291.patch (from rev 301459, ghostscript/trunk/CVE-2017-8291.patch)
===================================================================
--- extra-x86_64/CVE-2017-8291.patch	                        (rev 0)
+++ extra-x86_64/CVE-2017-8291.patch	2017-08-01 13:28:08 UTC (rev 301460)
@@ -0,0 +1,132 @@
+From: Chris Liddell <chris.liddell at artifex.com>
+Date: Thu, 27 Apr 2017 12:03:33 +0000 (+0100)
+Subject: Bug 697799: have .eqproc check its parameters
+X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=4f83478c88
+
+Bug 697799: have .eqproc check its parameters
+
+The Ghostscript custom operator .eqproc was not check the number or type of
+the parameters it was given.
+---
+
+diff --git a/psi/zmisc3.c b/psi/zmisc3.c
+index 54b3042..37293ff 100644
+--- a/psi/zmisc3.c
++++ b/psi/zmisc3.c
+@@ -56,6 +56,12 @@ zeqproc(i_ctx_t *i_ctx_p)
+     ref2_t stack[MAX_DEPTH + 1];
+     ref2_t *top = stack;
+ 
++    if (ref_stack_count(&o_stack) < 2)
++        return_error(gs_error_stackunderflow);
++    if (!r_is_array(op - 1) || !r_is_array(op)) {
++        return_error(gs_error_typecheck);
++    }
++
+     make_array(&stack[0].proc1, 0, 1, op - 1);
+     make_array(&stack[0].proc2, 0, 1, op);
+     for (;;) {
+From: Chris Liddell <chris.liddell at artifex.com>
+Date: Thu, 27 Apr 2017 12:21:31 +0000 (+0100)
+Subject: Bug 697799: have .rsdparams check its parameters
+X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=04b37bbce1
+
+Bug 697799: have .rsdparams check its parameters
+
+The Ghostscript internal operator .rsdparams wasn't checking the number or
+type of the operands it was being passed. Do so.
+---
+
+diff --git a/psi/zfrsd.c b/psi/zfrsd.c
+index 191107d..950588d 100644
+--- a/psi/zfrsd.c
++++ b/psi/zfrsd.c
+@@ -49,13 +49,20 @@ zrsdparams(i_ctx_t *i_ctx_p)
+     ref *pFilter;
+     ref *pDecodeParms;
+     int Intent = 0;
+-    bool AsyncRead;
++    bool AsyncRead = false;
+     ref empty_array, filter1_array, parms1_array;
+     uint i;
+-    int code;
++    int code = 0;
++
++    if (ref_stack_count(&o_stack) < 1)
++        return_error(gs_error_stackunderflow);
++    if (!r_has_type(op, t_dictionary) && !r_has_type(op, t_null)) {
++        return_error(gs_error_typecheck);
++    }
+ 
+     make_empty_array(&empty_array, a_readonly);
+-    if (dict_find_string(op, "Filter", &pFilter) > 0) {
++    if (r_has_type(op, t_dictionary)
++        && dict_find_string(op, "Filter", &pFilter) > 0) {
+         if (!r_is_array(pFilter)) {
+             if (!r_has_type(pFilter, t_name))
+                 return_error(gs_error_typecheck);
+@@ -94,12 +101,13 @@ zrsdparams(i_ctx_t *i_ctx_p)
+                 return_error(gs_error_typecheck);
+         }
+     }
+-    code = dict_int_param(op, "Intent", 0, 3, 0, &Intent);
++    if (r_has_type(op, t_dictionary))
++        code = dict_int_param(op, "Intent", 0, 3, 0, &Intent);
+     if (code < 0 && code != gs_error_rangecheck) /* out-of-range int is ok, use 0 */
+         return code;
+-    if ((code = dict_bool_param(op, "AsyncRead", false, &AsyncRead)) < 0
+-        )
+-        return code;
++    if (r_has_type(op, t_dictionary))
++        if ((code = dict_bool_param(op, "AsyncRead", false, &AsyncRead)) < 0)
++            return code;
+     push(1);
+     op[-1] = *pFilter;
+     if (pDecodeParms)
+
+From: Chris Liddell <chris.liddell at artifex.com>
+Date: Wed, 3 May 2017 11:05:45 +0000 (+0100)
+Subject: Bug 697846: revision to commit 4f83478c88 (.eqproc)
+X-Git-Url: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=57f20719
+
+Bug 697846: revision to commit 4f83478c88 (.eqproc)
+
+When using the "DELAYBIND" feature, it turns out that .eqproc can be called with
+parameters that are not both procedures. In this case, it turns out, the
+expectation is for the operator to return 'false', rather than throw an error.
+---
+
+diff --git a/psi/zmisc3.c b/psi/zmisc3.c
+index 37293ff..3f01d39 100644
+--- a/psi/zmisc3.c
++++ b/psi/zmisc3.c
+@@ -38,6 +38,15 @@ zcliprestore(i_ctx_t *i_ctx_p)
+     return gs_cliprestore(igs);
+ }
+ 
++static inline bool
++eqproc_check_type(ref *r)
++{
++    return r_has_type(r, t_array)
++           || r_has_type(r, t_mixedarray)
++           || r_has_type(r, t_shortarray)
++           || r_has_type(r, t_oparray);
++}
++
+ /* <proc1> <proc2> .eqproc <bool> */
+ /*
+  * Test whether two procedures are equal to depth 10.
+@@ -58,8 +67,10 @@ zeqproc(i_ctx_t *i_ctx_p)
+ 
+     if (ref_stack_count(&o_stack) < 2)
+         return_error(gs_error_stackunderflow);
+-    if (!r_is_array(op - 1) || !r_is_array(op)) {
+-        return_error(gs_error_typecheck);
++    if (!eqproc_check_type(op -1) || !eqproc_check_type(op)) {
++        make_false(op - 1);
++        pop(1);
++        return 0;
+     }
+ 
+     make_array(&stack[0].proc1, 0, 1, op - 1);
+

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2017-08-01 13:27:50 UTC (rev 301459)
+++ extra-x86_64/PKGBUILD	2017-08-01 13:28:08 UTC (rev 301460)
@@ -1,81 +0,0 @@
-# $Id$
-# Maintainer: AndyRTR <andyrtr at archlinux.org>
-
-pkgname=ghostscript
-pkgver=9.21
-pkgrel=2
-pkgdesc="An interpreter for the PostScript language"
-arch=('i686' 'x86_64')
-license=('AGPL' 'custom')
-depends=('libxt' 'libcups' 'fontconfig' 'zlib' 'libpng' 'libjpeg'
-          'jbig2dec' 'libtiff' 'lcms2' 'dbus' 'libpaper' 'ijs')
-makedepends=('gtk3' 'gnutls' 'hardening-wrapper')
-optdepends=('texlive-core:      needed for dvipdf'
-            'gtk3:              needed for gsx')
-url="http://www.ghostscript.com/"
-source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${pkgver/./}/ghostscript-${pkgver}.tar.xz
-        ghostscript-sys-zlib.patch
-        CVE-2017-8291.patch)
-options=('!makeflags')
-# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
-sha256sums=('2be1d014888a34187ad4bbec19ab5692cc943bd1cb14886065aeb43a3393d053'
-            'c08c7e1354aaa243e753517c61ff86a799a49e0177c7bf6fe0029abc693386f6'
-            '9cf9b04c274eba318907807b24d813fdfd5e7e2f88352a4b88dfc728a5b1e6c3')
-
-prepare() {
-  cd ghostscript-${pkgver}
-  # fix build with system zlib
-  patch -Np1 -i ${srcdir}/ghostscript-sys-zlib.patch
-  # CVE-2017-8291; https://bugs.ghostscript.com/show_bug.cgi?id=697808
-  patch -Np1 -i ${srcdir}/CVE-2017-8291.patch
-}
-
-build() {
-  cd ghostscript-${pkgver}
-  
-  # force it to use system-libs
-  # keep heavily patched included openjpeg, leads to segfault with system openjpeg
-  # https://bugs.archlinux.org/task/38226
-  rm -rfv cups/libs freetype ijs jbig2dec jpeg lcms2 libpng tiff zlib
-
-  autoconf --force
-
-  ./configure --prefix=/usr \
-	--enable-dynamic \
-	--with-ijs \
-	--with-jbig2dec \
-	--without-omni \
-	--with-x \
-	--with-drivers=ALL\
-	--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
-	--enable-fontconfig \
-	--enable-freetype \
-	--enable-openjpeg \
-	--without-luratech \
-	--with-system-libtiff \
-	--with-libpaper \
-	--disable-compile-inits #--help # needed for linking with system-zlib
-  make so
-  make
-}
-
-package() {
-  cd ghostscript-${pkgver}
-  make DESTDIR="${pkgdir}" \
-	cups_serverroot="${pkgdir}"/etc/cups \
-	cups_serverbin="${pkgdir}"/usr/lib/cups install install-so
-
-  # drop full libs linked gs, prefer gsc dynamically linked against libgs; FS#50422
-  ln -sf /usr/bin/gsc "${pkgdir}"/usr/bin/gs
-
-  # install missing doc files # http://bugs.archlinux.org/task/18023
-  install -m 644 "${srcdir}"/ghostscript-${pkgver}/doc/{VectorDevices.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} "${pkgdir}"/usr/share/ghostscript/$pkgver/doc/
-  
-  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-
-  # remove unwanted localized man-pages
-  rm -rf "$pkgdir"/usr/share/man/[^man1]*
-
-  # remove filters that are now maintained in cups-filters as upstream home
-  rm -rf "$pkgdir"/usr/lib/cups/filter/{gstopxl,gstoraster}
-}

Copied: ghostscript/repos/extra-x86_64/PKGBUILD (from rev 301459, ghostscript/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2017-08-01 13:28:08 UTC (rev 301460)
@@ -0,0 +1,81 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+pkgname=ghostscript
+pkgver=9.21
+pkgrel=3
+pkgdesc="An interpreter for the PostScript language"
+arch=('i686' 'x86_64')
+license=('AGPL' 'custom')
+depends=('libxt' 'libcups' 'fontconfig' 'zlib' 'libpng' 'libjpeg'
+          'jbig2dec' 'libtiff' 'lcms2' 'dbus' 'libpaper' 'ijs')
+makedepends=('gtk3' 'gnutls')
+optdepends=('texlive-core:      needed for dvipdf'
+            'gtk3:              needed for gsx')
+url="http://www.ghostscript.com/"
+source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${pkgver/./}/ghostscript-${pkgver}.tar.xz
+        ghostscript-sys-zlib.patch
+        CVE-2017-8291.patch)
+options=('!makeflags')
+# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
+sha256sums=('2be1d014888a34187ad4bbec19ab5692cc943bd1cb14886065aeb43a3393d053'
+            'c08c7e1354aaa243e753517c61ff86a799a49e0177c7bf6fe0029abc693386f6'
+            '9cf9b04c274eba318907807b24d813fdfd5e7e2f88352a4b88dfc728a5b1e6c3')
+
+prepare() {
+  cd ghostscript-${pkgver}
+  # fix build with system zlib
+  patch -Np1 -i ${srcdir}/ghostscript-sys-zlib.patch
+  # CVE-2017-8291; https://bugs.ghostscript.com/show_bug.cgi?id=697808
+  patch -Np1 -i ${srcdir}/CVE-2017-8291.patch
+}
+
+build() {
+  cd ghostscript-${pkgver}
+  
+  # force it to use system-libs
+  # keep heavily patched included openjpeg, leads to segfault with system openjpeg
+  # https://bugs.archlinux.org/task/38226
+  rm -rfv cups/libs freetype ijs jbig2dec jpeg lcms2 libpng tiff zlib
+
+  autoconf --force
+
+  ./configure --prefix=/usr \
+	--enable-dynamic \
+	--with-ijs \
+	--with-jbig2dec \
+	--without-omni \
+	--with-x \
+	--with-drivers=ALL\
+	--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
+	--enable-fontconfig \
+	--enable-freetype \
+	--enable-openjpeg \
+	--without-luratech \
+	--with-system-libtiff \
+	--with-libpaper \
+	--disable-compile-inits #--help # needed for linking with system-zlib
+  make so
+  make
+}
+
+package() {
+  cd ghostscript-${pkgver}
+  make DESTDIR="${pkgdir}" \
+	cups_serverroot="${pkgdir}"/etc/cups \
+	cups_serverbin="${pkgdir}"/usr/lib/cups install install-so
+
+  # drop full libs linked gs, prefer gsc dynamically linked against libgs; FS#50422
+  ln -sf /usr/bin/gsc "${pkgdir}"/usr/bin/gs
+
+  # install missing doc files # http://bugs.archlinux.org/task/18023
+  install -m 644 "${srcdir}"/ghostscript-${pkgver}/doc/{VectorDevices.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} "${pkgdir}"/usr/share/ghostscript/$pkgver/doc/
+  
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+  # remove unwanted localized man-pages
+  rm -rf "$pkgdir"/usr/share/man/[^man1]*
+
+  # remove filters that are now maintained in cups-filters as upstream home
+  rm -rf "$pkgdir"/usr/lib/cups/filter/{gstopxl,gstoraster}
+}

Deleted: extra-x86_64/ghostscript-sys-zlib.patch
===================================================================
--- extra-x86_64/ghostscript-sys-zlib.patch	2017-08-01 13:27:50 UTC (rev 301459)
+++ extra-x86_64/ghostscript-sys-zlib.patch	2017-08-01 13:28:08 UTC (rev 301460)
@@ -1,25 +0,0 @@
-diff -up ghostscript-9.12/configure.ac.sys-zlib ghostscript-9.12/configure.ac
---- ghostscript-9.12/configure.ac.sys-zlib	2014-03-26 11:48:54.983972222 +0000
-+++ ghostscript-9.12/configure.ac	2014-03-26 11:49:36.807230531 +0000
-@@ -854,7 +854,7 @@ AC_MSG_CHECKING([for local zlib source])
- dnl zlib is needed for language level 3, and libpng
- # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
- # this seems a harmless default
--ZLIBDIR=src
-+ZLIBDIR=$includedir
- AUX_SHARED_ZLIB=
- 
- if test -d $srcdir/zlib; then
-diff -up ghostscript-9.12/configure.sys-zlib ghostscript-9.12/configure
---- ghostscript-9.12/configure.sys-zlib	2014-03-26 11:49:45.547284521 +0000
-+++ ghostscript-9.12/configure	2014-03-26 11:49:56.171350127 +0000
-@@ -6254,7 +6254,7 @@ fi
- $as_echo_n "checking for local zlib source... " >&6; }
- # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
- # this seems a harmless default
--ZLIBDIR=src
-+ZLIBDIR=$includedir
- AUX_SHARED_ZLIB=
- 
- if test -d $srcdir/zlib; then
-

Copied: ghostscript/repos/extra-x86_64/ghostscript-sys-zlib.patch (from rev 301459, ghostscript/trunk/ghostscript-sys-zlib.patch)
===================================================================
--- extra-x86_64/ghostscript-sys-zlib.patch	                        (rev 0)
+++ extra-x86_64/ghostscript-sys-zlib.patch	2017-08-01 13:28:08 UTC (rev 301460)
@@ -0,0 +1,25 @@
+diff -up ghostscript-9.12/configure.ac.sys-zlib ghostscript-9.12/configure.ac
+--- ghostscript-9.12/configure.ac.sys-zlib	2014-03-26 11:48:54.983972222 +0000
++++ ghostscript-9.12/configure.ac	2014-03-26 11:49:36.807230531 +0000
+@@ -854,7 +854,7 @@ AC_MSG_CHECKING([for local zlib source])
+ dnl zlib is needed for language level 3, and libpng
+ # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
+ # this seems a harmless default
+-ZLIBDIR=src
++ZLIBDIR=$includedir
+ AUX_SHARED_ZLIB=
+ 
+ if test -d $srcdir/zlib; then
+diff -up ghostscript-9.12/configure.sys-zlib ghostscript-9.12/configure
+--- ghostscript-9.12/configure.sys-zlib	2014-03-26 11:49:45.547284521 +0000
++++ ghostscript-9.12/configure	2014-03-26 11:49:56.171350127 +0000
+@@ -6254,7 +6254,7 @@ fi
+ $as_echo_n "checking for local zlib source... " >&6; }
+ # we must define ZLIBDIR regardless because png.mak does a -I$(ZLIBDIR)
+ # this seems a harmless default
+-ZLIBDIR=src
++ZLIBDIR=$includedir
+ AUX_SHARED_ZLIB=
+ 
+ if test -d $srcdir/zlib; then
+



More information about the arch-commits mailing list