From nobody Wed Jan 22 21:11:23 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 4YdcFj6n99z5l4dY for ; Wed, 22 Jan 2025 21:11:37 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) (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 4YdcFj2M5lz3M2x for ; Wed, 22 Jan 2025 21:11:37 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-e39f43344c5so301323276.1 for ; Wed, 22 Jan 2025 13:11:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1737580296; x=1738185096; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2Zy63un47tdZTLObH5u66Kb21WU8Bi7QaUOymrpMt0Q=; b=aPKShrcaAkAt8wMtXQ7GT12eJ+ItSq6vEKCSCQYWGCrBTp/wHsec11/9K0lGb9wAFg WxSlqc8yBeCe63o/WhXI+XfdTPfyOCqAWGFGpF9yMo4AAgMNF+FK0M16fsa6EALK19j4 dHm1O5Y38KAzTJm1A1Vlx3x5BGiibUHaSF9C13ZmxWLk5Nvm/0siFUXd3LuaPeFeypG2 EQt61KwgkhG/M+NlTGtahuHAFyo5mwJ6fTblQ/7nQsZNOzzyS+CluxS8L08G7WyRCT8K 6ERnIZvirllm0RoeNWLXsMfTG2d+A2xE/feyl6VzxPYGAhb3LJNn8ZX302KHf8WYlLMW YIYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737580296; x=1738185096; h=content-transfer-encoding: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=2Zy63un47tdZTLObH5u66Kb21WU8Bi7QaUOymrpMt0Q=; b=l87EICwrooWtzsq3p0tjofc7bOenfQkUbPwTckyRztI4gZnUgO3nGr6HpPgMDYB8Rj TNSAA9wjnsZ70+AEE2PuPLrJaImgqg/ppBCRREmuUi8mqpC7u25MY+9pqnvhEUsf7PFx B4aR+g1cWmpzVl6kwJwlyhZKvjkeQam4E3xX3ogWS6fvECrtdEJOZ9JPW2Cyw/xB3RzI +xJQSIzBvosvEmzxSjYB0ggx7a5rjnUPCoqMZkRMEvxfSwhZsDl5zDh7AlBUoBowNFLh 5tdqOjLPO991mUqexpN7Sf42aSbhkPrcfnTtj3Sj1LWMBuC0TDjqqyg+t6oSPbJR9GlF vKZA== X-Forwarded-Encrypted: i=1; AJvYcCWojs9ck88xlm3UjyW1BFNi3L5PrCoZw6/3Asc0Og6j4JYGD4QrGBvV8ZbqQ9O+XBPDEPnUhZLjygkcHip49aM=@freebsd.org X-Gm-Message-State: AOJu0Yx0jj1R+5S35ZnZdgINMVKp4h1c93BgFt+shmc8WCU4N3LkXes0 Hk2+SIOvIaxYhXDOJaw0VYXspF1YRDrWLkQbFAvtVl96qYd1n6yMAJ2eG0tFkg== X-Gm-Gg: ASbGncudgHSBQq6KqHuKZqM6kfzIEEBX8EzlqIfqX53vpvmuvHzS1DQ09+xGvGe+2Lc qNZg+8E97vjOMV0Wctd2QxQE8LpASrSh4j8ZLzTsPHOq4PiSTBK58+a9q0RN32aSbpJHgfveZgc tYyrsflUSs6uk6Rd2jvrhwR318Mn+6/595y1CsQqBxCp8r2DSlMSmsw2lwRfluR8nCv+dBwRRxi NjTqU5KyJckMKRFahtdX5zTC83llUjo34Aw7H7F1HngP2+YJFU4pl7M/xIaEoWQ1UGEkwqPhmVY 7xfX6QER1KlNF+LQqVBtagcU43i/c7c= X-Google-Smtp-Source: AGHT+IF6+uQSmEbV7bBE3gOiGsXuLAszrVeCz5PKGrVGlzCJkummCoSjZWF7gLMeNJG+udYx9ufJrw== X-Received: by 2002:a05:690c:7091:b0:6ef:8177:c322 with SMTP id 00721157ae682-6f6eb67caa9mr179727887b3.13.1737580296108; Wed, 22 Jan 2025 13:11:36 -0800 (PST) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com. [209.85.219.169]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6f6e63fd44bsm22030407b3.34.2025.01.22.13.11.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jan 2025 13:11:35 -0800 (PST) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-e5447fae695so348377276.2; Wed, 22 Jan 2025 13:11:35 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXOediieuCORnyv2O/XttpfMAswXEjJlGkHtC8U/rlCxks6VNHgHQVhLPNQ3NIhGvLZNi8eAHKpOlm3wemcJzs=@freebsd.org X-Received: by 2002:a25:a3a3:0:b0:e57:caaa:fe60 with SMTP id 3f1490d57ef6-e57caaaff6dmr10310618276.30.1737580294559; Wed, 22 Jan 2025 13:11:34 -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: Tomek CEDRO Date: Wed, 22 Jan 2025 22:11:23 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AbW1kvbWt_QvOydyKJrvM83-QRMQRNMgQunGz3KYwS6Psev3MloaKU_KsOD_dpE Message-ID: Subject: Re: /usr/src and /usr/ports not git directories ? To: Gleb Smirnoff Cc: Warner Losh , Dave Cottlehuber , bob prohaska , Sulev-Madis Silber , freebsd-current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4YdcFj2M5lz3M2x 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] 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 rele= ng/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 extr= acted > 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'v= e not > W> measured > W> ports. > > I really like this plan. So before checkout .git is 337M and after checko= ut > 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 keep > /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 sure > 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? :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info