Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Oct 2025 10:48:33 +0200
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Cy Schubert <Cy.Schubert@cschubert.com>, stable@freebsd.org, current@freebsd.org, cperciva@freebsd.org
Subject:   Re: disallowing 'make installworld' with pkgbase
Message-ID:  <ebb10c37-edea-408b-af5c-986f930e260e@klop.ws>
In-Reply-To: <20251006221544.613E19E@slippy.cwsent.com>
References:  <aOMjZdiJk5RisKyI@amaryllis.le-fay.org> <20251006221544.613E19E@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Op 07-10-2025 om 00:15 schreef Cy Schubert:
> In message <aOMjZdiJk5RisKyI@amaryllis.le-fay.org>, Lexi Winter writes:
>>
>> --E6aI5jKH+dHsJ3L/
>> Content-Type: text/plain; charset=us-ascii
>> Content-Disposition: inline
>>
>> hello,
>>
>> in 15.0 we will ship pkgbase as an alternative to the dist sets for base
>> system installation.  pkgbase is entirely optional and for at least 15.0,
>> we will continue to support dist set installation with freebsd-update.
>>
>> the traditional source update method, using make buildworld installworld,
>> will be supported indefinitely and there are no plans to remove this even
>> after dist sets and freebsd-update are dropped.
>>
>> however, while both update methods will be supported individually, they
>> cannot be used together, i.e., if you installed the system with pkgbase,
>> you should not attempt to update it using "make installworld" because
>> this will cause the installed system to become out of sync with the
>> pkg(8) database.
>>
>> instead, you have two options: update with "make buildworld packages"
>> and pkg-upgrade(8), or depkgbasify the system and then update using
>> make installworld as usual.  either of those options is fully supported,
>> but you have to choose one of them to avoid breaking your system later.
>>
>> (the procedure to "depkgbasify the system" is not entirely clear yet,
>> but we will need something like this at least for 16.0, so there will
>> be some way to do that.)
>>
>> all of this preamble is to be as clear as possible that the review i'm
>> about to link is *not* about removing support for 'make installworld'
>> (we aren't going to do that) and does not prevent you from doing anything
>> you currently do.  with that in mind, i would like to land this for 15.0:
>>
>> "Makefile: Don't allow install{world,kernel} with pkgbase"
>> https://reviews.freebsd.org/D52879
>>
>> the point of this change is to avoid the situation where a user installs
>> 15.0 with pkgbase, then tries to upgrade using 'make installworld' out
>> of habit, not realising that this will break their system.  users who
>> are really sure they want to do this still can using DESTDIR=/, and
>> users who don't use pkgbase are completely unaffected by this change.
>>
>> so, if anyone has an objection to this change, please say so.
> 
> How would one go about installing a new system from ISO. Then proceed to
> maintain it using installworld if the only supported new install is pkgbase?
> 
> Second question: How would one go about converting an existing system to
> pkgbase?
> 
> 


Hi,

I read about pkgbasify.
https://github.com/FreeBSDFoundation/pkgbasify

Ironically I can't find it in the ports tree.

Regards,
Ronald.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ebb10c37-edea-408b-af5c-986f930e260e>