Subject: bootstrap-pkgsrc pkgdb breakage
To: None <tech-pkg@netbsd.org>
From: Jonathan Perkin <jonathan@perkin.org.uk>
List: tech-pkg
Date: 01/19/2003 18:21:32
gcc -DHAVE_CONFIG_H -I. -I.  -g -O2 -c pkgdb.c -o pkgdb.o
pkgdb.c: In function `pkgdb_remove_pkg':
pkgdb.c:213: `DBT' undeclared (first use in this function)
pkgdb.c:213: (Each undeclared identifier is reported only once
pkgdb.c:213: for each function it appears in.)
pkgdb.c:213: parse error before `data'
pkgdb.c:219: `pkgdbp' undeclared (first use in this function)
pkgdb.c:223: `R_FIRST' undeclared (first use in this function)
pkgdb.c:223: `key' undeclared (first use in this function)
pkgdb.c:223: `data' undeclared (first use in this function)
pkgdb.c:223: `R_NEXT' undeclared (first use in this function)
pkgdb.c:230: warning: unreachable code at beginning of switch statement
*** Error code 1

 revision 1.7
 date: 2003/01/14 15:18:59;  author: jschauma;  state: Exp;  lines: +39 -4
 Synch with latest changes from src (changes by agc, synch ok'd by agc)
 ----------------------------------------------------------------------

 Add a pkgdb_remove_pkg() function and use it in pkg_delete(1).

This function obviously isn't Solaris-friendly.  If there isn't anyone
looking at this already (I'd be surprised, given the number of Solaris
users of this stuff), I'll take a look next week (obviously something
to do with libdb).

-- 
Jonathan Perkin - http://www.perkin.org.uk/jonathan/ - jonathan@perkin.org.uk