From nobody Wed Aug 20 10:15:55 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 4c6Mmm4yWrz64jMc; Wed, 20 Aug 2025 10:16:24 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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 4c6Mmm2s3Sz3xGY; Wed, 20 Aug 2025 10:16:24 +0000 (UTC) (envelope-from 6yearold@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-e931cddb0e2so4991643276.3; Wed, 20 Aug 2025 03:16:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755684983; x=1756289783; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wyTinzyqqMtW4BhVUKmxKbE/YwBNzc2fWEadnx4K0Bc=; b=kLRm6rSLRgzmOZEFtjbyEiHJgFne9avbGTDExEoM6NgWpcHFAN7u+53SXBxvGgfH/l PYNvz0MUg+rcKNmkfwL2SBpUzH+JZ/x3ZLIeziCPSkstrYjh73mhlZMzuz+rcrlrmcWy AKjs9c+3bhKYO9Gjomi5S/zXSLs7VyllzcGhBaKHUVnFmPROw6NclErQ/On3wkfJtR1E TUaGvE0flgEaTs0M34e0HR9PFeilutJFBO2lAB61CeqrhnI92T5CEYfPv4N0PTPVACza w89jYPXzzwaN3A1mV0QB2lS69rwApjB0mEsmeG1emQlK8i0OhhdLtXziuYiD2pYX3Aet P0Qg== X-Forwarded-Encrypted: i=1; AJvYcCXVBTb3i3cKt/e3DhW3EBT5lA94JXEjt73AUEQNialxPbToMst/7jjpi2EeHxGSBwtB/p7z+8IEBeMXxkYl@freebsd.org X-Gm-Message-State: AOJu0YxQm8I445aE4YFASgUKtoLCI5LeL3OYCfPpeskSjbuVURI6BTBT f+J0KuVuJie3OqNaujZslpJPfixaQgBR/kDGrzfuHXn7DlOATIOXk84A+wkSEef8 X-Gm-Gg: ASbGncvSs/0CKwtUuB25CNWKUxQXJoa6Gb1ahvxJ4koPGvJKwk9Z+Xaz6tzRQ2QbTXV q1YOnHTg0toRH/arHNDQNUqnnI8dqBCKFZyge0a3tfzb0ZvEVs9HcIg44eYgSUVkKslXUnUdS2j /o/Ozs7yUuWZCxgggWID8UiIDEfWb84vXgC0aLnk9g6I+/MzSXeWlmIMa5rx7Iw9ReiU8FXbktz R8t8v8vPMtR3uXxM6sybHbR5ntcoB6g6SqSSXFj8acFRolGslRaKWESyDhOqrS8JrAGmbarec/w vkIs4PzDXhKdXlETKoF1JbdYQHN27hcyfmudbrBDmrYq+qLGpVP1j4kQg9c2rHj0r7UIRo2kSHB /79NrJnRNKnqsjnWgsnFPbW9IL9DqgJQ3Banx0139Q1pNB8I0LUegSneP3LP3IM9ju1Gux3iw X-Google-Smtp-Source: AGHT+IEw58eAhxvOYcNmk6z8ECuEa7K5BQEgBWEOPB7JlMonDoPYtvdnCEGTFDtGdszMdbCao7XCuA== X-Received: by 2002:a05:690c:708f:b0:71a:1513:236 with SMTP id 00721157ae682-71fb3231d56mr28163947b3.40.1755684983227; Wed, 20 Aug 2025 03:16:23 -0700 (PDT) Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com. [209.85.219.170]) by smtp.gmail.com with ESMTPSA id 00721157ae682-71e6def6b41sm35440507b3.37.2025.08.20.03.16.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Aug 2025 03:16:22 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-e932ded97easo4844063276.1; Wed, 20 Aug 2025 03:16:22 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXBEAUhx23x4yUv6209jLu5+GU6DrDBZYdtgehrI6awsNRcVOw9Y+LLaQ4i0AjjCatAEfoV2/W1EAK18+2O@freebsd.org X-Received: by 2002:a05:690c:298:b0:71f:b944:1006 with SMTP id 00721157ae682-71fb94448dcmr12667497b3.45.1755684982565; Wed, 20 Aug 2025 03:16:22 -0700 (PDT) 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 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> In-Reply-To: <051BA4A9-E45B-4CF5-95C5-B6F53948DB58@FreeBSD.org> From: Gleb Popov Date: Wed, 20 Aug 2025 13:15:55 +0300 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXwqkrPLaNTys4MjE_Hcogu0mCo8WM47fpxDOit5qUMxeOKHEvDnOmpx7Cw Message-ID: Subject: Re: RFC: Renaming "FreeBSD" repo in /etc/pkg/FreeBSD.conf to "FreeBSD-ports" To: Matteo Riondato Cc: FreeBSD Current , FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c6Mmm2s3Sz3xGY On Wed, Aug 20, 2025 at 12:48=E2=80=AFPM Matteo Riondato wrote: > > 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 i= f one modifies /etc/FreeBSD.conf ? Why does it break? 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. So encouraging users to not touch system configs but rather write add-ons to these configs make upgrades less painful. > Also, it seems that whether having =E2=80=9Crepository-name: { enabled: f= alse}=E2=80=9D would actually disable respository-name would depend on the= order of directories in the configuration variable REPOS_DIR. This feels q= uite brittle. This is also a very common problem which has an established solution by prefixing config files with numbers, like 10-disable-freebsd-repos.conf