From nobody Fri Jan 24 03:52:53 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 4YfP6W64sKz5lvJR for ; Fri, 24 Jan 2025 03:53:07 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) (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 4YfP6W2Dwrz3DLf for ; Fri, 24 Jan 2025 03:53:07 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-2161a4f86a3so3270615ad.1 for ; Thu, 23 Jan 2025 19:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay.org; s=google; t=1737690785; x=1738295585; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CnKJyil8v+QDyuxX6aPEavpxaI8IWV1Fq2Y+iVf3G1k=; b=FBnJpBn39Mc1iCafd4afM4PelYd1mT7TjNCEi5wwsf5+xt4mXbc+Fhj9ojUw3+EdeJ zSJ3/dwGv+52l1DUcM/LGYjJ2CM9nVTMXQ4rzGmxwP2H/rqsi8GDENMNh1WB5j7u+pP4 gEKlofCDqSDHlMRvVE3T+W/1IrRY4HDisCZek= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737690785; x=1738295585; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CnKJyil8v+QDyuxX6aPEavpxaI8IWV1Fq2Y+iVf3G1k=; b=JVo61a53CSPPV99Zeh4po31L7Ue9UAcciGPZ0EyKV1xJh4rDC6rTZctQLpbf6jFpis 60Bd1FvZIVNEjCMcAcf5ap5A5yczrhrfimZdkiR2no+N2lliRmuNiRud4C+i/Qg9hPwP eMVqiexvCnKNsKW13CL1h5RcN1vJitqn6TCVEyXUA/9sx2aObQIiyQvfr5wcVSjRSDZI i24kKN35hlrxpEz/w8sIpeNu9Ra8yIT0vk6AZ/Gu6RSPWq0YS2m3gA49s5tEX2fiJv3p xynw3VAtxRbytfP1QfsAAK5hizQNKp69psr2xXkWLWwpiael/dcwFlYwlHyEHHVCr3xc guYQ== X-Gm-Message-State: AOJu0YwSg9ipoXQWxZ213eR3F5gW18vdBK4ENkF/UGl+0n7je9ZZ8NES 3ioPFllK954oiFxIg13Dx92sGk89O2bsQ+24k4LXBiOtovDgumHiriQRZ1uP3qw9dOibVjLEOI4 = X-Gm-Gg: ASbGnctcfGMRnwdAtDppTrYU8famGovgP8jD9eAxWU2/swptDIMXJAH6QpBRUTOScg5 6vkq0J/cttzt55OL4cfqpGGCC63Kex71cQZ3HxhqgxTPR5GxFag/bYxCUf/JK09QDCkOKJIZZFS SVetmFHvYqL2lOKxl5Yoo8RUhlYmrFuQrnEV/n/Zt5s6J3oAqSY12ztl5qxc7FzYweuQHq0IF/u jzbmhCrOmTN1qpHBnILxb7zQpqYso/fUZ4X4uPAty1SusAdHNcTmrl0oYPH3y04ssXmeVPj2WeL 71qlIHendl6nHu+P2j2fxPYcOsoQX+6YQglPnAsjqHFWebmxGosuTzSsoxeuY+SGtkycLnGyIGQ eSA== X-Google-Smtp-Source: AGHT+IFTqi7mPilc3Bj0h3njU3Ss74slnr4vsimI2/IIzSPSnEg2G2wCt5aGsSQitwODbJIK7Q87Kg== X-Received: by 2002:a05:6a00:140e:b0:725:ea30:ab18 with SMTP id d2e1a72fcca58-72f6a67393emr5683330b3a.0.1737690785361; Thu, 23 Jan 2025 19:53:05 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72f8a69fd40sm777990b3a.3.2025.01.23.19.53.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jan 2025 19:53:04 -0800 (PST) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: Re: [9fans] /usr/src and /usr/ports not git directories ? From: Bakul Shah In-Reply-To: <48D63671-7A8F-4C7B-8115-F9F970DB5FA2@yahoo.com> Date: Thu, 23 Jan 2025 19:52:53 -0800 Cc: FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: <29737771-BB47-4E1A-8085-A5F5BD0832C9@iitbombay.org> References: <48D63671-7A8F-4C7B-8115-F9F970DB5FA2.ref@yahoo.com> <48D63671-7A8F-4C7B-8115-F9F970DB5FA2@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3826.300.87.4.3) X-Rspamd-Queue-Id: 4YfP6W2Dwrz3DLf 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 Jan 23, 2025, at 7:30=E2=80=AFPM, Mark Millard = wrote: >=20 > Bakul Shah wrote on > Date: Fri, 24 Jan 2025 00:15:04 UTC : >=20 >> [-9fans, +freebsd-current as 9fans adds a reply-to: 9fans line] >>=20 >>> On Jan 23, 2025, at 3:53=E2=80=AFPM, Warner Losh = wrote: >>>=20 >>> I fail to see how putting code in the kernel is better than just = using got for the few people that are alergic to git. Even if it is only = 1000 lines in plan 9, but likely more in FreeBSD and by the way not yet = ported to FreeBSD. We know got can't crash the system and is small = enough to not matter, even if it isn't in the base today. >>=20 >>=20 >> May I suggest: >> - always ship the *commit hash* for any release or snapshot with its = base.txz >=20 > For stable/* and main builds via PkgBase: >=20 > I'll note that, for PkgBase, the commit hashes for the "base" vs. the = "kernel" > need not be identical from what I've seen. In other words, the = separate > packages for /usr/src/sys/ vs. for the rest of /usr/src/ need not be > based on the exact-same commit hash. News to me. Since there is one repo for /usr/src and /usr/src/sys, this = would mess things up. Why have more or less two identical repos. In the quick = hack script below I assume one. This will need more work, this was just a PoC = to show what I mean. For an existing local repo the script can be enhanced = to fetch to a later commit hash (or one can just use git).=20 #!/bin/sh cmd=3D`basename $0` case .$2 in .) echo Usage: $cmd url commit-hash; exit 1;; esac if [ -e .git ]; then echo $cmd: .git already exists; exit 1; fi # check if there are any other files if [ ! -z "$(ls -A)" ] ; then echo $cmd: directory must be empty exit 1 fi git init git remote add origin $1 git fetch --depth=3D1 origin $2 || exit 1 git checkout FETCH_HEAD >=20 > Releases avoid that via the explicit control of when the releng/*.* = content is > updated: no update happens between and teh result happens to always = match > because of that (if I understand right). >=20 > This seems to be something new for any official FreeBSD builds of = stable/* and > main . >=20 >> - src.txz as now (or add commit hash) >=20 > See above if a stable/* or main context might involve PkgBase > build instead. >=20 >> - this is enough to download a repo (1-deep or whatever), bare if = src.txz was also unpacked. >> - add a simple script to download as above. >> - people can install whatever git client they want for further work. >>=20 >> git9 doesn't require any kernel code but on freebsd you'd have to >> use plan9port. It is far simpler but has a different interface. >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com >=20