From: Chris <bsd-lists_at_bsdforge.com> Subject: Re: using git to get a particular version of src Date: Mon, 25 Jan 2021 09:21:44 -0800 >> Hi, >> I have this version installed: >> 13.0-CURRENT #0 2ed50808d2b-c254384(main): Thu Nov 12 10:03:35 UTC >> 2020 >> I'd like to get the sources for this (want to make a no-debug kernel) >> as I know >> this version works on this hardware. >> But -current has gone to 14 and what was -current is now >> 13-stable. What git >> incantation is required to get 2ed50808d2b-c254384 sources, given an >> empty >> /usr/src and git method of ssh://anongit_at_git.freebsd.org ? > I am by *no* means a GIT expert > but will > cd /usr/src > git up 2ed50808d2b > accomplish your intended task? Unfortunately it doesn't work as is expected in this case because hashes of src repostory changed on Dec 6 when it was still beta. HEADS UP: src hashes will respin/change this Sunday https://lists.freebsd.org/pipermail/freebsd-git/2020-December/000548.html In original case it was after this change so hash value can be used to checkout it. But this case is befere hash change. So there isn't hash 2ed50808d2b in current src repository any more. I also faced this problem when I tried to checkout source tree that corresponds to 20201119 snapshot of 13-CURRENT. Fortunately I still kept ISO image of it. So I did following steps to get the source tree. 1. Mount the ISO image 2. Extract src.txz in the ISO image to somewhere (e.g. /tmp/usr/src) 3. cd /usr 4. git clone https://git.freebsd.org/src.git 5. cd src 6. Checkout 65c207758a9 that was committed at Thu Nov 19 21:10:36 2020 +0000 (the last one committed on Nov 19, 2020) 7. diff -ru /tmp/usr/src /usr/src 8. If there are any differences, checkout f9fe7b28bc2 that is just previous commit of 65c207758a9 9. Repeat step 7 and 8 until there is no difference between /tmp/usr/src and /usr/src. --- Yasuhiro KimuraReceived on Mon Jan 25 2021 - 17:11:43 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC