From owner-freebsd-current@freebsd.org Sun Jan 24 04:08:52 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 855094EAF4D for ; Sun, 24 Jan 2021 04:08:52 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from maybe.home.utahime.org (gate.home.utahime.org [183.180.29.210]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DNfcz1Xvyz4RWN for ; Sun, 24 Jan 2021 04:08:51 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by maybe.home.utahime.org (Postfix) with ESMTPS id B1B174D35E for ; Sun, 24 Jan 2021 13:08:44 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1611461324; bh=XLj7V1hNJwmsqZIRHhTgGtfjJ0OO86MP9MGQHN2UH90=; h=Date:To:Subject:From:In-Reply-To:References; b=CaFzVRl8DaHgHIItF6VFsJP1xJh7E8BDkaqJ5MQiI5I8HeTatrZX7hd//wAAHqv2Y 89ge6g6cFIh/g3QZCVv0zHv6/XH4HjZQBeU0YP7g2XGMirRW9DQwuv2L+whOn3/mbt GLAU5d0sb0JdmXj4B3ljR34k26fXTy57viF/jyM8UF/45l5U5Nx+PYX2PE2JAkqCKh nDL5ojJ8/i3JMVXbD/djoux0Z5HSaa7senQi2D4Ack4F4ixHWYCrnMsYXBGen67Rxi Xjb6TceB16P8CSayYgltJe1MMES7ceslDZFs5t/N7G3kLcSkKR7LCFSyJ1wkBk7Kk4 QexphVOhMjR4g== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 70E214BFCD; Sun, 24 Jan 2021 13:08:42 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at eastasia.home.utahime.org Date: Sun, 24 Jan 2021 13:08:05 +0900 (JST) Message-Id: <20210124.130805.532159532765637026.yasu@utahime.org> To: freebsd-current@freebsd.org Subject: Re: Getting /usr/src to match specific git hash? From: Yasuhiro Kimura In-Reply-To: <20210124035852.GA73653@troutmask.apl.washington.edu> References: <20210124035852.GA73653@troutmask.apl.washington.edu> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DNfcz1Xvyz4RWN X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.b=CaFzVRl8; dmarc=none; spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org X-Spamd-Result: default: False [0.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org]; TO_DN_NONE(0.00)[]; HFILTER_HELO_IP_A(1.00)[maybe.home.utahime.org]; HFILTER_HELO_NORES_A_OR_MX(0.30)[maybe.home.utahime.org]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[utahime.org:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[183.180.29.210:from]; ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[utahime.org:s=maybe2019112701]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[utahime.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[183.180.29.210:from:127.0.2.255]; MID_CONTAINS_FROM(1.00)[]; 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 04:08:52 -0000 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 --- Yasuhiro Kimura