Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2025 18:28:19 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        Graham Perrin <grahamperrin@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: /etc/pkg/FreeBSD.conf and /usr/local/etc/pkg/FreeBSD.conf (not repo names)
Message-ID:  <20250823182819.321d4dbca45e56f7c1f0a7aa@dec.sakura.ne.jp>
In-Reply-To: <5dc99111-3977-4638-8151-1f69fa819e08@gmail.com>

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

On Sat, 23 Aug 2025 08:13:47 +0100
Graham Perrin <grahamperrin@gmail.com> wrote:

> <https://wiki.freebsd.org/Releng/15.0ISSUES#assigned>;
> 
> 
> > Add "FreeBSD-base" (or maybe "FreeBSD-src") repository to 
> > /etc/pkg/FreeBSD.conf (cperciva)
> >
> 
> hier(7) descriptions of /etc/ and /usr/local/ are thought-provoking. 
> Respectively:
> 
> "base system configuration files and scripts; see intro(5)"
> 
> "local executables, libraries, etc, installed by pkg(7) or ports(7)"
> 
> Colin's base 29f076ae0cb5 was my precedent for multiple repos in a 
> single file,
> 
> /etc/pkg/FreeBSD.conf
> 
> As the local stuff of pkg(8) is installed (bootstrapped) by pkg(7), is 
> the _local_ configuration file a more logical place to specify the 
> FreeBSD-base and FreeBSD-kmods repos?
> 
> /usr/local/etc/pkg/FreeBSD.conf
> 
> ----
> 
> /etc/pkg/ is documented in hier(7), however it's quirky. pkg(8) is not 
> part of base.
> 
> <https://man.freebsd.org/cgi/man.cgi?query=hier&sektion=7&manpath=freebsd-current>;
> 
> <https://man.freebsd.org/cgi/man.cgi?query=intro&sektion=5&manpath=freebsd-current>;
> 
> <https://github.com/freebsd/freebsd-src/commit/29f076ae0cb536d1e891d3375edf28f1bc82df79

hier(7) also states that /boot/modules are for "third-party loadable
kernel modules, such as those installed with pkg(8) or from ports(7)".
So including FreeBSD-kmods repos into other ports stuff is not so
logical.

IIRC, there was /usr/local/modules or /usr/local/lib/modules for
third-party (ports) kmods, but switched to current form as it was
fatal on boot if any essential to boot base kmod is there &&
/usr/local is not in the same partition with / (root).


And /etc/pkg is described as "default configuration for the package
manager, pkg(8)". So configurations for pkg modified or created by
local admins should be in /usr/local/etc/pkg and anything in /etc/pkg
should not be touched for sane upgrades of base.


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20250823182819.321d4dbca45e56f7c1f0a7aa>