From jjreynold@reynoldsnet.org  Mon Feb 11 08:20:58 2002
Return-Path: <jjreynold@reynoldsnet.org>
Received: from reynoldsnet.org (ip68-2-87-144.ph.ph.cox.net [68.2.87.144])
	by hub.freebsd.org (Postfix) with ESMTP id 6DFB237B402
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2002 08:20:57 -0800 (PST)
Received: (from jjreynold@localhost)
	by reynoldsnet.org (8.11.6/8.11.6) id g1BGKpI50961;
	Mon, 11 Feb 2002 09:20:51 -0700 (MST)
	(envelope-from jjreynold)
Message-Id: <200202111620.g1BGKpI50961@reynoldsnet.org>
Date: Mon, 11 Feb 2002 09:20:51 -0700 (MST)
From: John Reynolds <johnjen@reynoldsnet.org>
Reply-To: John Reynolds <johnjen@reynoldsnet.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] ghostscript-gnu fails to compile if gimp-print libs are installed
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 08:30:00 PST 2002
>Closed-Date:    Sat Apr 13 08:26:12 PDT 2002
>Last-Modified:  Sat Apr 13 08:26:12 PDT 2002
>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:

From: John Reynolds <johnjen@reynoldsnet.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/34835: [PATCH] ghostscript-gnu fails to compile if gimp-print libs are installed
Date: Sat, 23 Feb 2002 01:22:24 -0700

 Hello, after some consideration, I have revamped the patch that fixes the above
 problem.
 
 The following patch supercedes the original patch and creates another "FreeBSD
 patch" to be applied to their tree called files/patch-src:unixlink.mak.
 
 Please look this over and commit if possible!
 
 diff -urN ghostscript-gnu.orig/files/patch-src:unixlink.mak ghostscript-gnu/files/patch-src:unixlink.mak
 --- ghostscript-gnu.orig/files/patch-src:unixlink.mak	Wed Dec 31 17:00:00 1969
 +++ ghostscript-gnu/files/patch-src:unixlink.mak	Sat Feb 23 01:09:38 2002
 @@ -0,0 +1,11 @@
 +--- src/unixlink.mak.orig	Sat Feb 23 00:58:22 2002
 ++++ src/unixlink.mak	Sat Feb 23 00:58:02 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)
 
 
 -- 
 John & Jennifer Reynolds  johnjen@reynoldsnet.org  http://www.reynoldsnet.org/
 Senior CAD Engineer, WCCG, Intel Corporation       jreynold@sedona.ch.intel.com
 Running FreeBSD since 2.1.5-RELEASE.               FreeBSD: The Power to Serve!
 "Unix is user friendly, it's just particular about the friends it chooses."
State-Changed-From-To: open->closed 
State-Changed-By: znerd 
State-Changed-When: Sat Apr 13 08:25:28 PDT 2002 
State-Changed-Why:  
Requested by the originator. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34835 
>Unformatted:
