Bug 79817 - finance/gnucash fails to build properly when db4.1 is installed
Summary: finance/gnucash fails to build properly when db4.1 is installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-12 07:01 UTC by Jim Trigg
Modified: 2005-05-12 16:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Trigg 2005-04-12 07:01:01 UTC
There are two errors in the gnucash Makefile which prevent it from building correctly when db41 is installed.  First, the db4.0 dependency is not removed, and second, the db41 dependency has the wrong shared libary name.

Fix: 

Remove the db4.0 line from the standard LIBDEPENDS macro definition; change db4.0 to db41.1 in the conditional section when a db41 header file exists.  Unified diff to follow.
How-To-Repeat: Install databases/db41 and then attempt to make finance/gnucash.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-04-12 21:47:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer(s).
Comment 2 Jim Trigg 2005-04-14 15:46:47 UTC
Fix: Apply the following patch to finance/gnucash/Makefile.

--- Makefile.orig       2005-04-14 09:59:44.000000000 -0400
+++ Makefile    2005-04-14 10:00:18.000000000 -0400
@@ -21,7 +21,6 @@
                guppi.16:${PORTSDIR}/math/guppi \
                popt.0:${PORTSDIR}/devel/popt \
                ofx.1:${PORTSDIR}/finance/libofx \
-               db4.0:${PORTSDIR}/databases/db4 \
                gw-standard.0:${PORTSDIR}/devel/g-wrap
 RUN_DEPENDS=  
${LOCALBASE}/share/guile/slibcat:${PORTSDIR}/lang/slib-guile \
                ${SITE_PERL}/HTML/Base.pm:${PORTSDIR}/www/p5-HTML \
@@ -51,7 +50,7 @@
 .include <bsd.port.pre.mk>

 .if exists(${LOCALBASE}/include/db41/db_185.h)
-LIB_DEPENDS+=  db4.0:${PORTSDIR}/databases/db41
+LIB_DEPENDS+=  db41.1:${PORTSDIR}/databases/db41
 post-patch:
        @${REINPLACE_CMD} -e "s|db4/db_185.h|db41/db_185.h|g" \
                ${WRKSRC}/configure
Comment 3 Joe Marcus Clarke freebsd_committer freebsd_triage 2005-05-12 16:51:43 UTC
State Changed
From-To: open->closed

Committed, thanks!