Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2025 10:33:55 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        Lexi Winter <ivy@FreeBSD.org>, src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 74a6bb524e5b - main - Makefile: Don't allow install{world,kernel} with pkgbase
Message-ID:  <228220a0-c819-4c51-92d3-5357e925c81d@FreeBSD.org>
In-Reply-To: <202510171914.59HJE0uo036247@gitrepo.freebsd.org>

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

On 10/17/25 15:14, Lexi Winter wrote:
> The branch main has been updated by ivy:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=74a6bb524e5b9ad654a9acc5da5c195f406717b5
> 
> commit 74a6bb524e5b9ad654a9acc5da5c195f406717b5
> Author:     Lexi Winter <ivy@FreeBSD.org>
> AuthorDate: 2025-10-17 19:06:17 +0000
> Commit:     Lexi Winter <ivy@FreeBSD.org>
> CommitDate: 2025-10-17 19:13:13 +0000
> 
>      Makefile: Don't allow install{world,kernel} with pkgbase
>      
>      Using these targets on a pkgbase system will cause the installed system
>      to become out of sync with the package database, which is almost certain
>      to cause issues the next time pkg(8) is used.
>      
>      To prevent users doing this accidentally, disallow install* if we detect
>      that FreeBSD-runtime is installed in the target.  The check can be
>      overridden with DESTDIR=/ for users who are sure they want to do this.
>      
>      MFC after:      3 days
>      Reviewed by:    emaste
>      Sponsored by:   https://www.patreon.com/bsdivy
>      Differential Revision:  https://reviews.freebsd.org/D52879

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)

-- 
John Baldwin



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?228220a0-c819-4c51-92d3-5357e925c81d>