Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2025 08:59:36 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        John Baldwin <jhb@freebsd.org>, src-committers <src-committers@freebsd.org>,  "<dev-commits-src-all@freebsd.org>" <dev-commits-src-all@freebsd.org>,  "<dev-commits-src-main@freebsd.org>" <dev-commits-src-main@freebsd.org>
Subject:   Re: git: 74a6bb524e5b - main - Makefile: Don't allow install{world,kernel} with pkgbase
Message-ID:  <CANCZdfoJSHrOWX%2BuZeFT6_UwfFi4yv8h%2BeKY9nUfB0oeHYQNPg@mail.gmail.com>
In-Reply-To: <aPZKLa0kTvovlqMP@amaryllis.le-fay.org>
References:  <202510171914.59HJE0uo036247@gitrepo.freebsd.org> <228220a0-c819-4c51-92d3-5357e925c81d@FreeBSD.org> <aPZKLa0kTvovlqMP@amaryllis.le-fay.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Mon, Oct 20, 2025, 8:42 AM Lexi Winter <ivy@freebsd.org> wrote:

> John Baldwin wrote in <228220a0-c819-4c51-92d3-5357e925c81d@FreeBSD.org>:
> > On 10/17/25 15:14, Lexi Winter wrote:
> > >      Makefile: Don't allow install{world,kernel} with pkgbase
> >
> > Can we document how users who want to build from source can do so from a
> new installation
> > that uses pkgbase?  I guess it is something like:
> >
> > - pkg install sources if not already (or git clone the right branch/tag)
> > - etcupdate bootstrap
> > - <destroy the pkgbase repo> (clearly can't just use pkg delete with a
> glob, so need
> >   something else)
>
> this should eventually be in the Handbook.


Install* should eventually just do the right thing like ports: stage the
packages, make the packages and the install from the packages.  16 time
frame, though.

Warner

i'm not sure what the current
> state of that documentation is right now, but i know there are at least
> some important bits missing, probably including this.
>
> for 15.0, you should simply not use pkgbase to install the new system,
> since dists are still supported.  if you *have* to use pkgbase, e.g.
> you're using media that doesn't include dist sets and can't do an online
> installation, then you can delete /var/db/pkg immediately after booting
> into the new system, before installing any ports.  the system will then
> be more-or-less identical to one installed from dist sets, so you can
> follow the usual instructions for updating from source.
>
> for 16.0, the plan is to remove support for dist sets from the release
> media[0], so we'll probably want a way to do this automatically in the
> installer.  that's TBD, but i'm planning on doing some work on this part
> of the release media once 15.0-RELEASE is out.  (right now, we want to
> minimise differences between main and releng/15.0 for release.)
>
> [0] dist sets will still be supported for downstream consumers, but they
> won't be an installation option for FreeBSD.
>

[-- Attachment #2 --]
<div dir="auto"><div><br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Oct 20, 2025, 8:42 AM Lexi Winter &lt;<a href="mailto:ivy@freebsd.org">ivy@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">John Baldwin wrote in &lt;228220a0-c819-4c51-92d3-5357e925c81d@FreeBSD.org&gt;:<br>
&gt; On 10/17/25 15:14, Lexi Winter wrote:<br>
&gt; &gt;      Makefile: Don&#39;t allow install{world,kernel} with pkgbase<br>
&gt; <br>
&gt; Can we document how users who want to build from source can do so from a new installation<br>
&gt; that uses pkgbase?  I guess it is something like:<br>
&gt; <br>
&gt; - pkg install sources if not already (or git clone the right branch/tag)<br>
&gt; - etcupdate bootstrap<br>
&gt; - &lt;destroy the pkgbase repo&gt; (clearly can&#39;t just use pkg delete with a glob, so need<br>
&gt;   something else)<br>
<br>
this should eventually be in the Handbook. </blockquote></div></div><div dir="auto"><br></div><div dir="auto">Install* should eventually just do the right thing like ports: stage the packages, make the packages and the install from the packages.  16 time frame, though.</div><div dir="auto"><br></div><div dir="auto">Warner</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> i&#39;m not sure what the current<br>
state of that documentation is right now, but i know there are at least<br>
some important bits missing, probably including this.<br>
<br>
for 15.0, you should simply not use pkgbase to install the new system,<br>
since dists are still supported.  if you *have* to use pkgbase, e.g.<br>
you&#39;re using media that doesn&#39;t include dist sets and can&#39;t do an online<br>
installation, then you can delete /var/db/pkg immediately after booting<br>
into the new system, before installing any ports.  the system will then<br>
be more-or-less identical to one installed from dist sets, so you can<br>
follow the usual instructions for updating from source.<br>
<br>
for 16.0, the plan is to remove support for dist sets from the release<br>
media[0], so we&#39;ll probably want a way to do this automatically in the<br>
installer.  that&#39;s TBD, but i&#39;m planning on doing some work on this part<br>
of the release media once 15.0-RELEASE is out.  (right now, we want to<br>
minimise differences between main and releng/15.0 for release.)<br>
<br>
[0] dist sets will still be supported for downstream consumers, but they<br>
won&#39;t be an installation option for FreeBSD.<br>
</blockquote></div></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoJSHrOWX%2BuZeFT6_UwfFi4yv8h%2BeKY9nUfB0oeHYQNPg>