Is it possible to re-compile the exact kernel from the kernel- xyz.src.rpm !?!
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
Then rebuild the kernel.
rpmbuild --rebuild kernel-xyz.src.rpm
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
On Mon, 2006-01-30 at 21:05 +0100, Thorsten Leemhuis wrote:
Or simply run as root:
# yum install fedora-rpmdevtools
And then as user:
$ fedora-buildrpmtree
I keep forgetting about those. I was very excited when I first saw them. They weren't there ( At least I didn't know about them. ) back when I was learning rpmbuild.
On Mon, Jan 30, 2006 at 09:05:53PM +0100, Thorsten Leemhuis wrote:
Am Montag, den 30.01.2006, 14:01 -0500 schrieb Kevin H. Hobbs:
And then:
Then rebuild the kernel.
rpmbuild --rebuild kernel-xyz.src.rpm
HTH
Depending on what for you are building you may also need your target specified. If this is for the same target you are running at the moment then you can use
rpmbuild --rebuild --target=$(uname -m) kernel-xyz.src.rpm
or you may end up with i386 kernel when i686 was really desired.
The same should be taken into a consideration if you are building extra kernel modules.
Michal
On Mon, 2006-01-30 at 14:15 -0700, Michal Jaegermann wrote:
On Mon, Jan 30, 2006 at 09:05:53PM +0100, Thorsten Leemhuis wrote:
Am Montag, den 30.01.2006, 14:01 -0500 schrieb Kevin H. Hobbs:
And then:
Then rebuild the kernel.
rpmbuild --rebuild kernel-xyz.src.rpm
HTH
Depending on what for you are building you may also need your target specified. If this is for the same target you are running at the moment then you can use
rpmbuild --rebuild --target=$(uname -m) kernel-xyz.src.rpm
or you may end up with i386 kernel when i686 was really desired.
The same should be taken into a consideration if you are building extra kernel modules.
Michal
Doh, yup that's particularly important as the original poster wanted to recompile a kernel and there is ( last time I checked ) no i386 target.
My answer's getting wronger and wronger.