Subject: pkg/19494: portable pkgtools/pkg_install won't build with db support
To: None <gnats-bugs@gnats.netbsd.org>
From: None <fcusack@fcusack.com>
List: netbsd-bugs
Date: 12/22/2002 04:49:10
>Number:         19494
>Category:       pkg
>Synopsis:       portable pkgtools/pkg_install won't build with db support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 22 04:50:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Frank Cusack
>Release:        NetBSD 1.6
>Organization:
>Environment:
System: NetBSD moltar.savecore.net 1.6 NetBSD 1.6 (moltar) #16: Sun Nov 17 22:42:13 PST 2002 root@moltar.savecore.net:/usr/src/sys/arch/sparc64/compile/moltar sparc64
Architecture: sparc64
Machine: sparc64
>Description:
	When building the portable version of pkg_install, with db support,
	the library order is incorrect; it's -ldb1 -linstall.  pkgdb.o
	(in libinstall.a) can't find dbopen() with that link order.
	Fix is simple: use -linstall -ldb1 instead.
>How-To-Repeat:
	Try to build pkg_install with libdb1.a present.
>Fix:
--- add/Makefile.in.orig	Sun Dec 22 04:39:52 2002
+++ add/Makefile.in	Sun Dec 22 04:39:58 2002
@@ -9,7 +9,7 @@
 
 CC=		@CC@
 CCLD=		$(CC)
-LIBS=		@LIBS@ -linstall
+LIBS=		-linstall @LIBS@
 CPPFLAGS=	@CPPFLAGS@
 DEFS=		@DEFS@ -I. -I@srcdir@ -I../lib
 CFLAGS=		@CFLAGS@
--- admin/Makefile.in.orig	Sun Dec 22 04:41:00 2002
+++ admin/Makefile.in	Sun Dec 22 04:40:40 2002
@@ -8,7 +8,7 @@
 
 CC=		@CC@
 CCLD=		$(CC)
-LIBS=		@LIBS@ -linstall
+LIBS=		-linstall @LIBS@
 CPPFLAGS=	@CPPFLAGS@
 DEFS=		@DEFS@ -I. -I@srcdir@ -I../lib
 CFLAGS=		@CFLAGS@
--- create/Makefile.in.orig	Sun Dec 22 04:41:09 2002
+++ create/Makefile.in	Sun Dec 22 04:41:25 2002
@@ -8,7 +8,7 @@
 
 CC=		@CC@
 CCLD=		$(CC)
-LIBS=		@LIBS@ -linstall
+LIBS=		-linstall @LIBS@
 CPPFLAGS=	@CPPFLAGS@
 DEFS=		@DEFS@ -I. -I@srcdir@ -I../lib
 CFLAGS=		@CFLAGS@
--- delete/Makefile.in.orig	Sun Dec 22 04:41:38 2002
+++ delete/Makefile.in	Sun Dec 22 04:41:51 2002
@@ -9,7 +9,7 @@
 
 CC=		@CC@
 CCLD=		$(CC)
-LIBS=		@LIBS@ -linstall
+LIBS=		-linstall @LIBS@
 CPPFLAGS=	@CPPFLAGS@
 DEFS=		@DEFS@ -I. -I@srcdir@ -I../lib
 CFLAGS=		@CFLAGS@
--- info/Makefile.in.orig	Sun Dec 22 04:42:05 2002
+++ info/Makefile.in	Sun Dec 22 04:42:18 2002
@@ -8,7 +8,7 @@
 
 CC=		@CC@
 CCLD=		$(CC)
-LIBS=		@LIBS@ -linstall
+LIBS=		-linstall @LIBS@
 CPPFLAGS=	@CPPFLAGS@
 DEFS=		@DEFS@ -I. -I@srcdir@ -I../lib
 CFLAGS=		@CFLAGS@
>Release-Note:
>Audit-Trail:
>Unformatted: