From nobody Thu Jan 23 05:37:21 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YdqTR2swHz5lf8M for ; Thu, 23 Jan 2025 05:37:31 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YdqTQ6wN0z3Lxs; Thu, 23 Jan 2025 05:37:30 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sdaoden.eu; s=citron; t=1737610642; x=1738277308; h=date:author:from:to:cc:subject: message-id:in-reply-to:references:mail-followup-to:openpgp:blahblahblah: mime-version:content-type:content-transfer-encoding:author:from:subject: date:to:cc:resent-author:resent-date:resent-from:resent-sender:resent-to: resent-cc:resent-reply-to:resent-message-id:in-reply-to:references: mime-version:content-type:content-transfer-encoding:content-disposition: content-id:content-description:message-id:mail-followup-to:openpgp: blahblahblah; bh=37kCm1yFvV4+qtQkvGwyiMS02BmVOaLC7L0mvYZq9C8=; b=bHzKoHwP7sqzI7zQMVfOlpYuERuzeodhWyVW2guY8LuvPlbfyQioTtEP7wFLCxO77MW+GaOC FNLQnVgrKn4l1ctzH1pdRMy9CCEQnS2FtxfEXNvZl3S/2YR7skth3qJpr0HLcNV+IpmLVixksW W3bdX/fknoxAWmFJVO+tBcakourCBb8L6W9cRvpQtIqBwm1f1pYWfdJps9AzwmWAXt/eTJETUj T3HEIJ+iuKoh/U+ECZQK2dWNoXCR8yRUugqzkBwylIxYr7WJ2LcCeWapqjORUI5XwUYZ0/im83 nLwJ1WqB6rLw+lqPI1r6/dPwT6ZmwmR84j0l73Bj7gwcyYFg== DKIM-Signature: v=1; a=adaed25519-sha256; c=relaxed/relaxed; d=sdaoden.eu; s=orange; t=1737610642; x=1738277308; h=date:author:from:to:cc:subject: message-id:in-reply-to:references:mail-followup-to:openpgp:blahblahblah: mime-version:content-type:content-transfer-encoding:author:from:subject: date:to:cc:resent-author:resent-date:resent-from:resent-sender:resent-to: resent-cc:resent-reply-to:resent-message-id:in-reply-to:references: mime-version:content-type:content-transfer-encoding:content-disposition: content-id:content-description:message-id:mail-followup-to:openpgp: blahblahblah; bh=37kCm1yFvV4+qtQkvGwyiMS02BmVOaLC7L0mvYZq9C8=; b=TGCe95ClM+mizAuEL9+mkh/9m0VMYLAbwP8OVusRJt6yYyQwAMAl53hIA9QxZMzbV3orK5nV pu8JqXjvCoB5CQ== Date: Thu, 23 Jan 2025 06:37:21 +0100 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: Tomoaki AOKI Cc: Warner Losh , Tomek CEDRO , Gleb Smirnoff , Dave Cottlehuber , bob prohaska , Sulev-Madis Silber , freebsd-current , 9fans@9fans.net Subject: Re: /usr/src and /usr/ports not git directories ? Message-ID: <20250123053721.KDVDBu1z@steffen%sdaoden.eu> In-Reply-To: <20250123074932.170b7959bca443a934599a9c@dec.sakura.ne.jp> References: <3782b90b-850f-4435-8b6d-bdb83753daea@app.fastmail.com> <20250123074050.d9e331172e6b2f9dbc8b8dfd@dec.sakura.ne.jp> <20250123074932.170b7959bca443a934599a9c@dec.sakura.ne.jp> Mail-Followup-To: Tomoaki AOKI , Warner Losh , Tomek CEDRO , Gleb Smirnoff , Dave Cottlehuber , bob prohaska , Sulev-Madis Silber , freebsd-current , 9fans@9fans.net User-Agent: s-nail v14.9.25-637-gb6804e05e6-dirty OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4YdqTQ6wN0z3Lxs X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15987, ipnet:217.144.128.0/20, country:DE] Tomoaki AOKI wrote in <20250123074932.170b7959bca443a934599a9c@dec.sakura.ne.jp>: |On Thu, 23 Jan 2025 07:40:50 +0900 |Tomoaki AOKI wrote: |> On Wed, 22 Jan 2025 14:31:56 -0700 |> Warner Losh wrote: |>> On Wed, Jan 22, 2025, 2:11=E2=80=AFPM Tomek CEDRO w= rote: |>>> On Wed, Jan 22, 2025 at 5:49=E2=80=AFPM Gleb Smirnoff \ |>>>> On Wed, Jan 22, 2025 at 09:30:09AM -0700, Warner Losh wrote: |>>>> W> I think what you want is |>>>> W> |>>>> W> % git clone https://github.com/freebsd/freebsd-src --depth=3D1 -b |>>> releng/14.2 |>>>> W> --single-branch fred --bare |>>>> W> % cd fred |>>>> W> % mkdir .git |>>>> W> % mv * .git |>>>> W> % git config --local core.bare false |>>>> W> |>>>> W> This will clone 1 deep into the directory 'fred' and won't \ |>>>> checkout a |>>> copy. |>>>> W> If |>>>> W> we make this a package, it's 325MB, as you say. That can then be |>>> extracted |>>>> W> and then you can recover the tree with: |>>>> W> |>>>> W> % git checkout releng/14.2 ... |>>>> I really like this plan. So before checkout .git is 337M and after |>>> checkout |>>>> it is 975M, which is made by actual sources + .git. ... |>>> One question, would that imply git in base? :-) |>>=20 |>> Imply? No. ... |> Can it be achieved by net/gitup, which is BSD2CLAUSE licensed? |> If yes, is there any plan to pull it into base? |>=20 |> I've never tried it, as I'm not enouch sure it works sanely with local |> deep-cloned repo, even on stepping back to normal git. | |Unfortunately, found that gitup states NOT to work with the existense |of.git directory. Not sure how the future plan (if FreeBSD starts |including .git for src and ports packages). | | https://github.com/johnmehr/gitup?tab=3Dreadme-ov-file I have not looked for years, but basically it was a tree object, and then getting the blobs of all the entries of that, at a specific revision. The Plan9/9front people have -- btw -- created a Plan9-style interface to git, which is funny it seems (filesystem plus minimal programs using that, most are rc shell scripts. I track their repo via "normal" git (git://git.9front.org/plan9front/plan9front) without problems since June 2021 says the file system. What i mean seems to be that these guys already have the knowledge how to access the object database without any fancy and featureful and fat environment, so if FreeBSD would do that then possibly a simple from scratch checkout -- and nothing else -- would be possible with only shell tools and a small binary that fetches the blobs? Maybe even only possible with a very specific tree, you know? As in a readily prepared recipe (could be compressed and reside in the .git directory) that can be walked by the shell script(s) and accessed by the super minimal blob fetcher? They are using a *terrible* email hoster for their list which doesn not support VERP and thus plays very badly with greylisting and sender address verification, and that such a small project with so few resources, for nothing, that is. Let me copy 9fans, what do you say? --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