From nobody Wed Jan 22 21:31:56 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 4YdcjN70Dwz5l5fV for ; Wed, 22 Jan 2025 21:32:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YdcjN5Nr4z3Q4W for ; Wed, 22 Jan 2025 21:32:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-2ee67e9287fso526998a91.0 for ; Wed, 22 Jan 2025 13:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1737581527; x=1738186327; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZePpctQzr/PEOcSRb4ML1i8AEIdVF/ITOY/gux+602g=; b=Z4SxZsuPyo9ikAkfWasvBPmR3IFailAf3CD+9syszIUnFpg4ZSTDbQOkdRR+POIzrt ZcBI9pyolX//vOAO5Sx72/WeRHdJlDnCxBnfJeKwumf1qBXiy29Ni21nrfI1XnjZa+2T F9KoASImoCxxC7XEdpglLKjC4W44mZFrUYmiks/gj0jFmthHSR5ArLpZgUcWRZl9wsrW Y9YUiy5dlryef4QHtX6NRGQyw1Y6rmkRr42k+49oOcqZdI9ABiLtONGv84DmHg03egQm 5msgA08hWBTQ9nBKAzX5uXCy+fi29PPckQU87iDaciduk4s4DkrDY2cqPohtV1bjwmpc lUWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737581527; x=1738186327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZePpctQzr/PEOcSRb4ML1i8AEIdVF/ITOY/gux+602g=; b=o3duk2D9EN0+LsHg272Xlb95mgRZsKgbK8twKpNmMH3VCtIsGJfzBebDq2JvLsQraQ w1Hxj59Nly6IMENaRmWxkZJLAPLQJvPJShgou/kCgMTmSzAzYw5a8KRHkKtfEgGINNpl 2nc0Ow9gdLUvKCF3ySmy4HxKs4HlMHeO3Gusz+aJtBAgI+tqR6UmhnMzz36grPwT17rr DxbldxU4fvok7OX5I1nLzqCq+jXQC1elZ+nKZHfxktJY2yBzMzMmvYJfyL0+4UpfUFxB cNj5PthHcws75+kPbPzt0PkBDKXgi6+zIeJi/ozlFKKRsFnNHsZNw0In/FxNk6fwvb+l R84g== X-Forwarded-Encrypted: i=1; AJvYcCVz7R/0f/T6wPW5Z+70Fx6GRQ+Nz1AOJlIOui7bHLUYsP22O8N0T+bY0M7wArwWskZrTG0S0oilOhfWeTavPM8=@freebsd.org X-Gm-Message-State: AOJu0YwJajBWpFwWLymQ9fnHCx0Wihgnd2UXREOu3PHUyrGw0nVo/uaS NkqFtyhP9VwqxmOBOgluclU4IxAB3jLFdgtZVFElzsam8mQmti5nKKgjeMUKBgJ/5EaFypuqJCd 9gH4EOulW+V7g9W88KLF+O5DVHcUuVY3DVNTrqn3qTk3mQ5QpTGs= X-Gm-Gg: ASbGnctDujwuJhoAhSfAZ4OHeuUxN6y6gHFLBhDnIp+EAs9GHipHcrKzHIxgNOUNjf8 K3tZHFeFXV5R/KvE8oi67USpYB4BT0GT7t6GsUSgol3zTPyJ9sJBSZPYIoioTXi3XsztMW7aaWB EqXqzeTQ== X-Google-Smtp-Source: AGHT+IEw5ySzbueUNA+dNplEC1mOClcsk87hvqldtTZ24POnzDFoIF40nM/K0z5BzZ9aHBEQK43wITqU1ZQPUoA7NdQ= X-Received: by 2002:a05:6a00:17a7:b0:725:eb85:f7ef with SMTP id d2e1a72fcca58-72dafa10944mr33562899b3a.14.1737581527359; Wed, 22 Jan 2025 13:32:07 -0800 (PST) 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 References: <3782b90b-850f-4435-8b6d-bdb83753daea@app.fastmail.com> In-Reply-To: From: Warner Losh Date: Wed, 22 Jan 2025 14:31:56 -0700 X-Gm-Features: AbW1kvYUTogwgK1JOfUr1l0cJpUqyt91fIwFwnW44aQyZ7yAXZaaTcIsuL6k2us Message-ID: Subject: Re: /usr/src and /usr/ports not git directories ? To: Tomek CEDRO Cc: Gleb Smirnoff , Dave Cottlehuber , bob prohaska , Sulev-Madis Silber , freebsd-current Content-Type: multipart/alternative; boundary="000000000000b4fedb062c52393a" X-Rspamd-Queue-Id: 4YdcjN5Nr4z3Q4W 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:15169, ipnet:2607:f8b0::/32, country:US] --000000000000b4fedb062c52393a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 22, 2025, 2:11=E2=80=AFPM Tomek CEDRO wrote: > On Wed, Jan 22, 2025 at 5:49=E2=80=AFPM Gleb Smirnoff wrote: > > 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 > > W> > > W> which could be done with the pkg file when extracting to /usr/src. > I've not > > W> measured > > W> ports. > > > > I really like this plan. So before checkout .git is 337M and after > checkout > > it is 975M, which is made by actual sources + .git. > > > > Let's go forward with shipping this bare clone + optional checkout for > > 15.0-RELEASE. We can ask if user wants to do the checkout, or just kee= p > > /usr/src/.git during the install process. For upgrades, we will just > > write new full /usr/src that includes .git on top of 14.x-RELEASE. That > > will consume +50% more space on upgraded installations. I'm pretty sur= e > > this is fine for those people who do install /usr/src, they already ain= 't > > doing a minimal installation. We will also put this in RELNOTES. > > Very cool, thanks folks! :-) > > One question, would that imply git in base? :-) > Imply? No. Warner --=20 > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > --000000000000b4fedb062c52393a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Jan 22, 2025, 2:11=E2=80= =AFPM Tomek CEDRO <tomek@cedro.info<= /a>> wrote:
On Wed, Jan 22, 2025= at 5:49=E2=80=AFPM Gleb Smirnoff <glebius@freebsd.org> wrote: > 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/f= reebsd-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=C2=A0 say. That c= an then be extracted
> W> and then you can recover the tree with:
> W>
> W> % git checkout releng/14.2
> W>
> W> which could be done with the pkg file when extracting to /usr/sr= c. I've not
> W> measured
> W> ports.
>
> I really like this plan. So before checkout .git is 337M and after che= ckout
> it is 975M, which is made by actual sources + .git.
>
> Let's go forward with shipping this bare clone + optional checkout= for
> 15.0-RELEASE.=C2=A0 We can ask if user wants to do the checkout, or ju= st keep
> /usr/src/.git during the install process.=C2=A0 For upgrades, we will = just
> write new full /usr/src that includes .git on top of 14.x-RELEASE. Tha= t
> will consume +50% more space on upgraded installations.=C2=A0 I'm = pretty sure
> this is fine for those people who do install /usr/src, they already ai= n't
> doing a minimal installation.=C2=A0 We will also put this in RELNOTES.=

Very cool, thanks folks! :-)

One question, would that imply git in base? :-)

Imply? No.

Warner

<= div dir=3D"auto">
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
--000000000000b4fedb062c52393a--