From nobody Thu Aug 21 01:10:43 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 4c6lbk24xgz65WB0 for ; Thu, 21 Aug 2025 01:09:54 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pelorus.zefox.org", Issuer "pelorus.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c6lbj4nhxz46cs; Thu, 21 Aug 2025 01:09:53 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.18.1/8.18.1) with ESMTPS id 57L1AhZG058160 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 20 Aug 2025 18:10:43 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.18.1/8.18.1/Submit) id 57L1AhES058159; Wed, 20 Aug 2025 18:10:43 -0700 (PDT) (envelope-from fbsd) Date: Wed, 20 Aug 2025 18:10:43 -0700 From: bob prohaska To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Cc: Marcin Cieslak , freebsd-current@freebsd.org Subject: Re: uname -v does not report an n-number Message-ID: References: <8sr90302-s4s0-1nr6-p9o7-2p9rs5n1s7or@fncre.vasb> <86349liv2l.fsf@ltc.des.dev> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86349liv2l.fsf@ltc.des.dev> X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c6lbj4nhxz46cs On Wed, Aug 20, 2025 at 10:42:26PM +0200, Dag-Erling Smørgrav wrote: > bob prohaska writes: > > [...] IIRC it's possible to "set a depth", could it be set to some > > small number, like 1, 2 or maybe 3, so I get the N-number without all > > the baggage? > > What you call “the N-number” is literally the depth of your repository. > If you clone with --depth=5 then it will show up as 5. You can test it > yourself with `git rev-list --first-parent --count HEAD`. I was thinking it could be computed from the master repository, since I'm making no local changes to /usr/src. > > A full clone is less than 3 GB, though, and if you're on ZFS, you can > save quite a bit by making /usr/src and /usr/obj separate datasets and > turning on compression. > Right now /usr/src is a little over 3 GB. The machine could still function if /usr/src grew to 6 or 7 GB. Right now a Pi4 running -current is only using a little under 4 GB. That could be lived with. It looks like git pull --unshallow will bring in what's missing, will it give me a sensible n-number? Thanks very much for writing! bob prohaska .