From nobody Sat Aug 23 13:04:05 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c8HLy41Jrz65svH for ; Sat, 23 Aug 2025 13:04:10 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c8HLy2Xdmz42X3; Sat, 23 Aug 2025 13:04:10 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755954250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jzbmat+OWOr6o37C7moYmWIdfc2tNlYRjHnEQGGz494=; b=TwplPeqLJRn3D1w22eIMIZ15FTqsQbvXVVDnEFIuA14IQjKSCukVDp7+gCbJhVesYv/MQN s1UY3g5cYCg1NAIsP8fsA4ysA016tPGdPLZ/OYU3a6AbXOiPSpTNaC57QjIM5PxvZ16I9w /fKmjexI7dRNqVkuikMSeLcqA8GiLFEGY2BW9uJ+41NzsCNNxauFEUK3BdUEBvvVLQ1bT6 oB95YhQllBnBH7ZO4xT61PAA18xth8jUMAtC3ZSU81JKDEvzu2U/QA0Cu7wP2Fa5+UNrnu kyRjX7Qwl0PQ2xNQAbCKjfa3Idpb9Tf8frNtV/DvAM4vstwyPiwvjRU2FM0+Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755954250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jzbmat+OWOr6o37C7moYmWIdfc2tNlYRjHnEQGGz494=; b=FlOdixcG5wd91oM/A9fjzmq0dPKfnOBpPSxWIsH1SWsrF0XSYM3TGVVoLnHrkzdiw00XSR nGaIOI1s22QisKZMl4qQ1SAnrlYB8kySWr9E1y2U52tj1ppEBklzKVawnTY/+Ky+2ybBIi EnpRz6r29Nmjdn1humthDZhV5K6x0DfiqwpaSiIbfvMO/S9AKQT6+quiSRLLBkm7ZvN2uk ePlDGWP4Hd/WIsGtU17lkc+TEIlcEEyqvfG2nMTmAV2SG8VhoEp/bHj340lxEBaL0Lb/yv wMcRGn9LXXo3G1bkgEger/eQI2GoqTnrgl9wrbTZexY8vTlDiPGGxKjEWp+hQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755954250; a=rsa-sha256; cv=none; b=PQVtXnKMW8BuCixb3wQtRqAgW1npg89PeBXZQE85hzvWF2aixdWHHCz1u+73o4vocaSlUa KPZrLQf6hdRhKRJym3Trhno9t5mIsyOZEVuEFEyUP5IhNKBLMm2Mqfd7BezYuo4LUOVD8n Oeb+i84uH5OjR2aaEjd1Wm75E6kIIA+LRCEq69nnAmDiVrAs3h5QrBLZcYllK3rjp6mCcf iYigbb/BpZ4RBmsusiZMZ52QMNpUvzm9wSSrbdD6OLhGwJ/gTsZPfDwoF+l2gcdZbzJunt a/l5caIvjY/fh53NjcwBxeWlAGJzMeTXYJeUtI5TjTJEMSP7trVIxH6U2bWiAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: grembo/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4c8HLx5QGjz7Ng; Sat, 23 Aug 2025 13:04:09 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 3035e1e6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 23 Aug 2025 13:04:07 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (1.0) Subject: Re: /etc/pkg/FreeBSD.conf and /usr/local/etc/pkg/FreeBSD.conf (not repo names) From: Michael Gmelin In-Reply-To: <20250823213830.310f51c1c7d241dc3bc81963@dec.sakura.ne.jp> Date: Sat, 23 Aug 2025 15:04:05 +0200 Cc: Graham Perrin , freebsd-current@freebsd.org Message-Id: References: <20250823213830.310f51c1c7d241dc3bc81963@dec.sakura.ne.jp> To: Tomoaki AOKI X-Mailer: iPhone Mail (20H360) > On 23. Aug 2025, at 14:39, Tomoaki AOKI wrote:= >=20 > =EF=BB=BFOn Sat, 23 Aug 2025 11:40:27 +0100 > Graham Perrin wrote: >=20 >>> On 23/08/2025 10:28, Tomoaki AOKI wrote: >>> =E2=80=A6 /etc/pkg is described as "default configuration for the packag= e >>> manager, pkg(8)". >>=20 >>=20 >> Indeed, and pkg(8) is _not_ base, so what's described is not consistent=20= >> with /etc/ for base system software configuration files. >>=20 >> >>=20 >> A single repo e.g. FreeBSD-ports in /etc/pkg/FreeBSD.conf is used by pkg=20= >> (7, not 8) for bootstrap. >>=20 >> Then: >>=20 >> - /etc/pkg.conf does not exist >>=20 >> - /usr/local/etc/pkg.conf is explicitly the system-wide configuration=20 >> file for pkg(8). >>=20 >> So, I might expect /usr/local/etc/pkg/repos/FreeBSD.conf to be the=20 >> system-wide=E3=80=93FreeBSD repository configuration file for pkg(8). >>=20 >> =20 >> REPOS_DIR does have the default list of two directories to search. >>=20 >> When I first saw pkgbasify write a FreeBSD-base configuration to=20 >> /usr/local/etc/pkg/repos/ I thought that the path was, somehow, unexpecte= d. >=20 > I think it should be a fatal mistake and should be in under /etc, > not under /usr/local/etc. If it is still as such, it should be fixed > before any release primarily use PkgBase for installs/updates. > Maybe at 15.0? >=20 >=20 >> After looking at intro(5) and hier(7), /usr/local/etc/pkg/repos/ seems=20= >> proper (a change of mind). >=20 > Again, I think /usr/local/etc/pkg should be the place for > local ones, anything not updated on PkgBase, bsdinstall nor > freebsd-update. Anything possibly updated by them should be in > under /etc. >=20 > What allowed to be created and/or edited by admins in /etc > should better limited to anything essential for boot. > fstab, rc.conf, firewall configs and so on that any of boot process > (including rc scripts in /etc/rc.conf.d) requires. >=20 >=20 >> for pkgbasify in base =E3=80=93 with= out=20 >> pkg(8) in base =E3=80=93 will probably change my mind, again. >=20 > I think pkg is quite irregular corner case. > Indeed, it SHALL be the part of base, but as it is still under active > developement, need to be in ports "until the spec prolerly fixed up". > So exists /usr/sbin/pkg for bootstrapping. >=20 > If pkg is NOT an irregular corner case, why ALL ports are NOT forced > to have corresponding bootstraps in base? >=20 > And IMHO, PkgBase SHALL NOT BE ALLOWED unless pkg is considered > as the part of base, even though actual part is "currently" placed > in ports tree. >=20 > "PkgBase is coming to true.", I believe this is why configs for pkg > is placed under /etc, not /usr/local/etc. >=20 > --=20 > Tomoaki AOKI >=20 In an ideal world, pkg would be in base, its default config would be /etc/de= faults/pkg.conf, users could override in /etc/pkg.conf and/or /etc/pkg.d/*.c= onf But there=E2=80=99s history and making progress sometimes comes with comprom= ises. -m