Subject: pkg/10340: global doesn't need libdb
To: None <gnats-bugs@gnats.netbsd.org>
From: None <prlw1@cam.ac.uk>
List: netbsd-bugs
Date: 06/11/2000 05:11:19
>Number: 10340
>Category: pkg
>Synopsis: global doesn't need libdb
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 11 05:12:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Patrick Welche
>Release: 11 June 2000
>Organization:
>Environment:
NetBSD-1.4Z/i386
>Description:
I just happened to notice the comment at the end of the INSTALL file:
If your system is *BSD then you have db(3) and regex(3) in libc.
So you need not make libdb/ and libregex/.
>How-To-Repeat:
This isn't a problem as such!
>Fix:
So, as per the INSTALL file patch-ad could be replaced by:
--- Makefile.inc.orig Sun Jun 11 12:38:31 2000
+++ Makefile.inc Sun Jun 11 12:39:22 2000
@@ -2,14 +2,11 @@
GLOBAL_MAKEFILE_INC_BEEN_HERE=yes
BINDIR?= /usr/bin
-LDDESTDIR= -L${.OBJDIR}/../libutil \
- -L${.OBJDIR}/../libdb
-LDADD= -lgloutil -lglodb
-DPADD= ${.OBJDIR}/../libutil/libgloutil.a \
- ${.OBJDIR}/../libdb/libglodb.a
-CFLAGS+= -I${.CURDIR} \
+LDFLAGS+= -L${.OBJDIR}/../libutil
+LDADD= -lgloutil
+DPADD= ${.OBJDIR}/../libutil/libgloutil.a
+CPPFLAGS+= -I${.CURDIR} \
-I${.CURDIR}/../libutil \
- -I${.CURDIR}/../libdb \
-I${.CURDIR}/../machine \
-O
# -Wall -Wwrite-strings -Wmissing-prototypes
and another patch added:
--- Makefile.orig Sun Jun 11 12:39:35 2000
+++ Makefile Sun Jun 11 12:36:48 2000
@@ -1,3 +1,3 @@
-SUBDIR= libdb libutil global gtags gctags btreeop htags
+SUBDIR= libutil global gtags gctags btreeop htags
.include <bsd.subdir.mk>
>Release-Note:
>Audit-Trail:
>Unformatted: