Re: Packages/libraries in disarray after sysupgrade

2021-05-14 Thread Stuart Henderson
On 2021-05-14, Marc Espie  wrote:
> On Thu, May 13, 2021 at 10:47:11PM +, tetrahe...@danwin1210.me wrote:
>> After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
>> finding it not possible to install packages via pkg_add
>> 
>> When I try to install something, I get a series of errors like "> dependency library name>: bad major" or ": minor is too
>> small"
>> 
>> I am assuming I need to be installing new packages with `pkg_add -U` to
>> update the dependencies as needed. However, the manpage suggests this is not
>> desirable.
>
> Sometimes, base snapshots and package snapshots are slightly out of synch.
> this is what happened (rapid bumps to the crypto parts in base).

Not in -stable though..




Re: Packages/libraries in disarray after sysupgrade

2021-05-14 Thread Marc Espie
On Thu, May 13, 2021 at 10:47:11PM +, tetrahe...@danwin1210.me wrote:
> After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
> finding it not possible to install packages via pkg_add
> 
> When I try to install something, I get a series of errors like " dependency library name>: bad major" or ": minor is too
> small"
> 
> I am assuming I need to be installing new packages with `pkg_add -U` to
> update the dependencies as needed. However, the manpage suggests this is not
> desirable.

Sometimes, base snapshots and package snapshots are slightly out of synch.
this is what happened (rapid bumps to the crypto parts in base).

If you really know what you're doing, you can often work your way around it
by filling in the gaps. :)


As far as pkg_add -U, it's been developed as a quick solution to be able
to install a new package on-the-fly without having to update 600+ packages
first (like say, you figured you're missing an important component right
before you go live at a conference).

But you end up with a "skewed" package set coming from different snapshots,
so you're relying on everyone not missing any bump and not missing a "tight"
dependency between two library versions... works most of the time but... not
guaranteed.



Re: Packages/libraries in disarray after sysupgrade

2021-05-14 Thread Stuart Longland
On Thu, 13 May 2021 22:47:11 +
tetrahe...@danwin1210.me wrote:

> I am assuming I need to be installing new packages with `pkg_add -U` to 
> update the dependencies as needed. However, the manpage suggests this is 
> not desirable.

Maybe try `pkg_add -u` (lowercase 'u' not uppercase) first… it may be that
you need to update the packages you have installed now before you can
install any new ones.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Packages/libraries in disarray after sysupgrade

2021-05-13 Thread tetrahedra
After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am 
finding it not possible to install packages via pkg_add


When I try to install something, I get a series of errors like "dependency library name>: bad major" or ": minor is 
too small"


I am assuming I need to be installing new packages with `pkg_add -U` to 
update the dependencies as needed. However, the manpage suggests this is 
not desirable.


Is there a better way to do things?



Re: Packages/libraries in disarray after sysupgrade

2021-05-13 Thread Edgar Pettijohn
On Thu, May 13, 2021 at 07:50:35PM -0500, Edgar Pettijohn wrote:
> On Thu, May 13, 2021 at 10:47:11PM +, tetrahe...@danwin1210.me wrote:
> > After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
> > finding it not possible to install packages via pkg_add
> > 
> > When I try to install something, I get a series of errors like " > dependency library name>: bad major" or ": minor is too
> > small"
> > 
> > I am assuming I need to be installing new packages with `pkg_add -U` to
> > update the dependencies as needed. However, the manpage suggests this is not
> > desirable.
> > 
> > Is there a better way to do things?
> >
> 
> I just ran into this myself. I'm guessing the packages are built with a
> newer library. So I'm running sysupgrade again to see if they get
> installed. I'll repost if that indeed solves my issue.
> 
> edgar
>

Yep just completed a sysupgrade followed by pkg_add -u and i can now
install new packages without errors. Probably the same will work for
you.

edgar



Re: Packages/libraries in disarray after sysupgrade

2021-05-13 Thread Edgar Pettijohn
On Thu, May 13, 2021 at 10:47:11PM +, tetrahe...@danwin1210.me wrote:
> After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am
> finding it not possible to install packages via pkg_add
> 
> When I try to install something, I get a series of errors like " dependency library name>: bad major" or ": minor is too
> small"
> 
> I am assuming I need to be installing new packages with `pkg_add -U` to
> update the dependencies as needed. However, the manpage suggests this is not
> desirable.
> 
> Is there a better way to do things?
>

I just ran into this myself. I'm guessing the packages are built with a
newer library. So I'm running sysupgrade again to see if they get
installed. I'll repost if that indeed solves my issue.

edgar