From owner-freebsd-current@freebsd.org Sun Jan 24 16:05:27 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 730B04D0F92 for ; Sun, 24 Jan 2021 16:05:27 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (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 "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DNyWp1J2Pz3kZf for ; Sun, 24 Jan 2021 16:05:25 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt1-x831.google.com with SMTP id t17so7943208qtq.2 for ; Sun, 24 Jan 2021 08:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=e2C3IL1NIgVeOuHOJWPd+AQvFlm1+ZV1w8UthTkcNMk=; b=f6j7wuyok593ARPa530HeeUWtW7WSgNNFP/xBMTpr4BDUPoJmxk4u3SeGVB8GmCOVk scMlp02cUYFLlO4+E9zUj2xZDpF/dlK2VdSx1myG1h8n25CjCusOwepvEKYaV6gGx/Ku p4pmALpaxGT7zNEBSmFV1l/UTyC7PRxREzCCRRQf6FNiMKIsnqKhEfyowEmQWi7cW2Jg lVl5iHiw0CbA1L8U/vMH7STF6XGlwQp56tsJC+s6W+iBaSglkpNW6N3HY7o21h4tsY36 kZICcsbaI6KzJfERNXyK7dfdM97o5bPxIqSNW9DtGaGe1CF2YuWk/O3lfj9mrVJyRLVN YNUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e2C3IL1NIgVeOuHOJWPd+AQvFlm1+ZV1w8UthTkcNMk=; b=EDVzNeAJUTOvQWrqnk5GJjBrSVHcSII8pa6nWgC50hvTsLdyIUn8C0iLKU1iXNB+fB LCiCzVLYiUIlWHD531CDDJq4UCGXVfZI+3DhF7LnSOqpJd+LGrmZnt+QonYh+dJybrnN 5pDk0UMfMUEmnpaFmpWunFlsKGg5iCbONZ4dAQvZK5+cmqxsRxbrA79p6EbQTRlrr3Qt 9M1u3qq+dyqhaSuFhJ9RlgfkBfpo9ORyIWE5cE53i4L++k49Z+tYBQf+xJORJKGVvRg/ uXVAs934VNgBMZ48ClNfhbZv6VGrIT/uBDElGkECrZyE+OgrnVj351WpDzwWpj0dCxF6 sSLg== X-Gm-Message-State: AOAM531LCJ7AXNInnOD+LV4pQgQFmPDKHZCUBZb9R6oWXT0v8nJ/I0mL 6qI+SIZdMLTNGEx/vK98+RA68Q== X-Google-Smtp-Source: ABdhPJzNN1NhThcAmpwsyfHx7qArr2bHic3lYjBoAFOsMqy+dQMvwudAqUXABiJPy9A2ey4DU7+akQ== X-Received: by 2002:ac8:718f:: with SMTP id w15mr1877866qto.179.1611504325171; Sun, 24 Jan 2021 08:05:25 -0800 (PST) Received: from mutt-hbsd (pool-100-16-222-53.bltmmd.fios.verizon.net. [100.16.222.53]) by smtp.gmail.com with ESMTPSA id 138sm6202084qkd.80.2021.01.24.08.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jan 2021 08:05:24 -0800 (PST) Date: Sun, 24 Jan 2021 11:05:23 -0500 From: Shawn Webb To: Warner Losh Cc: Jeffrey Bouquet , Steve Kargl , Yasuhiro Kimura , freebsd-current Subject: Re: Getting /usr/src to match specific git hash? Message-ID: <20210124160523.ygdwlgegk6nrwfm4@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 13.0-CURRENT-HBSD FreeBSD 13.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0xFF2E67A277F8E1FA References: <20210124041403.GB73653@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gjkq34kgt3vrncfa" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4DNyWp1J2Pz3kZf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=f6j7wuyo; dmarc=none; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::831 as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org X-Spamd-Result: default: False [-3.96 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; NEURAL_HAM_SHORT(-0.86)[-0.860]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::831:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RECEIVED_SPAMHAUS_PBL(0.00)[100.16.222.53:received]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::831:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::831:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2021 16:05:27 -0000 --gjkq34kgt3vrncfa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 24, 2021 at 09:00:45AM -0700, Warner Losh wrote: > On Sun, Jan 24, 2021, 6:05 AM Jeffrey Bouquet > wrote: >=20 > > > > > > On Sat, 23 Jan 2021 20:14:03 -0800, Steve Kargl < > > sgk@troutmask.apl.washington.edu> wrote: > > > > > On Sun, Jan 24, 2021 at 01:08:05PM +0900, Yasuhiro Kimura wrote: > > > > From: Steve Kargl > > > > Subject: Getting /usr/src to match specific git hash? > > > > Date: Sat, 23 Jan 2021 19:58:52 -0800 > > > > > > > > > Suppose one has an empty /usr/src. > > > > > > > > > > Suppose further that one had to re-install a 32-bit > > > > > i386-*-freebsd with the 24 Dec 2020 image available > > > > > from freebsd.org. > > > > > > > > > > uname -a for the booted kernel shows > > > > > > > > > > % uname -a > > > > > FreeBSD mobile 13.0-CURRENT FreeBSD 13.0-CURRENT #0 \ > > > > > 3cc0c0d66a0-c255241(main)-dirty: Thu Dec 24 05:43:23 UTC 2020 \ > > > > > root@releng1.nyi.freebsd.org:/usr/obj/usr/src/i386.i386/sys/GENER= IC > > i386 > > > > > > > > > > How does one use git to pull the exact sources that match > > > > > this specifc kernel? > > > > > > > > cd /usr > > > > git clone https://git.freebsd.org/src.git > > > > cd src > > > > git checkout 3cc0c0d66a0 > > > > > > > > > > Thank you. > > > > > > -- > > > Steve > > > _______________________________________________ > > > freebsd-current@freebsd.org mailing list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > > To unsubscribe, send any mail to " > > freebsd-current-unsubscribe@freebsd.org" > > > > Can this be put in /usr/src/UPDATING with an explanation of precisely h= ow > > each > > of the git commands populates or repopulated the directories in /usr??? > > >=20 > It is in the mini primer I wrote, along with how to bisect and other usef= ul > things. This will migrate into the handbook once the doc tree converts to > asciidoc (happening this weekend). >=20 > https://github.com/bsdimp/freebsd-git-docs/blob/main/mini-primer.md I'm glad this is moving to FreeBSD's documentation. Following the process of FreeBSD's migration to git has been a bit troublesome with some docs somewhere other docs elsewhere. Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD GPG Key ID: 0xFF2E67A277F8E1FA GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9 3633 C85B 0AF8 AB23 0FB2 https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Sha= wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --gjkq34kgt3vrncfa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmANmsEACgkQ/y5nonf4 4fq/lA//RuyxQl9WEOi4mPYFufPFX+8RZpMcTvqBOP3koO6qr9ONdgUtIS254Nkm lTflwSqjRYuQqaSdPITJ2feCUzjdB58X5gqJWJc3zdFj8U+Xw+4wHAF6BaWLBVH8 TO4/2IgT882LTqRaKzz6tnOAk5g3JhjREo+FX2idGUcJUYOIV5zhMVIIlmsE8Iq6 4AMlArcvKS/IbnpQ+f4Cho6gdZwCfmnhEGZYgTCM5iI2p5SyEuDC+W4VICZMZ6wK k8QgLRm3ws9Pqn533IQhA/I5eLvFUS0yITFRiZwloWwAKTCXd2y/6amp9qNy184s GuEf3ay4EBNyrh3dk84zyAlURo/JlS+mE02AYHxn25qc4JwnYUQtW18Kh/D62XkC eH7aR7T4FbubcPOymfAPJSBrtR/C+wyMXC29AstsQl231qzFKIESqayxoUYbvEb4 jrL8bISmokggOrNS5IjsU+UCPNQrkJM1EUcbNU9nW0gJr4N3A+kVsEGtj6PAr9NT y8QcGk/TwvlM318vjv1tylP/gWAlw7hHHdBj1UKFx3ZkUwvPTGesVB+81ktN/6h0 HlXU3xVFA2iODqJMhkEnxL6wQp6PMcHXz4A5vQtE5USgHsaoYVycErQjhQiJkmrO HhDrCrZytR2exwQ48TY7OWzkZJnXUv1pnn9fDYWfmsBS6X9jC9s= =LgMw -----END PGP SIGNATURE----- --gjkq34kgt3vrncfa--