Re: How to apply kernel source updates.

Michael Fratoni <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 08 April 2003 08:54 am, James Stanhope wrote:
> Thanks Michael, that did the trick.
>
> I didn't understand the difference between the two types of rpm and
> somehow missed the updated "source" one in my search.
>
> James.
>
> BTW:  What is the purpose of the "src" rpms?  Are they for developers
> to update their modified source trees?

The src.rpm packages contain the source code, patches and specfile used to 
build the binary rpm packages. For example, using 'bash' as an example:

I can take the bash-2.05b-5.src.rpm, and execute 
'rpmbuild --rebuild bash-2.05b-5.src.rpm', which will build the 
bash-2.05b-5.i386.rpm package. You can also install the .src.rpm packages. 
By default Red Hat .src.rpm packages install to /usr/src/redhat/. You can 
then rebuild the packages with 'rpmbuild -bb 
/usr/src/redhat/SPECS/{package}.spec'

The kernel packages are often confusing.
The kernel-{version}src.rpm can be rebuilt to create the various 
kernel-{version}.{arch}.rpm binary packages. It contains the unmodified 
kernel source, as well as all the patches applied by Red Hat and the 
config files to build various kernel rpm packages.

The kernel-source-{version}.i386.rpm package contains the patched source 
code that is used to build the kernels, as well as the kernel config 
files used by Red Hat. It installs to /usr/src/linux-{version}. Properly 
written module Makefiles (or anything requiring the source for the 
running kernel) will point to the source via 
/lib/modules/`uname -r`/build, which is a link pointing the the kernel 
source for the running kernel.

Hope that helps clarify the various packages.
- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+lNCon/07WoAb/SsRAjcsAKCMKYxgf3fQ0E25yr4e5OlAR/dHqACfY/eR
6bZuLtQ4U/jrcv1SMb7OOfY=
=6u+I
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.