Date: Sat, 25 Jan 2025 18:50:49 +0100 From: Steffen Nurpmeso <steffen@sdaoden.eu> To: Florian Walpen <dev@submerge.ch> Cc: freebsd-current@freebsd.org, Gleb Smirnoff <glebius@freebsd.org>, bob prohaska <fbsd@www.zefox.net>, Warner Losh <imp@bsdimp.com> Subject: Re: /usr/src and /usr/ports not git directories ? Message-ID: <20250125175049.N9cIkQ__@steffen%sdaoden.eu> In-Reply-To: <4081188.p4y8TspHLy@z240> References: <Z4vk3009iSwuzG4K@www.zefox.net> <Z5GgSiETH9rwsMT6@cell.glebi.us> <8355934.G18vQ0XA4d@z240> <4081188.p4y8TspHLy@z240>
next in thread | previous in thread | raw e-mail | index | archive | help
Florian Walpen wrote in <4081188.p4y8TspHLy@z240>: |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: I *thought* the thing is also data reduction, you know. As in, if the source directory is simply tarballed, you have the full size but no git repository; if you want to update, you need to download the full new ball, even if the actual changes are only a few megabyte or so. (Or bsdiff(1)ed, but no such iirc.) If you have the git directory that it is, "fully" garbage collected, then this increases the size, but you can then simply update, merge --ff-only. But this is a large tarball. If you ship only the .git repository *without* a checkout, with a depth of 1, you get almost the same size as with the normal only-sources tarball, but you can use git to update very easily, with minimal bandwidth, you can use git to populate the complete history, etc. However, you need git to perform the initial checkout of the sources. git is large and git is not BSD/etc licensed. Thus: if you would have a minimal program that fetches the blob content out of a shallow, garbage-collected git clone, you have all the advantages, but none of the disadvantages. Problem is there is no such program. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | |In Fall and Winter, feel "The Dropbear Bard"s pint(er). | |The banded bear |without a care, |Banged on himself for e'er and e'er | |Farewell, dear collar bear
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20250125175049.N9cIkQ__>