Subject: pkg/18243: BUILDLINK_PREFIX.guppi needs to be changed to X11PREFIX in buildlink.mk file
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jdf@rse.com>
List: netbsd-bugs
Date: 09/09/2002 15:02:59
>Number:         18243
>Category:       pkg
>Synopsis:       BUILDLINK_PREFIX.guppi needs to be changed to X11PREFIX in buildlink.mk file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 09 15:04:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     John Fisher
>Release:        1.6_RC1
>Organization:
ML Riecher Systems Engineering
>Environment:
NetBSD mjdf.rse.com 1.6_RC1 NetBSD 1.6_RC1 (GENERIC) #0: Mon Aug 19 21:51:11 EDT 2002     jdf@mjdf.rse.com:/usr/local/src/NetBSD/NetBSD-1.6_BETA5/NetBSD-release-1-6-Aug-17-2002/src/sys/arch/i386/compile/GENERIC i386
>Description:
I downloaded the pkgsrc's on Sep-9-2002 08:38 EST and started compiling gnucash.  Every dependency compiled ok.  Then when gnucash (version 1.0.9) was tring to configure, it stopped with these errors (cut out the most imortant part):

checking for main in -loaf... yes
checking for gnome-config... (cached) /usr/local/src/pkgsrcstuff/pkgsrc/finance/gnucash/work/.buildlink/bin/gnome-config
checking for libguppi - version >= 0.35.1... no
*** Could not run libguppi test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means libguppi was incorrectly installed
*** or that you have moved libguppi since it was installed. In the latter case, you
*** may want to edit the gnome-config script: /usr/local/src/pkgsrcstuff/pkgsrc/finance/gnucash/work/.buildlink/bin/gnome-conf
ig
configure: error: libguppi not found
*** Error code 1

Stop.
make: stopped in /usr/local/src/pkgsrcstuff/pkgsrc/finance/gnucash
*** Error code 1

Stop.
make: stopped in /usr/local/src/pkgsrcstuff/pkgsrc/finance/gnucash

It seems gnucash cannot find libguppi.  And it is looking for it in LOCALBASE not in X11PREFIX where libguppi was installed.

>How-To-Repeat:
Compile gnucash after math/guppi has been installed, and gnucash will exit with an error during the configure stage every time.

>Fix:
Since gnucash cannot find libguppi, during its configure stage, in LOCALBASE and needs to find it X11PREFIX, I made this change to buildlink.mk file in math/guppi.  Here is the diff of the change I made using diff -u buildlink.mk.orig buildlink.mk:

--- buildlink.mk.orig   Mon Aug 26 15:21:19 2002
+++ buildlink.mk        Mon Sep  9 16:06:25 2002
@@ -21,7 +21,7 @@
 DEPENDS+=      ${BUILDLINK_DEPENDS.guppi}:../../math/guppi
 
 EVAL_PREFIX+=                  BUILDLINK_PREFIX.guppi=guppi
-BUILDLINK_PREFIX.guppi=        ${LOCALBASE}
+BUILDLINK_PREFIX.guppi=        ${X11PREFIX}
 BUILDLINK_FILES.guppi+=        include/gnome-1.0/libguppi/*
 BUILDLINK_FILES.guppi+=        include/gnome-1.0/libguppitank/*
 BUILDLINK_FILES.guppi+=        lib/libguppi*

>Release-Note:
>Audit-Trail:
>Unformatted: