Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2025 05:47:32 -0400
From:      Matteo Riondato <matteo@FreeBSD.org>
To:        =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
Cc:        Miroslav Lachman <000.fbsd@quip.cz>, Colin Percival <cperciva@freebsd.org>, Mark Millard <marklmi@yahoo.com>, FreeBSD Current <freebsd-current@freebsd.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: RFC: Renaming "FreeBSD" repo in /etc/pkg/FreeBSD.conf to "FreeBSD-ports"
Message-ID:  <051BA4A9-E45B-4CF5-95C5-B6F53948DB58@FreeBSD.org>
In-Reply-To: <864iu2jq1a.fsf@ltc.des.dev>
References:  <05CD2AAD-31EA-471B-8028-A3902D7A4192@yahoo.com> <5bece4af-0bec-457e-847f-7ca1cb031f86@freebsd.org> <590B86F2-6F9F-46BF-9569-03F72EA93B5D@FreeBSD.org> <91cccdac-406c-46dc-bdbe-c1c016cdee99@freebsd.org> <c7425732-2d2c-446d-9877-493070d24b90@quip.cz> <864iu2jq1a.fsf@ltc.des.dev>

index | next in thread | previous in thread | raw e-mail


> On Aug 20, 2025, at 5:33 AM, Dag-Erling Smørgrav <des@FreeBSD.org> wrote:
> 
> Miroslav Lachman <000.fbsd@quip.cz> writes:
>> If there is one file for each repository, it can be managed using
>> simple tools such as cp / rm / sed to enable, disable or modify
>> repositories - good for scripted setups and automation.
> 
> The correct way to disable one of these repositories is to add
> 
>    repository-name: { enabled: false }
> 
> in a file in /usr/local/etc/pkg/repos.

It’s unclear (to me) whether that’s the *correct* way, or the *recommended* way (pkg(8) calls it “a common idiom”), and in either case *why* is that the recommended/correct way: what breaks if one modifies /etc/FreeBSD.conf ? Why does it break?

It feels very unnatural to me to have one file in /etc specifying a setting (enabled: true”), and another file in /usr/local/etc specifying the opposite.

Also, it seems that whether having “repository-name: { enabled: false}” would actually disable respository-name  would depend on the order of directories in the configuration variable REPOS_DIR. This feels quite brittle.

Thanks,
Matteo



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?051BA4A9-E45B-4CF5-95C5-B6F53948DB58>