Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 2021 05:36:55 -0800
From:      Mel Pilgrim <list_freebsd@bluerosetech.com>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: pkg alias commands missing after upgrading to 1.17.5
Message-ID:  <22feb555-e7d8-039a-37dc-b7a34ee4743e@bluerosetech.com>
In-Reply-To: <20211203132554.k4xkhd6oznue4deo@aniel.nours.eu>
References:  <83dabf19-6e42-c3ab-e553-1525035c66fe@bluerosetech.com> <20211203105607.nggtpashet7f6d7f@aniel.nours.eu> <4f73869a-de80-8989-273f-08475dbe18cb@bluerosetech.com> <20211203132554.k4xkhd6oznue4deo@aniel.nours.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-12-03 5:25, Baptiste Daroussin wrote:
> On Fri, Dec 03, 2021 at 05:11:06AM -0800, Mel Pilgrim wrote:
>> On 2021-12-03 2:56, Baptiste Daroussin wrote:
>>> On Fri, Dec 03, 2021 at 02:28:58AM -0800, Mel Pilgrim wrote:
>>>> With pkg-1.17.5:
>>>>
>>>> # pkg alias
>>>> ALIAS                ARGUMENTS
>>>> # pkg leaf
>>>> pkg: unknown command: leaf
>>>>
>>>> For more information on available commands and options see 'pkg help'.
>>>>
>>>
>>> I don't know what happened in your case, but I cannot reproduce.
>>
>> Do you have any diagnostic steps I can do to figure out what happened?
>>
>> I fetched a fresh copy of pkg-1.17.5~d6f9535722.pkg from the public repo and
>> installed it using pkg-static, but that didn't fix the problem.
>>
>> I can at least confirm this only happens on one particular system.  I have
>> 15 systems all using the same private pkg repo, and only one has this
>> problem.
> 
> it means on the system with this issue, someone touched /usr/local/etc/pkg.conf
> 
> The aliases are set there, the original file is stored at the following place:
> /usr/local/etc/pkg.conf.sample

Ya I found that about 10 seconds after sending my last email.  But it 
raises another question:

The non-default pkg.conf had been on the system since August 2021, but 
alias commands like pkg leaf worked on 1.17.4.  Why does 1.17.5 require 
pkg.conf define the aliases?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?22feb555-e7d8-039a-37dc-b7a34ee4743e>