Trouble in re-installing kernel source


Subject: Trouble in re-installing kernel source
From: Ren Bourion (rene.bourion@wanadoo.fr)
Date: Mon Jan 21 2002 - 09:02:36 MST


Hello, can someone help me here?

Following a suggestion by Avinash Gupta, I tried to install the ALSA sound
drivers. So I had to run the config script:

./configure --with-cards=pmac

This process stopped with the following lines:

**begin quote**
checking for kernel version... The file
/usr/src/linux/include/linux/version.h does
not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
**end quote**

And indeed, this version.h file is missing. I therefore decided to try a new
installation of the kernel: in /usr, I saved /src by renaming it, and
created a new empty one, with the five dirs /BUILD, etc under /src/rpm.

I copied the src.rpm from the Source CD into my /home partition, and did

rpm -ivh /home/kernel-2.4.10-12a.src.rpm

Then I went to /SPECS and did

rpm -ba --clean --rmsource kernel-2.4.spec

The operation went to its end without any error message. Inspecting the
files, I found that:

/BUILD is empty
/SOURCES is empty
The spec file remains in /SPECS
The binary rpms are in /RPMS
The src rpm is in /SRPMS
In /var/tmp, the build directory /kernel-2.4.10 has been wiped out.

All that looks all right, ***BUT*** the dir /usr/src/linux-2.4.10 (and the
link /linux) is missing altogether and is not to be found elsewhere: and yet
these directories are named in the spec file!

I have tried to follow exactly the indications of man.rpm and RPM HOWTO, but
I seem to have done something wrong. I had a look at the lists, but I did
not find anything directly relevant.

Could someone point out my error? I should be very grateful.

R.B.



This archive was generated by hypermail 2a24 : Mon Jan 21 2002 - 09:21:15 MST