From nobody Thu Nov 20 19:28:34 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 4dC7gW2Kx0z6HqH3 for ; Thu, 20 Nov 2025 19:28:39 +0000 (UTC) (envelope-from void@f-m.fm) Received: from fout-b1-smtp.messagingengine.com (fout-b1-smtp.messagingengine.com [202.12.124.144]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dC7gT59ZZz3whR for ; Thu, 20 Nov 2025 19:28:37 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm3 header.b=NNlfZQYT; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=co2OKd+d; dmarc=pass (policy=none) header.from=f-m.fm; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 202.12.124.144 as permitted sender) smtp.mailfrom=void@f-m.fm Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id DD9331D00283 for ; Thu, 20 Nov 2025 14:28:36 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 20 Nov 2025 14:28:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1763666916; x=1763753316; bh=HXcJGxbRNb yVat5YOm4sIGpci65UM2mG5BgBXk3j8rQ=; b=NNlfZQYTkbsPjRlB7vPHEfDSHI tc3lm94xVxTzMIKIryhBbysi928+/Mq6eapXS6DWNt8ystfyndlj9enF6uAMXtQN CuZSIMdRqRx3EegIffxu4c8nIwG7u8D/trhsrND9ngvvFk9ovqdxTY20FjXkAvAH o+fXhiFifSyS89+go+2aIPeu5szspriKST+Pm1yQPZBfZV7u0b8ZwaUYE2xh1g4K uwLtP3/cFol9ubCvJUC0y0yD5RMBeB9zIx4u64eYrG00q+4Ssy1veEr8hT1Mu/Jw QzxgINMGPh/+4ZZRZHUtdNLy6D9BKY8HAeK158iqz1g2UT0al1jFmwrUZhoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1763666916; x=1763753316; bh=HXcJGxbRNbyVat5YOm4sIGpci65UM2mG5Bg BXk3j8rQ=; b=co2OKd+dggYiPXKHpZzIZvwebdsG1gpbUJgXvVkZhBATOt65A2K JdZzYYyckdmaTHmK/Iv3tROJCaD/MSu9d4QJ4byGykz3Rr5bOiF2XPe8012xxyxa ADs/ouHfTNrGYN50XeA0NTZR1SOrbAnv3QdhFM6vSmHjo4i4+S+Hb6nBHDEy6KeH v+C8YdZ7ud+ZrJGnwBa1RqCMvLE/+I2AKNtZ4KRjlOynSFQAWRwJ5M5/ojHnsI6Y FhRLLMmGa0dL7aVtgLvHEfJ2BMMSYCBGlBdDfVMCwaew6wPMU12Bz4n2r/Y58+jg J9PNtWm5o11LpBh4H+YRJVaMSSKuifefOmw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvvdejleduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtredttd dtvdenucfhrhhomhepvhhoihguuceovhhoihgusehfqdhmrdhfmheqnecuggftrfgrthht vghrnhepkeeluddvlefhieelfefggffhffektdehleelgfdugfdvgeekjeejuddtheehgf eunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvhho ihgusehfqdhmrdhfmhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepfhhrvggvsghsugdqtghurhhrvghnthesfhhrvggvsghsugdrohhrgh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 20 Nov 2025 14:28:36 -0500 (EST) Date: Thu, 20 Nov 2025 19:28:34 +0000 From: void To: freebsd-current@freebsd.org Subject: Re: changing from pkgbase to regularbase Message-ID: Mail-Followup-To: freebsd-current@freebsd.org References: <3a98225a-0f49-4010-9e6b-8f893a069ba1@FreeBSD.org> 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <3a98225a-0f49-4010-9e6b-8f893a069ba1@FreeBSD.org> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.42 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.82)[-0.822]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm3,messagingengine.com:s=fm3]; R_SPF_ALLOW(-0.20)[+ip4:202.12.124.128/27]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[202.12.124.144:from]; FREEMAIL_FROM(0.00)[f-m.fm]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ASN(0.00)[asn:151847, ipnet:202.12.124.0/24, country:AU]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4dC7gT59ZZz3whR On Thu, Nov 20, 2025 at 02:56:46PM +0000, Matthew Seaman wrote: > >This is how I would do it: > >0) Make sure all packages are up-to-date and any no-longer required > automatic packages have been removed. > > # pkg upgrade > # pkg autoremove -y > >1) Make a list of all the packages you have installed that aren't > FreeBSD base packages. You can exclude anything automatically > installed as a dependency of anything else: > > % pkg query -e '%a = 0' '%n' | grep -v ^FreeBSD > packages.list > >2) Move aside the pkg database in /var/db/pkg > > # mv /var/db/pkg /var/db/pkg.old > >3) Re-install pkg(8) using pkg(7) > > # pkg bootstrap -f > >4) Re-install all of the non-base packages from step (1) > > # xargs pkg install < packages.list > >Untried, so may need refinement, but that's the gist of it. You do end >up having to overwrite all previously installed non-base software with >an identical copy of itself. The only other alternative would be >directly modifying the pkg sqlite database, but that's not something I >can easily describe how to do. Thank you. That mostly did it. After a reboot, I had to do the following afterwards because another buildinstallkernelworld cycle still asked for DESTDIR: -1: reboot 0. disable /usr/local/etc/pkg/repos/FreeBSD-base.conf 1. move /etc/src-env.conf aside (disabling META_MODE) 2. kldunload filemon and make sure it stayed unloaded 3. rm -rf /usr/obj 4. rm -rf /usr/src 5. get the src again via git 6. pkg clean -y 7. cd /usr/src && make cleanworld cleandir clean && make -j16 kernel (no prompt at the end for DESTDIR) > >However, this does seems like a retrograde step to me. It is possible >to build your own packages from the source tree, and then update your >system from those, which gives you pretty much the benefits of both >worlds: I wanted the system to be as if I'd selected the traditional install and not the new type and this does it. So now it can use the pkg cluster just for ports packages not for pkgbase and source builds/upgrades in /usr/src don't prompt for a DESTDIR --