pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/39775 (trying to get print/ghostscript to work under Solaris)
The following reply was made to PR pkg/39775; it has been noted by GNATS.
From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern%uni-bielefeld.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/39775 (trying to get print/ghostscript to work under Solaris)
Date: Fri, 31 Oct 2008 11:01:11 +0100
Short update: It seems to be a local problem. I haven't figured out all
the details, but I know this so far:
1. Building ghostscript inside pkgsrc fails. pkgsrc resides on an NFS
filesystem. It seems, gs_init.ps is not found, altough the search path
compiled into gs contains the right directory. truss shows, that this
path is not even tried.
2. Building ghostscript inside a pkgsrc tree that resides on a local
filesystem (/tmp) succeeds!
3. Building the same ghostscript with the same options outside pkgsrc,
and installing to the same NFS filesystem, succeeds.
4. Building ghostscript inside pkgsrc with option
"--disable-compile-inits" succeeds!
I assume there is some interaction between the file library that is
compiled into ghostscript by default, and our NFS. The library appears
in the searchpath as "%rom%lib/". But due to case 3., there must be some
additional ingredient provided by the pkgsrc framework, that I don't see.
Is there a way to provide the additional configure flag in an automated
way? Adding this to mk.conf does not seem to work:
CONFIGURE_ARGS.ghostscript += --disable-compile-inits
I have added an additional option to the package:
--- /tmp/T0Kbaih0 Fri Oct 31 10:55:12 2008
+++ options.mk Fri Oct 31 10:14:52 2008
@@ -1,7 +1,7 @@
# $NetBSD: options.mk,v 1.8 2008/09/03 21:31:12 markd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ghostscript
-PKG_SUPPORTED_OPTIONS= x11 cups fontconfig
+PKG_SUPPORTED_OPTIONS= x11 cups fontconfig disable-compile-inits
PKG_SUGGESTED_OPTIONS= x11 fontconfig
.include "../../mk/bsd.options.mk"
@@ -40,4 +40,8 @@
.include "../../fonts/fontconfig/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-fontconfig
+.endif
+
+.if !empty(PKG_OPTIONS:Mdisable-compile-inits)
+CONFIGURE_ARGS+= --disable-compile-inits
.endif
But as this is for a very special and limited case, even I wouldn't be
too happy to include it in pkgsrc.
--
Jörn Clausen
joern.clausen%uni-bielefeld.de@localhost
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
Home |
Main Index |
Thread Index |
Old Index