From nobody Fri Jan 24 13:29:29 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 4Yfdvh5TKfz5lQBt for ; Fri, 24 Jan 2025 13:29:36 +0000 (UTC) (envelope-from dev@submerge.ch) Received: from gozo.iway.ch (gozo.iway.ch [IPv6:2001:8e0:40:325::36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yfdvf6Clpz3LlZ; Fri, 24 Jan 2025 13:29:34 +0000 (UTC) (envelope-from dev@submerge.ch) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of dev@submerge.ch designates 2001:8e0:40:325::36 as permitted sender) smtp.mailfrom=dev@submerge.ch; dmarc=none Received: from gozo.iway.ch (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id F27FB3405DE; Fri, 24 Jan 2025 14:29:30 +0100 (CET) X-Iway-Path: 0 Received: from localhost (localhost [127.0.0.1]) by localhost (ACF/14218.15961); Fri, 24 Jan 2025 14:29:30 +0100 (CET) Received: from interway.li (sendai-nord.iway.ch [212.25.24.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gozo.iway.ch (Postfix) with ESMTPS; Fri, 24 Jan 2025 14:29:29 +0100 (CET) Received: from [145.40.196.39] (account fw@submerge.ch HELO z240.localnet) by sendai-nord.interway.li (CommuniGate Pro SMTP 7.1.0) with ESMTPSA id 277498282; Fri, 24 Jan 2025 14:29:29 +0100 From: Florian Walpen To: freebsd-current@freebsd.org, Gleb Smirnoff Cc: bob prohaska , Warner Losh Subject: Re: /usr/src and /usr/ports not git directories ? Date: Fri, 24 Jan 2025 14:29:29 +0100 Message-ID: <4081188.p4y8TspHLy@z240> In-Reply-To: <8355934.G18vQ0XA4d@z240> References: <8355934.G18vQ0XA4d@z240> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spamd-Result: default: False [-1.40 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.967]; NEURAL_HAM_MEDIUM(-0.94)[-0.936]; CTE_CASE(0.50)[]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:8e0::/32]; RCVD_IN_DNSWL_LOW(-0.20)[2001:8e0:40:325::36:from,212.25.24.38:received]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_ALL(0.00)[]; RECEIVED_HELO_LOCALHOST(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[submerge.ch]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8758, ipnet:2001:8e0::/32, country:CH]; TO_DN_SOME(0.00)[] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4Yfdvf6Clpz3LlZ On Thursday, January 23, 2025 4:38:16 AM CET Florian Walpen wrote: > Installing the src tree as a non-git snapshot is useless for developers and > people that update through src builds, I agree with that. My take is that > installing the src tree is optional, giving a hint in the installer should > be enough. There will be secondary steps anyway in this scenario, like > installing the git executable and updating the src tree. As stated, we > could simplify the post-install repo cloning through a Makefile. FWIW, I found the /usr/Makefile that is part of DragonflyBSD here: https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/etc/Makefile.usr It provides simple targets to clone and update the src and port trees, shallow or full, plus some error handling. I'm sure we could also tailor it to our needs, e.g. track the git branch matching our installed system. Purely convenience, but it may save you from typing in those git commands / repo addresses you looked up on your smartphone. > But I don't agree about the static src tree being useless for people that do > binary updates, there are good reasons to build from ports. Also I would > imagine it simplifies the installation of poudriere jails. Just an idea, given the different use cases: Drop or discourage the installation of src tree for STABLE and CURRENT installation media only. There's no binary updates for these and they would require a proper git src tree for updates. Maybe ask bdrewery@ first concerning poudriere before completely dropping it. Regards, Flo