From owner-freebsd-current@freebsd.org Sun Jan 24 18:01:18 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 990FB4D486F for ; Sun, 24 Jan 2021 18:01:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (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 4DP15T5W4Hz3sV6 for ; Sun, 24 Jan 2021 18:01:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72e.google.com with SMTP id a12so506540qkh.10 for ; Sun, 24 Jan 2021 10:01:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mlm4u6O/slY0PvJp8e16cCmAA/NEMiGrpc9VLWNuGqs=; b=s8jqGyWpfGBQwBBoS2GFHjgZfv45cwCbb4QISFAGcOUg3Xr0mNpZzhbVGYpDmb3eA7 qj3iwp2eOXINURbiNjpc+/Ts5LBNqvZGA1eY+wf1PwIIacOQ1N5Z+PGrB4ohAgKApFhC hPgic59i1YbB4nJuJcaWOjcAioEPiZJYUJpdXd0Xwb6KEJJ5EFQGkmvD7k5bSPiMZ/EW jgIT4Hze7bEC5MjJRj6VQ/9v4yASbvnZB5pm9oqF1fE/KbEtlEKVKefs8g7OLhR5Lw2E FrNFDxHkm2F3gsl4lPiLJ3SYpnGySkNfDBxVeyEJilu5Kq6WQRca5JTvYkel75NO/GXl kvOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mlm4u6O/slY0PvJp8e16cCmAA/NEMiGrpc9VLWNuGqs=; b=Rll7leKvTTCtAjU1GfeWlZCWjgJtjsgWsZSiCu+lt91b5ao0bxPoA1ZqipwXXUSF1C YNUCWjaVIfsRXfPW/uWeJFHZ6wMIezjRoqUl+2OHRj/EQYzeScMzBfYL77h7Tipuvml2 ziirn/iMo1xblFMKyDtXwORHyjLOL36160+/xT1/V11Ak0lYVICHE+Y3DTUe7SDAr7wU xBswcQ657v6jiCjZC6KT2dUaqvj2TsK4UhGm1eN46U1ePS7DhAPRmiBkjBrslyWx0Glb CMTYg+HNx3ElbjrUFWfL4WtVakntcvfUub/KIklwukAp9FKrww/AM5Uo345zhULTIKgu UXLA== X-Gm-Message-State: AOAM5311C5ay/Ivbobrk/D+b6aBZohLEIJtqpGDU0sXP7RdCOGmlzuKU Beso/zePlsDkMa0qsu/zhPh+bwvQUfaxWuqW8z+cZww8hnzSNg== X-Google-Smtp-Source: ABdhPJyFh6nGEhtJgh/vIfEOGeO73vcipUX4Bdjh0COECgUlNw0eg46epeDYLz/0TxZDpmBMskQxvZwsDIsnMNrwU2M= X-Received: by 2002:ae9:f813:: with SMTP id x19mr1722002qkh.359.1611511276799; Sun, 24 Jan 2021 10:01:16 -0800 (PST) MIME-Version: 1.0 References: <20210124041403.GB73653@troutmask.apl.washington.edu> <20210124160523.ygdwlgegk6nrwfm4@mutt-hbsd> In-Reply-To: <20210124160523.ygdwlgegk6nrwfm4@mutt-hbsd> From: Warner Losh Date: Sun, 24 Jan 2021 11:01:05 -0700 Message-ID: Subject: Re: Getting /usr/src to match specific git hash? To: Shawn Webb Cc: Jeffrey Bouquet , Steve Kargl , Yasuhiro Kimura , freebsd-current X-Rspamd-Queue-Id: 4DP15T5W4Hz3sV6 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=s8jqGyWp; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::72e) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-0.15 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::72e:from]; NEURAL_SPAM_SHORT(0.85)[0.851]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_FIVE(0.00)[5]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::72e:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72e:from]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; MAILMAN_DEST(0.00)[freebsd-current] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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 18:01:18 -0000 On Sun, Jan 24, 2021, 9:05 AM Shawn Webb wrote: > On Sun, Jan 24, 2021 at 09:00:45AM -0700, Warner Losh wrote: > > On Sun, Jan 24, 2021, 6:05 AM Jeffrey Bouquet > > > wrote: > > > > > > > > > > > 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/GENERIC > > > 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 > how > > > each > > > of the git commands populates or repopulated the directories in /usr??? > > > > > > > It is in the mini primer I wrote, along with how to bisect and other > useful > > things. This will migrate into the handbook once the doc tree converts to > > asciidoc (happening this weekend). > > > > 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. > Pointers have been posted early and often though. I don't buy it was that big a deal.. Warner Thanks, > > -- > 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/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc >