Re: /usr/src and /usr/ports not git directories ?

From: Tomek CEDRO <tomek_at_cedro.info>
Date: Tue, 21 Jan 2025 21:14:52 UTC
On Tue, Jan 21, 2025 at 9:09 PM Gleb Smirnoff wrote:
> On Sat, Jan 18, 2025 at 09:29:03AM -0800, bob prohaska wrote:
> b> (..)
> b> The most visible problem is lack of a /usr/src/.git directory. Can
> b> the existing src and ports directories be salvaged?
> (..)
> I think that /usr/src and /usr/ports as part of FreeBSD release
> distribution should just go away.  But we should provide a one liner
> command to get them in a proper way (shallow git checkout).

I fully disagree with removing src and ports snapshots from the
release images :-) There are minimal images that does not have them
too. Installer gives you option not to install src and ports. So what
is the problem? src and ports are the integral part of the release so
you don't have to use it but for sure there will be an occasion where
you really need to have the offline version :-)

I build lots of packages and tools and project mostly from sources so
this part is really important for me and probably for many more people
that use FreeBSD as development workstation. But, its is true that I
use git repo clones in /usr/src and /usr/ports. So the installer may
ask user if they want to use packaged snapshots of  src and ports or
if they want so clone them from git or at least setup the git clone to
be fetched at later times. Maybe a dedicated command for this purpose
is a good idea too!

But its good to have choice. Some situations may require offline
snapshot. Some situations prefer git clone :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info