Skip to contentSkip to conversation

restore previous KERNELDIR behavior

PATCH Superseded Muli Ben-Yehuda 1 participant 1 message Feb 11, 2007 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 restore previous KERNELDIR behavior

My patch to fix the --kerneldir option to configure caused a subtle change in behavior when --kerneldir wasn't specified. Previously, kernel/Makefile would set KERNELDIR to /lib/modules/xxx. The fix caused it to be set to $(readlink -f /lib/modules/xxx) (via config.mak). Normally this wouldn't have made any difference, a symlink and what it points to are synonymous, but various places rely on KERNELDIR being of the form /lib/modules/xxx for pattern substitution. Switch back to the old behavior.

This should fix the issue reported by Omar Khan <[email protected]> and Pelle <[email protected]>

configure +1 -1
Index: configure
===================================================================
@@ -94,7 +94,7 @@
 
 cat <<EOF > config.mak
 PREFIX=$prefix
-KERNELDIR=$(readlink -f $kerneldir)
+KERNELDIR="$kerneldir"
 WANT_MODULE=$want_module
 EOF
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642