On Sun, Dec 20, 2015 at 10:37:48AM +0100, Philip Brown wrote:
> Hi,
>
> I would appreciate a little help please.
> I am building the kernel with the following commands:
Emailing kernel-owner doesn't work 99% of the time. It's better to
email the Fedora kernel list for these kinds of questions (now CC'd).
> 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.
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 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.
josh