[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Kernel compilation from src.rpm
- From: Thorsten Leemhuis <fedora leemhuis info>
- To: For testers of Fedora Core development releases <fedora-test-list redhat com>, hobbsk ohiou edu
- Cc:
- Subject: Re: Kernel compilation from src.rpm
- Date: Mon, 30 Jan 2006 21:05:53 +0100
Am Montag, den 30.01.2006, 14:01 -0500 schrieb Kevin H. Hobbs:
> On Mon, 2006-01-30 at 13:35 -0500, Stephane Gaucher wrote:
> > Is it possible to re-compile the exact kernel from the
> > kernel-xyz.src.rpm !?!
>
> Yes, you could do it as root in /usr/src/redhat/ or as a regular user by
> putting the following in your ~/.rpmmacros.
>
> # ~/.rpmmacros
> %packager %(echo "$USER")
> %_topdir %(echo "$HOME")/rpmbuild
>
> Then create the directories that rpmbuild needs.
>
> mkdir ~/rpmbuild
> mkdir ~/rpmbuild/SOURCES
> mkdir ~/rpmbuild/RPMS
> mkdir ~/rpmbuild/BUILD
> mkdir ~/rpmbuild/SRPMS
Or simply run as root:
# yum install fedora-rpmdevtools
And then as user:
$ fedora-buildrpmtree
(This actually creates a proper ~/.rpmmacros, the ~/rpmbuild directory
and all the requires dirs below it from above description.)
And then:
> Then rebuild the kernel.
>
> rpmbuild --rebuild kernel-xyz.src.rpm
HTH
CU
thl
--
Thorsten Leemhuis <fedora leemhuis info>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]