]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Search for the Linux version in the correct header
authorRuss Allbery <rra@stanford.edu>
Tue, 7 Jul 2009 00:19:26 +0000 (17:19 -0700)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 17 Dec 2009 06:23:02 +0000 (22:23 -0800)
src/config/linux-version already had support for handling either versioned
or unversioned kernel source directories, but the grep for UTS_RELEASE
was unconditionally done against the versioned source tree, ignoring the
previous determination of where the header file was.

Instead, check instead the header file location that we'd previously
determined.

This patch has been tested in the Debian OpenAFS 1.4.11~pre3+dfsg-1
package.

Reviewed-on: http://gerrit.openafs.org/4
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Verified-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit ecd3fc42d1d6dca23bb2e2728a0066d3db8eceb6)
Change-Id: I286109d139320f7ce71c5d5265bc3e4a2fca4945
Reviewed-on: http://gerrit.openafs.org/924
Tested-by: Derrick Brashear <shadow@dementia.org>
src/config/linux-version

index caa7b253d08ca463f516d396fe26a880921dd697..800b01e0e2e2e0fc50b1f51eb9d5b6354c2871b9 100644 (file)
@@ -57,7 +57,7 @@ for VERS in $LINUX_VERS ; do
            fi
        fi
 
-       vers=`fgrep UTS_RELEASE $LINUX_SRCDIR$VERS/include/linux/version.h |
+       vers=`fgrep UTS_RELEASE "$header" |
                awk 'BEGIN { FS="\"" } { print $2 }'`
        if [ "x$vers" = "x" ] ; then
            echo "ERROR: Cannot build for Linux kernel $VERS:"