Subject: Re: pkg/20448
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 03/17/2003 11:13:46
Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz> wrote:
> > I've committed a large set of changes to deal with correctly handling
> > rpath flags to the compiler.  Could you please cvs update your pkgsrc and
> > testing to see if you still have this problem on your IRIX box?
> 
> Thanks for looking at it.  I've updated pkgsrc and bootstrap-pkgsrc, as
> I saw Jan Schaumann comitted some fixes to it (especially the bug with
> install-sh I was also seeing should be fixed), but the compilation of
> bootstrap failed:
> 
> "pkgdb.c", line 186: error(1020): identifier "DBT" is undefined
>         DBT     key;

 
> It seems that recent update of bootstrap-pkgsrc/pkg_install/lib/pkgdb.c
> broke it.

Yes, sorry, that was my fault.  Please apply the patch below (or cvs
update to get rev. 1.10 of pkgdb.c) -- that should make it work again.

-Jan

Index: lib/pkgdb.c
===================================================================
RCS file: /cvsroot/othersrc/bootstrap-pkgsrc/pkg_install/lib/pkgdb.c,v
retrieving revision 1.9
diff -b -u -r1.9 pkgdb.c
--- lib/pkgdb.c 2003/03/16 19:39:56     1.9
+++ lib/pkgdb.c 2003/03/17 15:49:26
@@ -183,6 +183,7 @@
 void
 pkgdb_dump(void)
 {
+#if defined(HAVE_DBOPEN)
        DBT     key;
        DBT     val;
        int     type;
@@ -195,6 +196,7 @@
                }
                pkgdb_close();
        }
+#endif /* HAVE_DBOPEN */
 }

 /*

-- 
Time is an illusion, lunchtime doubly so.