Re: [suse-security] Creating rpm of locally compiled kernel
Am Montag, 14. Juli 2003 12:54 schrieb Simon Oliver:
Markus Gaugusch wrote:
Some time ago someone suggested that we create rpms (or dummy rpms) for locally compiled kernels so that yast update doesn't overwrite the local kernel.
Use "make rpm" instead of "make bzImage modules" to create an RPM of the kernel. But I think it would be easier for you if you used fou4s and use the IgnoreList and RemarkList features (to ignore kernel upates or only notify the user, but don't install them).
When I "make rpm" I get the following error:
... kernel-2.4.2064GBSMP/./.version File /usr/src/kernel-2.4.20.tar.gz: No such file or directory make: *** [rpm] Error 1
maybe you've to change the file: ./include/linux/version.h too.
It looks like rpm expects the tar file to have a different name: I traced back and found that the rpm build comamnd was as expected:
rpm -ta /usr/src/linux-2.4.20.SuSE/../kernel-2.4.2064GBSMP.tar.gz ; \
Any ideas?
Susi-Security wrote:
Am Montag, 14. Juli 2003 12:54 schrieb Simon Oliver:
Markus Gaugusch wrote:
Some time ago someone suggested that we create rpms (or dummy rpms) for locally compiled kernels so that yast update doesn't overwrite the local kernel.
Use "make rpm" instead of "make bzImage modules" to create an RPM of the kernel. But I think it would be easier for you if you used fou4s and use the IgnoreList and RemarkList features (to ignore kernel upates or only notify the user, but don't install them).
When I "make rpm" I get the following error:
... kernel-2.4.2064GBSMP/./.version File /usr/src/kernel-2.4.20.tar.gz: No such file or directory make: *** [rpm] Error 1
maybe you've to change the file: ./include/linux/version.h too.
It says: #define UTS_RELEASE "2.4.20-64GB-SMP" #define LINUX_VERSION_CODE 132116 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) But rpm is looking for "/usr/src/kernel-2.4.20.tar.gz". So I decided to download the vanilla 2.4.20 kernel source form ftp.kernel.org and found that it won't compile with the C compiler that comes with SuSE 8.2 (3.3 20030226). Is the SuSE kernel source patched to make it work with gcc 3.3? I ask because I'm having problems compiling 'enbd' on SuSE 8.2 and I'm begining to wonder there are problems with the SuSE kernel source tree or gcc 3.3 it self. -- Simon Oliver
Am Montag, 14. Juli 2003 15:48 schrieb Simon Oliver:
So I decided to download the vanilla 2.4.20 kernel source form ftp.kernel.org and found that it won't compile with the C compiler that comes with SuSE 8.2 (3.3 20030226).
I could compile a Vanilla kernel (incl grscec and ippp patch) with 8.2, but I had problems with some modules. Since I didn't need these modules really, I disabled them. Sorry I don't remember the problematic modules. I had also troubles with the cpu at this time, so I didn't report the errors. Al
participants (3)
-
Al Bogner
-
Simon Oliver
-
Susi-Security