pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44400: (print/ghostscript) The necessity of --disable-compile-inits parameter



>Number:         44400
>Category:       pkg
>Synopsis:       The necessity of --disable-compile-inits argument
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 16 13:35:00 +0000 2011
>Originator:     Makoto Fujiwara
>Release:        NetBSD 5.1
>Organization:
KINU Corporation
>Environment:
        
        
System: NetBSD u4 5.1 NetBSD 5.1 (GENERIC) #0: Sun Nov 7 14:39:56 UTC 2010 
builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5-1-RELEASE/i386/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/i386/compile/GENERIC
 i386
Architecture: i386
Machine: i386
>Description:
In CJK etc environment, the user needs to add some set of fonts
to ghostscript to properly display two bytes character.

Adobe proposed CID Font, (Character IDentifier font) for such 
situation.  The recent practice is to add 'cidfmap' file mapping the
fontset name in PostScript to the OS environment character set,
or aliase settings.

The recent (8.56 or later) version of Ghostscript has the facility to
embed initialization Postscripts loading in its binary (This will be
found as macro COMILE_INIT in Makefile).

  This COMPILE_INIT makes startup faster, but to get the
initialization as described above, we need to disable this
function.  Ref:
   http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl856.htm

The configure parameter --disable-compile-inits is to be added 
optionally in pkgsrc environment.  I have the option for this.
The name is disable-compile-inits.

This option is not included in PKG_SUGGESTED_OPTIONS, so this
patch does not affect any behavior of the existing package
of ghostscript.

To see this configuration is enabled or not, 'gs -h' will give you
the status.

Following is no --disable-compile-inits case. (Existing package): 

| Search path:
+    . : %rom%Resource/Init/ : %rom%lib/ :
|    /usr/pkg/share/ghostscript/8.71/Resource/Init :
|    /usr/pkg/share/ghostscript/8.71/lib :
|    /usr/pkg/share/ghostscript/8.71/Resource/Font :
|    /usr/pkg/share/ghostscript/fonts :
|    /usr/pkg/share/fonts/default/ghostscript :
|    /usr/pkg/share/fonts/default/Type1 :
|    /usr/pkg/share/fonts/default/TrueType : /usr/lib/DPS/outline/base :
|    /usr/openwin/lib/X11/fonts/Type1 : /usr/openwin/lib/X11/fonts/TrueType
+ Initialization files are compiled into the executable.

Two lines marked '+' will disappear if --disable-compile-inits configured.
I have discussed the necessity of this configuration in tech-pkg-ja@
starting of the mail dated: ( in Japanese, sorry).
| Date: Sat, 15 Jan 2011 12:10:20 +0900

>How-To-Repeat:
        cd /usr/pkgsrc/print/ghostscript;
        make package-install
        gs -h
>Fix:
Index: print/ghostscript/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript/Makefile,v
retrieving revision 1.83
diff -u -r1.83 Makefile
--- print/ghostscript/Makefile  13 Jan 2011 13:36:06 -0000      1.83
+++ print/ghostscript/Makefile  16 Jan 2011 13:03:42 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.83 2011/01/13 13:36:06 wiz Exp $
 
 DISTNAME=      ghostscript-8.71
-PKGREVISION=   7
+PKGREVISION=   8
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
 MASTER_SITES+= http://ghostscript.com/releases/
Index: print/ghostscript/options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript/options.mk,v
retrieving revision 1.11
diff -u -r1.11 options.mk
--- print/ghostscript/options.mk        23 Dec 2010 11:44:54 -0000      1.11
+++ print/ghostscript/options.mk        16 Jan 2011 13:03:42 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.11 2010/12/23 11:44:54 dsainty Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.ghostscript
-PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig
+PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig disable-compile-inits
 PKG_SUGGESTED_OPTIONS= x11 fontconfig
 
 .include "../../mk/bsd.options.mk"
@@ -46,3 +46,7 @@
 .else
 CONFIGURE_ARGS+=       --disable-fontconfig
 .endif
+
+.if !empty(PKG_OPTIONS:Mdisable-compile-inits)
+CONFIGURE_ARGS+=        --disable-compile-inits
+.endif

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index