NetBSD Problem Report #19494

Received: (qmail 26885 invoked by uid 605); 22 Dec 2002 12:49:12 -0000
Message-Id: <20021222124910.2440D1330B@moltar.savecore.net>
Date: Sun, 22 Dec 2002 04:49:10 -0800 (PST)
From: fcusack@fcusack.com
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: portable pkgtools/pkg_install won't build with db support
X-Send-Pr-Version: 3.95

>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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 22 12:50:00 +0000 2002
>Closed-Date:    Sun Dec 22 13:14:51 +0000 2002
>Last-Modified:  Sun Dec 22 13:14:51 +0000 2002
>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:

From: grant beattie <grant@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pr/19494 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Sun, 22 Dec 2002 15:10:14 +0200 (EET)

 Module Name:	pkgsrc
 Committed By:	grant
 Date:		Sun Dec 22 13:10:14 UTC 2002

 Modified Files:
 	pkgsrc/pkgtools/pkg_install/files/add: Makefile.in
 	pkgsrc/pkgtools/pkg_install/files/admin: Makefile.in
 	pkgsrc/pkgtools/pkg_install/files/create: Makefile.in
 	pkgsrc/pkgtools/pkg_install/files/delete: Makefile.in
 	pkgsrc/pkgtools/pkg_install/files/info: Makefile.in

 Log Message:
 reorder libraries passed to ld(1) so that this works if libdb1 is
 present.

 From Frank Cusack in PR pkg/19494.


 To generate a diff of this commit:
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/pkgtools/pkg_install/files/add/Makefile.in
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/pkgtools/pkg_install/files/admin/Makefile.in
 cvs rdiff -r1.1.1.1 -r1.2 \
     pkgsrc/pkgtools/pkg_install/files/create/Makefile.in
 cvs rdiff -r1.1.1.1 -r1.2 \
     pkgsrc/pkgtools/pkg_install/files/delete/Makefile.in
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/pkgtools/pkg_install/files/info/Makefile.in

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed 
State-Changed-By: grant 
State-Changed-When: Sun Dec 22 05:14:38 PST 2002 
State-Changed-Why:  
I have committed your patch, thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.