NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg_rolling-replace issue with non-installed package
Riccardo Mottola <riccardo.mottola%libero.it@localhost> writes:
> I got now to the point where pkg_rolling-replace -uv runs without
> stopping, it built many packages but now complains about packages need
> to be replaced but are not installed. This confuses me a little, if it
> is not installed, how does it need to be replaced?
There may well be a bug in pkg_rr, but you are reporting that the system
has multiple issues. pkg_rr is just a shell script and is not that
complicated. First:
A) check that you have only one pkgdb, in /usr/pkg/pkgdb, and not in
/var/db/pkg
B) pkg_admin {rebuild, rebuild-tree, check}
C) update pkgsrc to a consistent view (pkgsrc-2025Q3, or head, all of
it the same). run cvs diff to understand that all changes are
intended
D) remove all work directories. Keep doing this whenever you start over.
Then, I suggest one or both approaches
1) Run pkg_rr with "sh -x", or edit in "set -x" and trace what it's
doing.
2) Run pkg_chk with the args pkg_rr uses and save it. Run the
snippet that finds unsafe_depends and save it. Look at the lists.
3) pick a package and run make replace clean. repeat. If it wants a
dependency newer than what's installed, make replace that.
> RR> Tsorting dependency graph
> *** pkg_chk reports the following packages need replacing, but they
> are not installed: dbus
> fontconfig
> freetype2
Usually I see this only with pyNNN-foo, as pkg_rr doesn't handle
multi-version packages (because it uses pkg_chk which doesn't either).
I would use -x to understand, and you left out the MISMATCH/UNSAFE/etc
lines.
> Now I checked the first ones.
> pkg_info tells me they do not appear installed.
>
>
> If I try to build these manually, I get various
> errors. E. g. Fontconfig appears to fail for missing x11 buildlinks?
>
> ===> Configuring for fontconfig-2.17.1nb1
> cd /disk2/pkg-workdir/fonts/fontconfig/work/.x11-buildlink &&
> /usr/bin/find . -path "*fontconfig*" -type l -delete
> cd: can't cd to /disk2/pkg-workdir/fonts/fontconfig/work/.x11-buildlink
> *** Error code 2 (ignored)
You might have stuff in mk.conf that is wrong. Reduce it to the bare
minimum, and include it when asking for help.
Overall I suspect a broken pkgdb situation but I'm guessin.
Home |
Main Index |
Thread Index |
Old Index