Package: module-assistant Version: 0.9.4 Trees created using m-a fakesource don't seem to get the correct compiler detected. This is probably because include/linux/compile.h doesn't exist in fakesource trees, right?
The attached patch is RFC since I'm not sure about the implications of copying compile.h from -headers into the source tree. It works for me, compiles loop-aes-{source,ciphers-source} correctly, but I'm not sure whether it's a correct solution. >From what I can gather the kernel uses the compile.h header only for the information value, to include version, build date etc. in strings, but does not use it for conditional compilation. So, I suppose there would be little or no harm including it. cheers, Max
--- module-assistant~ 2005-07-01 01:18:03.000000000 +0200 +++ module-assistant 2005-07-19 17:21:06.000000000 +0200 @@ -1124,6 +1124,7 @@ my $extra=$2; my $confile="/boot/config-$kvers"; my $symverfile="$usrc/$kheaders-$kvers/Module.symvers"; + my $compileh="$usrc/$kheaders-$kvers/include/linux/compile.h"; print gettext("Experimental kernel source recreating method...\nGetting source...") . "\n"; return 0 if withecho "apt-get ".($opt_noninter?"-y":"")." install $ksource-$knmbr"; if(! -f $confile) { @@ -1142,6 +1143,9 @@ if (-f $symverfile) { withecho "cp", $symverfile, "$usrc/$ksource-$kvers/Module.symvers"; } + if (-f $compileh) { + withecho "cp", $compileh, "$usrc/$ksource-$kvers/include/linux/compile.h"; + } rmdir $tmpdir; if($extra) { open(mk,"<$usrc/$ksource-$kvers/Makefile");