From nobody Wed Aug 20 12:26:29 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 4c6QgC0zStz64sPH; Wed, 20 Aug 2025 12:26:47 +0000 (UTC) (envelope-from rionda@gmail.com) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c6QgB5PqLz3JM5; Wed, 20 Aug 2025 12:26:46 +0000 (UTC) (envelope-from rionda@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-7e87031323aso665194085a.0; Wed, 20 Aug 2025 05:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755692801; x=1756297601; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=yVR+4Nzs+ju2SVF6Bbp9hi0VIf9Qyjr+P+aOamwbzGQ=; b=KgXO0Cgxh1P6VY77sT4Kjkph37qlCyIUIiYGnHo8ZA7UXyETOdgfVJ1iiUyoQqpLdW 51y/MuFxL4Ojd4JIMBYgHfMLlFGNtQZ59X2JhBh54QiC3+e0vv9PPET8sxOl4SytNhL5 ZaowoB5snxRtqnzwVGE0Ftug6kM328EYZmoGVRHK60QYiXzf2Bck6KK7lEY/bfh7/274 9I20HL+IJxOT0hLAfTWEWmOSiuYJow3zJfXyjxA1DdY6QGvFj4HV2X0BTtX5+yWvwc23 TaSdqU908kpmSCtFtI01pJ4TeFv6G3g4j8ZAjRdM7xdGsi9U+axJwt/AFtV8Oe9HzEqo WgLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755692801; x=1756297601; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yVR+4Nzs+ju2SVF6Bbp9hi0VIf9Qyjr+P+aOamwbzGQ=; b=LZrCa0CQTttyfmtRFdSNi1//Auy+47JZul3NmWKEqZGeZtXk0mvrSBTqFCkuJpO0no 4AvwyWJnX0+7xlVTrEOF5xV/MWPr2XvcSY0UCxqy2r0JNmRhaMZcAAAs7k+gZiVT+Kab y3cjydeu6uGNdL0QtNv/IrsgXIcA2425KGvevZ6FZ1CDplEE/xhI3rKgtcV5/0+vSW8b x4a4pV5/Vy6myCrCjEzP7mremCgGlAmvBcEfE8DgF32DXNjDMFnLR6qDHkQh9bPRGMc0 wllGdzBa6OQg9cw8LV4kRqB4sU80jOE4n9TLh4Difkk9ZbWw+17NwjT41iWOdAqqz6eP tqiw== X-Forwarded-Encrypted: i=1; AJvYcCWj93YzD4INiIVa+jpD9QArCuAVASNrnN01iYJLkeJLupo+yf9C38ompENRZ/YAVdQsYLMIFXcKHqYmIPbQ@freebsd.org X-Gm-Message-State: AOJu0YzErLBxgNHcn/1GAVh0ZY/X5VLabe7gEN/O92EB0cKu5ZTKbbTn pvoKXcviWzn8BeoDJ7H6IqG7kMqgH4GPU59aOycM04rQ0kr0w9UCsAzYdQig1Bb8 X-Gm-Gg: ASbGnctQf+gISS73IVeU/wu20rzCEJ4KRS8GmZEoZ6fPs4Ev7Mfx681x0kDwl2etaj2 RD3iVizrKh3f7UolLQ0IlnDOLoFD2GyGNQTcxIE50+mcfWqSth6AKiw8TdnlcaW+IuygZlM3I4B fSSNynQS2phYqAAzm/tEFyXOhwV4CPkFysfrbDxc4CazJIqHpsdzkMA4+3jYUJLk4OhED5OGUfm cDFx+6IV3RMDY/ujFyoZ+JXfJ5S6dUMQGmt7HLf78aWk8ZEHtSzQPFT7w0wHMbzLBiv3+nKhg84 7y5uY+uElC27PKmH7/fqxFBTT473jdWyAdkhFEoV0KKhsgEB+XwIZAkRdqalpP9z+3+0DmTkpqv BjcBLc6s/3IuSNOZjclJb0fU/xgDPC8T9GSdLledlmzV+CUdL4r0PcrdqpQNqIvVz7wIckUIZ X-Google-Smtp-Source: AGHT+IFOvyeNFYry67Vh/qMl3s0aNNSUZX0X3u2IFC3cfn4PMledvElV1dW6RgFH3GS6Kw6XZEqzwQ== X-Received: by 2002:a05:620a:28cc:b0:7e8:4fec:9316 with SMTP id af79cd13be357-7e9fcb0a00cmr274846985a.44.1755692800522; Wed, 20 Aug 2025 05:26:40 -0700 (PDT) Received: from smtpclient.apple (c-75-69-17-192.hsd1.me.comcast.net. [75.69.17.192]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7e87e076811sm928533985a.36.2025.08.20.05.26.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Aug 2025 05:26:40 -0700 (PDT) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3731.700.6.1.21\)) Subject: Re: RFC: Renaming "FreeBSD" repo in /etc/pkg/FreeBSD.conf to "FreeBSD-ports" From: Matteo Riondato In-Reply-To: Date: Wed, 20 Aug 2025 08:26:29 -0400 Cc: FreeBSD Current , FreeBSD Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <05CD2AAD-31EA-471B-8028-A3902D7A4192.ref@yahoo.com> <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> <864iu2jq1a.fsf@ltc.des.dev> <051BA4A9-E45B-4CF5-95C5-B6F53948DB58@FreeBSD.org> <5C65983C-2D75-4250-AADD-12699A4CE252@FreeBSD.org> To: Gleb Popov X-Mailer: Apple Mail (2.3731.700.6.1.21) X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c6QgB5PqLz3JM5 > On Aug 20, 2025, at 7:03 AM, Gleb Popov wrote: >=20 > On Wed, Aug 20, 2025 at 1:20=E2=80=AFPM Matteo Riondato = wrote: >>=20 >>> On Aug 20, 2025, at 6:15 AM, Gleb Popov wrote: >>>=20 >>> On Wed, Aug 20, 2025 at 12:48=E2=80=AFPM Matteo Riondato = wrote: >>>>=20 >>>> It=E2=80=99s unclear (to me) whether that=E2=80=99s the *correct* = way, or the *recommended* way (pkg(8) calls it =E2=80=9Ca common = idiom=E2=80=9D), and in either case *why* is that the = recommended/correct way: what breaks if one modifies /etc/FreeBSD.conf ? = Why does it break? >>>=20 >>> The /etc/pkg/FreeBSD.conf file comes from base (some pkgbase package >>> or as a result of make installworld or something like that). This >>> means that system upgrades must handle edits to this file somehow - >>> either by overwriting your changes with vanilla version or by = merging >>> them, which can't be done 100% automatically. >>=20 >> This is true for so many files under /etc, and we have a solution = with etcupdate (indeed, not 100% automatically, but widely accepted). >=20 > There is no etcupdate involved with binary package upgrades. But there > is still a 3-way merge, yes, but like you said, it is not 100% > automatic. So why not avoid the possibility of a merge conflict if we > can do that? I see that point, and in general it=E2=80=99s a good goal. I would be way more comfortable with the idea that the contents of = /etc/pkg/FreeBSD.conf should not be changed if the file lived in = /etc/defaults (e.g., /etc/defaults/FreeBSD-pkg.conf or = FreeBSD-repos.conf), or had some =E2=80=9Cdefault=E2=80=9D in its = name/path (e.g., /etc/pkg/FreeBSD-repos-defaults.conf (but I would = prefer /etc/defaults/FreeBSD-repos.conf)). Thanks, Matteo