Re: Missing quarterly current pkg files?

From: Mark Millard <marklmi_at_yahoo.com>
Date: Tue, 12 Apr 2022 01:08:23 UTC
On 2022-Apr-11, at 17:50, Mark Millard <marklmi@yahoo.com> wrote:

> On 2022-Apr-11, at 16:46, Greg 'groggy' Lehey <grog@FreeBSD.org> wrote:
> 
>> [Copying -ports; the issue could be interesting to others]
>> 
>> On Monday, 11 April 2022 at  0:22:23 -0700, Mark Millard wrote:
>>> From: Greg 'groggy' Lehey <grog_at_FreeBSD.org>
>>> Date: Mon, 11 Apr 2022 09:04:43 +1000 :
>>> 
>>>> I've checked both IPv4 sites, and
>>>> http://pkg.FreeBSD.org/FreeBSD:14:amd64/ only contains a "latest"
>>>> directory, not "quarterly".
>>>> 
>>>> What's the issue here?  This system was running fine until I tried the
>>>> bootstrap.
>>> 
>>> main [so: 14 as things are, aka current] never has quarterly.
>>> This is not a change.
>>> 
>>> My guess is that your /etc/pkg/FreeBSD.conf ended up no
>>> longer looking like:
>>> 
>>> ...
>>> FreeBSD: {
>>> url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
>>> 
>>> but ended up listing . . ./quarterly instead of . . ./latest .
>>> Or a /usr/local/etc/pkg/repos/FreeBSD.conf was created that
>>> referenced . . ./quarterly instead.
>> 
>> Thanks.  That led to the solution.  In fact, FreeBSD.conf was
>> unchanged since November 2019; the issue was that I originally
>> installed -STABLE, and then upgraded to -CURRENT some months ago.  pkg
>> appears only to have noticed this after the beginning of the quarter.
>> 
>> Is there any warning about this somewhere?  I didn't see one.  It
>> seems strange that the upgrade to -CURRENT went seamlessly, but that
>> pkg failed as a result with messages that aren't immediately obvious.
>> 
> 
> Not exactly what you are asking for, but there is:
> 
> https://wiki.freebsd.org/Ports/QuarterlyBranch
> 
> Towards the end it has notes about switching a Quarterly context
> to use a Latest one (i.e. based on the ports git main branch),
> including adjusting the .conf files and then running "pkg update -f".
> (This can be done on a system that should, by, default, get
> quarterly --if a matching latest is available.)
> 
> The "pkg update -f" is something that had probably also not been
> done. There is a "man 8 pkg-update" that indicates what -f is for.

A more official/normal place for that information is:

https://docs.freebsd.org/en/books/handbook/ports/#ports-using

> http://pkg.freebsd.org reports what is available from FreeBSD for
> various platform/FreeBSD-version combinations, including some
> "only quarterly is updated" contexts. (So latest can be older than
> quarterly.)
> 
> It is not explicit about "only latest exists" contexts: For that you
> have to click the link and see what is there --or just know the rule
> that, for now, FreeBSD:14 is main (a.k.a. CURRENT) and main only gets
> a latest , not a quarterly .
> 



===
Mark Millard
marklmi at yahoo.com