From nobody Tue Jan 21 21:25:40 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 4Yd0d100rcz5lcbb for ; Tue, 21 Jan 2025 21:26:13 +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 4Yd0cy0pq8z3sQr for ; Tue, 21 Jan 2025 21:26:06 +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 50LLPtKD004866 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 21 Jan 2025 13:25:59 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.18.1/8.18.1/Submit) id 50LLPqao004865; Tue, 21 Jan 2025 13:25:52 -0800 (PST) (envelope-from fbsd) Date: Tue, 21 Jan 2025 13:25:40 -0800 From: bob prohaska To: Sulev-Madis Silber Cc: freebsd-current@freebsd.org Subject: Re: /usr/src and /usr/ports not git directories ? Message-ID: References: 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=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Yd0cy0pq8z3sQr 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:7065, ipnet:50.1.16.0/20, country:US] On Tue, Jan 21, 2025 at 10:35:18PM +0200, Sulev-Madis Silber wrote: > not shipping src in installer? what could possibly go wrong! > > i was just thinking of this the other day. that installers are self-contained packages that come with os and it's source... > > > There's no harm (and indeed, some good) in offering source code as a component of a new installation. What confused me was having that source code offered as a dead end. After a little poking around it's clear that including /usr/src/.git would have added close to to 2 GB to the size of the installer. Perhaps not unacceptable, but surely undesirable. Maybe that's reason enough for present practice of installing a dead /usr/src.. As a matter of naive curiosity, could one efficiently update /usr/src using something like sftp -ar ? It wouldn't preserve the revision detail git does, but seemingly it would download modified files while saving for re-use those that haven't changed. For users who don't make local mods it might be sufficient. > On January 21, 2025 10:09:43 PM GMT+02:00, Gleb Smirnoff wrote: > ... > >I think that /usr/src and /usr/ports as part of FreeBSD release > >distribution should just go away. But we should provide a one liner > >command to get them in a proper way (shallow git checkout). > > Do you mean have the "install src" checkbox invoke git clone? That seems like a better idea, at least to me. bob prohaska