pkgsrc-Users archive

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

Re: +CONTENTS issue with lang/perl5 update



Greg Troxel <gdt%lexort.com@localhost> wrote:

> Jonathan Perkin <jperkin%mnx.io@localhost> writes:
> 
> >
> > There are two likely causes of this:
> >
> >  * You're running an older version of pkg_install prior to 20200701.
> >  * 'make replace' doesn't call pkg_admin rebuild-tree.
> >
> > For the 20200701 pkg_install release I made a number of changes to fix
> > +REQUIRED_BY generation, and in pkgin I ensured that rebuild-tree is
> > called after any pkgdb changes:
> >
> >   https://github.com/NetBSD/pkgsrc/commit/185902296ec91fc88287c8c47d47a56304e9dc2d
> >   https://github.com/NetBSDfr/pkgin/commit/7b8477561e49a2f174f6f4b37928b4e5d1da2f14
> >
> > You should be able to fix it by manually running "pkg_admin
> > rebuild-tree", but it would be good if someone can ensure that the
> > replace target does this automatically (I never use it, sorry).
> 
> I certainly agree that rebuild-tree is in order in this case.
> 
> But, I think it's a bug if rebuild-tree is ever needed, and I object to
> the sugestion that make replace should call it.  I see rebuild-tree as
> being like fsck, and it doing anything is evidence of a crash or a bug.
> 
> I run pkg_rr all the time, calling make replace and very rarely do I end
> up with a buggy line in +REQUIRED_BY.  It used to be more frequent, and
> now I don't remember the last time.   That's consistent with "fixed in
> 20200701".

I usually run pkg_rr as well, which is where I first found this issue.
Normally I don't have an issue with this type of thing. Thanks for
the input as well, Greg.


Home | Main Index | Thread Index | Old Index