Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2025 14:29:29 +0100
From:      Florian Walpen <dev@submerge.ch>
To:        freebsd-current@freebsd.org, Gleb Smirnoff <glebius@freebsd.org>
Cc:        bob prohaska <fbsd@www.zefox.net>, Warner Losh <imp@bsdimp.com>
Subject:   Re: /usr/src and /usr/ports not git directories ?
Message-ID:  <4081188.p4y8TspHLy@z240>
In-Reply-To: <8355934.G18vQ0XA4d@z240>
References:  <Z4vk3009iSwuzG4K@www.zefox.net> <Z5GgSiETH9rwsMT6@cell.glebi.us> <8355934.G18vQ0XA4d@z240>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, January 23, 2025 4:38:16 AM CET Florian Walpen wrote:
> Installing the src tree as a non-git snapshot is useless for developers and
> people that update through src builds, I agree with that. My take is that
> installing the src tree is optional, giving a hint in the installer should
> be enough. There will be secondary steps anyway in this scenario, like
> installing the git executable and updating the src tree. As stated, we
> could simplify the post-install repo cloning through a Makefile.

FWIW, I found the /usr/Makefile that is part of DragonflyBSD here:

https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/etc/Makefile.usr

It provides simple targets to clone and update the src and port trees, shallow 
or full, plus some error handling. I'm sure we could also tailor it to our 
needs, e.g. track the git branch matching our installed system. Purely 
convenience, but it may save you from typing in those git commands / repo 
addresses you looked up on your smartphone.

> But I don't agree about the static src tree being useless for people that do
> binary updates, there are good reasons to build from ports. Also I would
> imagine it simplifies the installation of poudriere jails.

Just an idea, given the different use cases: Drop or discourage the 
installation of src tree for STABLE and CURRENT installation media only. 
There's no binary updates for these and they would require a proper git src 
tree for updates. Maybe ask bdrewery@ first concerning poudriere before 
completely dropping it.

Regards,

Flo





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4081188.p4y8TspHLy>