>>>>> "borsenkow" == Borsenkow Andrej <[EMAIL PROTECTED]> writes:
>> It seems simple enough, remove the info that is necessary to compile >> modules and whatever else may be needed, make mrproper, copy back over >> the files mentioned above and then generate the rpm. It sounds like a >> simple script could be made by the kernel maintainer to do this. >> Otherwise you will have a never ending supply of support questions on >> this since there will always be someone who runs across this for the >> first time. borsenkow> Sure. It is very simple. It is just that full rebuild of kernel SRPM borsenkow> alone (that is needed to test this script) rquires 6h on my system borsenkow> (PIII733/256M/IDE). Then you have to test it - meaning, ideally, booting borsenkow> into _every_ kernel generated and trying to borsenkow> - recompile kernel (to see if it still works) borsenkow> - compile external module (to see if we got all things properly) borsenkow> that adds another 6h. borsenkow> And if anything in your script goes wrong ... borsenkow> Actually if anybody has enough time to do it, here is final solution borsenkow> that I personally consider the best: borsenkow> - merge current kernel-headers into glibc-devel. It belongs there anyway borsenkow> - split current kernel-source into kernel-headers and kernel-source borsenkow> proper borsenkow> - deliver kernel-headers with specially prepared files allowing you to borsenkow> compile external modules for your currently running kernel (as it is borsenkow> now) problem is, grep for .h files outside of include/* and you will find that external modules need that files :(, i.e. usb drivers out of the kernel needs includes in drivers/usb, scsi drivers in drivers/scsi :( I wanted to do what you are suggesting here several times, but it is not possible without breaking compilation of external modules still more. Only thing that I can think of is ship also a .you_really_need to run make mrproper, and add things to the main makefile for it running make mrproper before *config _only_ the first time. What do you think? borsenkow> - deliver kernel-source in make mrproper state. borsenkow> This has a number of advantages (in no particular order): borsenkow> - people are no more confused with kernel-headers versions (it is borsenkow> confusing) Yes, kernel-headres should be included in glibc-devel, no objection to that at all. borsenkow> - those who need only compile 100K kenel modules are not forced to borsenkow> install 100M worth of files. They need only kernel-headers. It actually borsenkow> coiuld even be installed by default (if development environment has been borsenkow> selected during installation) borsenkow> - those who wish to compile there kernel get virgine state and know that borsenkow> they must configure it first borsenkow> any takers? What do you think of my solution, it is simpler and I think that it fixes the problem. Will do it for next kernel. Later, Juan. -- In theory, practice and theory are the same, but in practice they are different -- Larry McVoy
