Topic: Update pkgsrc

I'm sorry to talk about this again but I'm having some heavy issues updating my packages.

I can now see how it's updating things when using 'make update' because of this:
lintpkgsrc -i | pkgdepgraph -lv - | dotty -

I'm still lost when it comes to update packages A & B that depend on package C.

A -------\
             C
B -------/

If both A & B are out of date you'll prolly want to update both of them.
Well C will be rebuilt twice !

Imagine what it does when there's a real tree with a bunch of deps.

I wanted to rebuild two light packages some days ago and both times it compiled gimp and firefox. How cool ?

Is there some other way that deinstalling everything to update a pkgsrc based system ?

<wintellect> NetBSD users are smart enough to accept that there's no 3D support tongue

Re: Update pkgsrc

you can update an individual package by pkg_delete -f'ing it, then doing make reinstall.  that would get a bit tedious with a bunch of out of date stuff though.

I remember pkg_chk being a very handy tool for updating, I'm gonna go have a look at it now, as my packages need a bit of updating smile.

I'll report back.  and I just realized you're on IRC so I'll bring this convo over there.

Re: Update pkgsrc

Well asemi it's not completely right.

I remember being pissed of with `make update` so I used pkg_delete -f.
You know what ? You loose dependencies.

If you don't need them it's fine. If you do it's not fine smile

<wintellect> NetBSD users are smart enough to accept that there's no 3D support tongue

Re: Update pkgsrc

I'm still pretty sure pkg_delete -f only removes the pkg you specify, even if something depends on it.  that is all, it doesn't remove anything else.  so if you pkg_delete -f and then make reinstall what you just pkg_deleted, you have the updated version.

I checked out pkg_chk last night.  I ran pkg_chk -u which claims to update any missing packages (missing?).  it ran fine besides a few errors about missing stuff, which I had to manually install, then run pkg_chk -u again, which resumed from where I left off.  I think you're supposed to run pkg_chk -a before -u, since it says it adds any missing stuff, but who knows.  it rebuilt a bunch of weird stuff too, like nicotine, which didn't get updated.  and I don't think there's any way to specify a certain package to update with it.  hum.

Re: Update pkgsrc

-u        Automatically update any missing packages.

Out of date packages are not missing. They are out of date. Does -u update packages ?!

<wintellect> NetBSD users are smart enough to accept that there's no 3D support tongue