From 4f52f3ca9099e3ecd322cc624da9d26299c0442f Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Fri, 24 Sep 2010 15:43:50 +0000
Subject: [PATCH] a bit better workaround that also shortens the build time.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38630 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/software-profiles/ghostscript.cfg | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/buildout/software-profiles/ghostscript.cfg b/buildout/software-profiles/ghostscript.cfg
index e6e7635982..1c5d78aac3 100644
--- a/buildout/software-profiles/ghostscript.cfg
+++ b/buildout/software-profiles/ghostscript.cfg
@@ -10,11 +10,10 @@ download-only = true
 
 [ghostscript-common]
 pre-configure-hook = ${ghostscript-hooks-download:location}/${ghostscript-hooks-download:filename}:pre_configure_hook
-# XXX: --with-system-libtiff is a workaround for case whenever libjbig-devel
-# is installed which leads to bad linking of ghostscript
-# Proper solution is to fix ghostscript package itself
+# we don't include TIFF output driver because the linking might fail if
+# libjbig-devel is installed, and it is not required for our purpose anyway.
 configure-options =
-  --disable-cups --without-x --with-drivers=FILES --with-system-libtiff
+  --disable-cups --without-x --with-drivers=BMP,PBM,PNG,PS
 
 [ghostscript]
 <= ghostscript-9
-- 
2.30.9