Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 09:20:51 -0700 (MST)
From:      John Reynolds <johnjen@reynoldsnet.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34835: [PATCH] ghostscript-gnu fails to compile if gimp-print libs are installed
Message-ID:  <200202111620.g1BGKpI50961@reynoldsnet.org>

next in thread | raw e-mail | index | archive | help

>Number:         34835
>Category:       ports
>Synopsis:       [PATCH] ghostscript-gnu fails to compile if gimp-print libs are installed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 08:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     John Reynolds
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:

System: FreeBSD dolphin 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Jan 30 07:45:30
MST 2002 root@dolphin:/usr/obj/usr/src/sys/DOLPHIN i386

The above has a freshly CVSup'd ports tree (as of 2/10/2002).

>Description:

If you install "gimp-print" (compiled "raw" as there is no port [yet] for it)
to get support for its print drivers for CUPS it will install libgimpprint.so
and .a files in /usr/local/lib. This interferes with the build process for
ghostscript-gnu because it (gs) puts -L/usr/local/lib on the link command line
before its own obj directory (where a copy of libgimpprint.a is symlinked).

>How-To-Repeat:

Install gimp-print-4.2.0 on a system. Try to recompile ghostscript-gnu from
scratch.

>Fix:

The following patch applied to ghostscript's unixlink.mak file fixes the
problem.

--- unixlink.mak.orig   Sun Feb 10 16:20:29 2002
+++ unixlink.mak        Sun Feb 10 16:22:27 2002
@@ -64,7 +64,7 @@
 # which has limited environment space.
 ldt_tr=$(PSOBJ)ldt.tr
 $(GS_XE): $(ld_tr) $(ECHOGS_XE) $(XE_ALL)
-       $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(LDFLAGS) -o $(GS_XE)
+       $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) -L$(PSOBJ) $(LDFLAGS) -o $(GS_XE)
        $(ECHOGS_XE) -a $(ldt_tr) -n -s $(PSOBJ)gs.$(OBJ) -s
        cat $(ld_tr) >>$(ldt_tr)
        $(ECHOGS_XE) -a $(ldt_tr) -s - $(EXTRALIBS) $(STDLIBS)
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202111620.g1BGKpI50961>