From doconnor@gsoft.com.au  Sun Jul 26 21:44:32 1998
Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA07467
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jul 1998 21:44:29 -0700 (PDT)
          (envelope-from doconnor@gsoft.com.au)
Received: (from root@localhost) by cain.gsoft.com.au (8.8.8/8.6.9) id OAA10803; Mon, 27 Jul 1998 14:13:58 +0930 (CST)
Message-Id: <199807270443.OAA10803@cain.gsoft.com.au>
Date: Mon, 27 Jul 1998 14:13:58 +0930 (CST)
From: "Daniel O'Connor" <doconnor@gsoft.com.au>
Reply-To: doconnor@gsoft.com.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: graphics/fnlib doesn't build due to bad include paths
X-Send-Pr-Version: 3.2

>Number:         7406
>Category:       ports
>Synopsis:       graphics/fnlib doesn't build due to bad include paths
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    vanilla
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 26 21:50:00 PDT 1998
>Closed-Date:    Wed Jul 29 23:48:08 PDT 1998
>Last-Modified:  Wed Jul 29 23:53:25 PDT 1998
>Originator:     Daniel O'Connor
>Release:        FreeBSD 2.2.6-BETA i386
>Organization:
>Environment:

2.2.6-STABLE with the ports tree CVSup'd this morning

>Description:

Can't compile because /usr/local/include isn't in the include path, so
the Imlib includes aren't found

>How-To-Repeat:

cd /usr/ports/graphcs/fnlib
make

>Fix:

There is probably a better way than patch the Makefile.in, but adding
things like --include-path for CONFIGURE_ARGS (or whatever its called)
didn't work :( (neither did CONFIGURE_ENV= PREFIX=${PREFIX})

My fix is replace patch/patch-ac with the following
--- Fnlib/Makefile.in.orig	Thu Jul 16 00:00:21 1998
+++ Fnlib/Makefile.in	Mon Jul 27 14:05:12 1998
@@ -98,7 +98,7 @@
 file.c       \
 misc.c
 
-libFnlib_la_LDFLAGS    = -version-info 3:0:3
+libFnlib_la_LDFLAGS    = -version-info 0:3:0
 libFnlib_la_LDDADD     = $(LIBS)
 
 DEFS = 	-DSYSTEM_FNRC=\"@sysconfdir@/fnrc\"
@@ -118,7 +118,7 @@
 X_PRE_LIBS = @X_PRE_LIBS@
 libFnlib_la_LIBADD = 
 libFnlib_la_OBJECTS =  priv.lo file.lo misc.lo
-CFLAGS = @CFLAGS@
+CFLAGS = @CFLAGS@ -I/usr/local/include/
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@

	

>Release-Note:
>Audit-Trail:

From: "David O'Brien" <obrien@NUXI.com>
To: doconnor@gsoft.com.au, FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  Subject: Re: ports/7406: graphics/fnlib doesn't build due to bad include paths
Date: Mon, 27 Jul 1998 00:05:27 -0700

 > Can't compile because /usr/local/include isn't in the include path, so
 > the Imlib includes aren't found
 
 Rather, ${PREFIX} isn't in the include path.
  
 > +CFLAGS = @CFLAGS@ -I/usr/local/include/
   +CFLAGS = @CFLAGS@ -I$(PREFIX)/include/
 
 is a better fix.
 
 -- 
 -- David    (obrien@NUXI.com  -or-  obrien@FreeBSD.org)
Responsible-Changed-From-To: freebsd-ports->vanilla 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Tue Jul 28 10:22:52 PDT 1998 
Responsible-Changed-Why:  
vanilla is the maintainer 
State-Changed-From-To: open->closed 
State-Changed-By: vanilla 
State-Changed-When: Wed Jul 29 23:48:08 PDT 1998 
State-Changed-Why:  

After I check EVERY files of fnlib, 
fnlib have no include any file on /usr/local/include, 
please check it again, 
and remember, 
send the erro log to maintainer before you send-pr, 
thanks. 
>Unformatted:
