pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

does your pkg_install support pkgdb.byfile.db?



If you use pkg_install on Linux or other non-BSD system, please let me 
know if you have Berkeley db support in it.

And whether or not it works, please let me know what db library it used or 
what db libraries you have installed.

pkg_info -Fe didn't work at all for me on my Linux system.

I moved my /var/db/pkg/pkgdb.byfile.db which hadn't been updated since I 
updated to latest pkg_install (and have installed and deinstalled many 
packages since then).

I ran "pkg_admin rebuild" which finished with:

Stored 79269 files from 379 packages in /var/db/pkg/pkgdb.byfile.db.
Done.

But the file does not exist. If not built with db support it should not 
indicate it supports db.

I realize my pkg_install was not built with HAVE_LIBDB. I had solved this 
for me a few years ago (and others reported same problem a few years ago), 
but it was never committed.

Anyways, since there are many different naming schemes for (even same) 
Berkeley DB libraries and different interfaces, it is a little hard to 
create autoconf checks for this accurately.


I have been told that we can't have pkg_install have a dependency on any 
other package.

In my case, my Linux system has db4-4.5.20.2:

-r--r--r--  1 root root   101978 Nov 30 09:25 /usr/include/db4/db.h
-r--r--r--  1 root root     6025 Nov 30 09:25 /usr/include/db4/db_185.h
-r--r--r--  1 root root    37258 Nov 30 09:25 /usr/include/db4/db_cxx.h
-rw-r--r--  1 root root 17285432 Nov 30 09:25 /usr/lib/libdb4-4.5.a
-r-xr-xr-x  1 root root      855 Nov 30 09:25 /usr/lib/libdb4-4.5.la
lrwxrwxrwx  1 root root       20 Nov 30 09:25 /usr/lib/libdb4-4.5.so -> 
libdb4-4.5.so.5.0.20
lrwxrwxrwx  1 root root       20 Nov 30 09:25 /usr/lib/libdb4-4.5.so.5 -> 
libdb4-4.5.so.5.0.20
-r-xr-xr-x  1 root root 15805681 Nov 30 09:25 /usr/lib/libdb4-4.5.so.5.0.20
lrwxrwxrwx  1 root root       13 Nov 30 09:27 /usr/lib/libdb4-4.so -> 
libdb4-4.5.so
-rw-r--r--  1 root root 17285432 Nov 30 09:26 /usr/lib/libdb4.a
lrwxrwxrwx  1 root root       13 Nov 30 09:27 /usr/lib/libdb4.so -> 
libdb4-4.5.so
-rw-r--r--  1 root root 19598398 Nov 30 09:26 /usr/lib/libdb4_cxx-4.5.a
-r-xr-xr-x  1 root root      954 Nov 30 09:25 /usr/lib/libdb4_cxx-4.5.la
-r-xr-xr-x  1 root root 17855815 Nov 30 09:25 /usr/lib/libdb4_cxx-4.5.so
lrwxrwxrwx  1 root root       17 Nov 30 09:27 /usr/lib/libdb4_cxx-4.so -> 
libdb4_cxx-4.5.so
-rw-r--r--  1 root root 19598398 Nov 30 09:26 /usr/lib/libdb4_cxx.a
lrwxrwxrwx  1 root root       17 Nov 30 09:27 /usr/lib/libdb4_cxx.so -> 
libdb4_cxx-4.5.so

$ nm /usr/lib/libdb4.so | egrep 'dbopen|__db185_open'
00018e74 T __db185_open



Home | Main Index | Thread Index | Old Index