Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.users > #23171

Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found

From Greg Troxel <gdt@lexort.com>
Newsgroups muc.lists.netbsd.users
Subject Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found
Date 2022-03-07 09:04 -0500
Organization Newsgate at muc.de e.V.
Message-ID <rmi1qzd2718.fsf@s1.lexort.com> (permalink)
References <YiSzbwIi4WqDpyVL@SDF.ORG> <rmi7d978abx.fsf@s1.lexort.com> <YiTmxRJj0jE2LEOj@SDF.ORG>

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Bruce Nagel <nagelbh@sdf.org> writes:

> Looking through the 'pkgdb-change' page, I'm missing 2 of the 3 files 
>
> /etc/mk.conf has:
> PKG_DBDIR=/var/db/pkg
>
> so that line just needs to be changed to:
> PKG_DBDIR=/usr/pkg/pkgdb
>
> I have no /etc/pkg_install.conf file or /usr/pkg/etc/pkg_install.conf -
> should I create them and just include PKG_DBDIR=/usr/pkg/pkgdb in them?
> Or do I need to do something more (is there other content needed in
> those files)?

I would say yes, and then all the tools should agree on the pkgdb.
>
> pkg_admin check:   pkg_admin can't open
> /var/db/pkg/gdk-pixbuf2-2.40.0nb2/+CONTENTS: No such file or directory 

Start looking at the pkgdb, both of them.  Learn what normal packages
look like.  If there is a dir with no control files, just remove it.

> pkg_admin rebuild-tree:   pkg_admin: Cannot read +CONTENTS of package
> gdk-pixbuf2-2.40.0nb2

Same problem as above.
>
> _NetBSD-pkgdb check found:  FATAL: TWO copies of PKG_DBDIR found
>
> So it's definitely the split-brain package databases problem.
>
> /usr/sbin/pkg_add -V gives:   20191008
>
> /usr/sbin/pkg/pkg_add -V gives:   20210308
>
> Do I need to fix anything there?

probably not, except that updating the base system to 9.2 is probably a
good idea.  But with the PKG_DBDIR lines it should be ok.


So you need to dig in and see what is in both databases, and probably
you can move the dirs from /var/db/pkg to /usr/pkg/pkgdb or the other
way around (either is ok, but you must have 1 and you must have all 3
configs pointing to the chosen one.  I prefer /usr/pkg/pkgdb at this
point.)   This is sort of a manual merge process.

Then the script should fix up the embeedded paths.  Read and understand
the script - I tried to comment it well.

Back to muc.lists.netbsd.users | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

/usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Bruce Nagel <nagelbh@sdf.org> - 2022-03-06 13:13 +0000
  Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Greg Troxel <gdt@lexort.com> - 2022-03-06 08:44 -0500
    Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Greg Troxel <gdt@lexort.com> - 2022-03-07 09:04 -0500
      Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Bruce Nagel <nagelbh@sdf.org> - 2022-03-12 17:05 +0000
  Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Greg Troxel <gdt@lexort.com> - 2022-03-06 08:47 -0500
    Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Todd Gruhn <tgruhn2@gmail.com> - 2022-03-06 12:47 +0000
  Re: /usr/pkg/lib/libgobject-2.0.so.8: Shared object "libffi.so.8" not found Greg Troxel <gdt@lexort.com> - 2022-03-12 13:45 -0500

csiph-web