Subject: pkg/8701: misc/rpm pkg docs do not mention --initdb
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hf@melog.de>
List: netbsd-bugs
Date: 10/29/1999 03:36:49
>Number:         8701
>Category:       pkg
>Synopsis:       misc/rpm pkg docs do not mention --initdb
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 29 03:36:00 1999
>Last-Modified:
>Originator:     Hauke Fath
>Organization:
Saphir Software GmbH -- does not speak for me and vice versa.
>Release:        1.4.1
>Environment:
	
System: NetBSD heap 1.4.1 NetBSD 1.4.1 (HEAP) #8: Fri Oct 1 13:51:43 CEST 1999 hf@heap:/home/hf/work/netbsd-release/sys/arch/i386/compile/HEAP i386


>Description:
	Neither the rpm manpage nor any related NetBSD docs mention 
the procedure to set up the rpm database afer installation (option --initdb).
>How-To-Repeat:
Install misc/rpm, try to do something with a rpm package.
Wonder why all your efforts are answered with 

[hf@heap] /<2%lib/rpm # rpm -qa -vv
D: opening database in //var/pkg/lib/rpm/
failed to open //var/pkg/lib/rpm/packages.rpm

Touch a few files in /var/pkg/lib/rpm/, try out "rpm --rebuilddb, 
look around in the sources and waste a few hrs without success.

Finally come across --initdb in README.amiga.
Slap forehead.

>Fix:
--- rpm.8~      Tue Aug 25 21:06:11 1998
+++ rpm.8       Fri Oct 29 12:25:08 1999
@@ -43,6 +43,9 @@
 Rebuild database:
 .br
 .I "\fB    rpm \-\-rebuilddb"
+Initialize database:
+.br
+.I "\fB    rpm \-\-initdb"
 .br
 Fix permissions:
 .br

Additionally, a post-install message would be appropriate.
>Audit-Trail:
>Unformatted: