pkgsrc-Bugs archive

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

pkg/39775: trying to get print/ghostscript to work under Solaris



>Number:         39775
>Category:       pkg
>Synopsis:       trying to get print/ghostscript to work under Solaris
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 21 11:05:00 +0000 2008
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
SunOS rayadm3 5.10 Generic_120012-14 i86pc i386 i86pc

>Description:
The current print/ghostscript fails to compile under Solaris. These changes are 
necessary to produce a binary:

--- ghostscript/Makefile        Fri Sep  5 17:50:03 2008
+++ ghostscript.patched//Makefile       Fri Oct 17 09:33:03 2008
@@ -50,7 +50,7 @@
 CONFIGURE_ENV+=                ac_cv_func_fopen64=no
 .endif
 
-.if ${OPSYS} == "NetBSD"
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
 CFLAGS+=               -fPIC
 .endif
 

And someone (sed? the shell?) does not like this in configure:

                drivers="`echo $drivers |sed -e \"s/$THIS,//\"`"

(line 10682 in ghostscript-8.63). When changed to

                drivers="`echo $drivers |sed -e "s/$THIS,//"`"

(i.e. dropping the backslashes), the code works.


Unfortunately, the binary that is now generated, bails out with

$ gs
GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Unrecoverable error: undefined in s
Unrecoverable error: undefined in .uninstallpagedevice

The reason for this is unclear to me. A ghostscript built outside pkgsrc, but 
using tools and libraries from there, works just fine. This might indicate a 
cause in the pkgsrc build framework. The problem was already present in 
ghostscript 8.62 from e.g. 2008Q2.

A diff between the two build directories revealed no obvious reason for this 
behaviour (to me). I can provide these directories, if someone else wants to 
have a look.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index