From ecd3fc42d1d6dca23bb2e2728a0066d3db8eceb6 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 6 Jul 2009 17:19:26 -0700 Subject: [PATCH] Search for the Linux version in the correct header 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 Verified-by: Russ Allbery Reviewed-by: Derrick Brashear --- src/config/linux-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/linux-version b/src/config/linux-version index caa7b253d..800b01e0e 100644 --- a/src/config/linux-version +++ b/src/config/linux-version @@ -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:" -- 2.39.5