kernel checkout specific version

Philip Brown philip.brown at kiwienglish.es
Sun Dec 20 22:26:25 UTC 2015


On 12/20/2015 11:18 PM, Philip Brown wrote:
> On 12/20/2015 09:55 PM, stan wrote:
>> On Sun, 20 Dec 2015 10:48:40 +0100
>> Philip Brown <philipbrown.es at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I would appreciate a little help please.
>>> I am building the kernel with the following commands:
>>>
>>> fedpkg clone -a kernel
>>> cd kernel
>>> git checkout -b f23 --track origin/f23
>>> fedpkg local
>>>
>>> and this builds a 4.2.8-300 release, however I need to build a
>>> 4.2.7-300 release which fedora is currently running on.
>>>
>>> how would I alter my command to achieve this.
>> I haven't used fedpkg.  I was actually unaware of it until your post.
>> But a quick look at the man page suggests that it can build srpm
>> files.  So, you can go to koji,
>> http://koji.fedoraproject.org/koji/packageinfo?packageID=8
>> select the kernel you want, and download the srpm.  Once you have that,
>> it appears that you can build the srpm using
>> fedpkg build --srpm [srpm name]
>>
>> If the kernel has been built, there will already be a binary rpm there
>> for the common architectures.  You could forego the build, and just
>> download and install the binary rpm.
> I'm quite new to all this kernel building guff, so I will definetly be 
> looking into what you are saying. For the moment I have had to build a 
> kernel as I have had to apply a patch to get my wacom tablet running.
>
>
>
just to answer this question as I received an answer from Josh at the 
kernel mailing list which is as follows:

You need to look in koji for the specific build, and use the sha1sum 
hash that version was built from.
You can do this by navigating the build webpages, or using the koji 
command line client.
The command line client method is below:

[jwboyer@vader ~]$ koji buildinfo kernel-4.2.7-300.fc23 | head -n 5
BUILD: kernel-4.2.7-300.fc23 [704495]
State: COMPLETE
Built by: jforbes
Volume: DEFAULT Task: 12130200 build 
(f23-candidate,/kernel:827b8d0864402142f735d3e8cef8d20ae094e2d7)

The hash is listed there ^^^^.
Then go to your checkout you've done with fedpkg and run:

git reset --hard 827b8d0864402142f735d3e8cef8d20ae094e2d7

and your local repo will be reset to the same commit that was used to 
build 4.2.7-300.fc23.

-- 
  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20151220/b98dfe73/attachment.html>


More information about the users mailing list