glibc change for kernel-headers-2.6

Auke Kok sofar at foo-projects.org
Mon Nov 21 18:03:44 UTC 2005


Jaime Buffery wrote:

>Hi everyone,
>
>My opinion is that if k-h-2.6 is installed, this is the preferred option. 
>Having that in mind, I have fixed my box like this:
>
>Isis # svn diff
>  
>Index: BUILD
>===================================================================
>--- BUILD       (revision 17396)
>+++ BUILD       (working copy)
>@@ -24,7 +24,6 @@
>                --build=$BUILD                          \
>                --enable-add-ons=linuxthreads           \
>                --with-elf                              \
>-               --with-headers=/usr/src/linux/include   \
>                --with-gd=no                            \
>                --without-__thread                      \
>                --without-cvs                           \
>Index: CONFIGURE
>===================================================================
>--- CONFIGURE   (revision 17396)
>+++ CONFIGURE   (working copy)
>@@ -64,6 +64,12 @@
>      OPTS="$OPTS --disable-profile"
>    fi
> 
>+   if module_installed kernel-headers-2.6 ; then
>+      OPTS="${OPTS} --with-headers=/usr/include"
>+   else     
>+      OPTS="${OPTS} --with-headers=/usr/src/linux/include"
>+   fi
>+
>    echo "OPTS=\"\$OPTS $OPTS\""                >> $MODULE_CONFIG
>    echo "CONFIGURED=y"                         >> $MODULE_CONFIG
> fi
>
>
>Commit or add a query on what to use?. If a question is added, I would still 
>make k-h-2.6 the recommended default.
>
>Ideas?
>  
>

yes, the idea is good but this puts a permanent value in the ./configure 
line, which can break things in the future. You should not put this 
permanently in OPTS anyway, but rather put:

+   if module_installed kernel-headers-2.6 ; then
+      OPTS="${OPTS} --with-headers=/usr/include"
+   else     
+      OPTS="${OPTS} --with-headers=/usr/src/linux/include"
+   fi

inside the BUILD above the ./configure step and be done with it.

Auke





More information about the Lunar-dev mailing list