From nobody Wed Aug 20 10:19:48 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 4c6Ms22X3Nz64jS9; Wed, 20 Aug 2025 10:20:06 +0000 (UTC) (envelope-from rionda@gmail.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 4c6Ms20Wrcz40Zm; Wed, 20 Aug 2025 10:20:06 +0000 (UTC) (envelope-from rionda@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-4b109c63e84so66210881cf.3; Wed, 20 Aug 2025 03:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755685200; x=1756290000; 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=nnsRu4CMhN1avbLKG06szST+svWRCjjtF0C59kLNpdY=; b=dhDr3BYBuQUuZrOgUNW6HATApQ5XY/naWBeThF2UhWxPqg5KyxHYoN7QGFskfDLEkc lUjfSSkcmCw2dnAea4S14YZwfDV20i8geC7n6XSANG7qVks7zyfqDK999Ate72vW0HG0 6Pg3WRw2v6gba8U7qpLToYfFjKJWKoy4Wz2K52jOLKJQgfMK7vjxVaR48W5vIvZxI8Ti lrIWnXv5EcJTs3SGLfliZ96RaQiM5OoU8xekvdjLMg/Y+mBoH5aWGMDgacO4zT+foSWg H644dzrTx+6Cpe625mN7rGiCduzubTMMbIeG8UAUfMm1DEG4V6FcX4Bv5qWahzZyIMfA mNZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755685200; x=1756290000; 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=nnsRu4CMhN1avbLKG06szST+svWRCjjtF0C59kLNpdY=; b=B/5aAtJSgk7BXlaYuLcL4LSZ9DlcP5IWLnyytOVLMaJJ+F3FrpRDlifpSET9jG/oaC oNIttDDnbXdZEmhaTX+6BmljC1swC0/1SoV7vxX2NJK54AZTJcrrRWit2yZ82mZ6C7Fs pUqScfbHlo+JxckM7Rsjcl4oVusB3kI0RCvG5cz9FSNj42ru2SUQ+8XZBk9ltT8oLWV6 vTVU1T7Ahk25kFKZtvdkpsWqRH40Qumq8U4G2OgTGxhVrNFhRHkR6m7iZG+ooF1h8Y6a R/h7CktuPApGpaIIBMs4Sp+VGFDmy+avonmq5HEbDDCg6i+ldZKYryCpxiNqqMQYYdWw izpQ== X-Forwarded-Encrypted: i=1; AJvYcCULH73cs5iqazeDUJCO4YCwp5dYRTGZvCTfL4CuYry7/mknGInk8224L6d7k5eY8HyP2FoQtxHP5eMFQEUX@freebsd.org X-Gm-Message-State: AOJu0Yz9KhBDi9Xpn5+hp6UG6PNXCyH/TzZRWp775jdecRtsE1U1YlMC Q7J+iQeJKpcZAycudlZuGXcL4wVERROeD+MCTmQnUgMEEgUDBgx6AhN/8NPUQCmP X-Gm-Gg: ASbGncvvpYe4lv4r6/NjI+SCciqk/2UNqkDQruq2AZbmelfk2qpbheYrqvFZjQNsttJ 2PSClctFhs0vk8LIHJH+AuYaIbSM7X7XL7KRSZNP/JJFTUAhZHFHDHSW3JuXJ2aBf6PGIr1KN2k aWBP3HFIPWgaAcvvzezjXbORY3b5TPmbv1S+mOoOjq+L6O6d+dUHFO9GyLa1NoHFmVwxrIoBNsd 4Q8dyCAepskx2xQ6/Muq6l5RcvUnUowMFDC7qnQJc3ZML6KeHexMroPIvDMRKdRrF4ic8oVmqQE TwHap+8W2QP2dkuu4V180LijzI/12qoV73SA89i+cVzylhB5bEX+sL4+ApUpOENNPaeWid4B0Pr yyhL/ClxaXhh7lJ3W/MVx8js0biK4QW7xXdioxJWv0Ef2cL86rheglZZnM+aq5Wmb/64GDqn7 X-Google-Smtp-Source: AGHT+IFs52iM9xoKGf9DF+KxEs+YLzFvZLcVJ64y4UT6GrkauwwQllGhj4YcUEEFXhN2d+BIynQhnQ== X-Received: by 2002:a05:622a:199b:b0:4b0:7957:1cab with SMTP id d75a77b69052e-4b291a34b8cmr21975131cf.11.1755685199781; Wed, 20 Aug 2025 03:19:59 -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-7e87e1dd074sm910148685a.73.2025.08.20.03.19.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Aug 2025 03:19:59 -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 06:19:48 -0400 Cc: FreeBSD Current , FreeBSD Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <5C65983C-2D75-4250-AADD-12699A4CE252@FreeBSD.org> 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> 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: 4c6Ms20Wrcz40Zm > 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. This is true for so many files under /etc, and we have a solution with = etcupdate (indeed, not 100% automatically, but widely accepted). > So encouraging users to not touch system configs but rather write > add-ons to these configs make upgrades less painful. It seems to me that we don=E2=80=99t have this encouragement with any = other files in /etc. Why can=E2=80=99t etcupdate handle the changes/updates to FreeBSD.conf?=20= >> Also, it seems that whether having =E2=80=9Crepository-name: { = enabled: false}=E2=80=9D would actually disable respository-name would = depend on the order of directories in the configuration variable = REPOS_DIR. This feels quite brittle. >=20 > This is also a very common problem which has an established solution > by prefixing config files with numbers, like > 10-disable-freebsd-repos.conf No, REPOS_DIR is about _directories_, not files. Thanks, Matteo