From 0f9376f2eaedaf24bb8bcf4f834d81e7dff1692e Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 1 Dec 2000 22:52:01 +0000 Subject: [PATCH] redhat-linux-version-h-is-mangled-20001201 the kernel-source rpm on redhat 7.0 provides a modified linux/version.h which chokes the linux-version script. attempt to deal. --- src/config/linux-version | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/config/linux-version b/src/config/linux-version index 09d3b1a7a..a6759ec4b 100644 --- a/src/config/linux-version +++ b/src/config/linux-version @@ -58,9 +58,18 @@ for VERS in $LINUX_VERS ; do echo " No UTS_RELEASE string found in $header." continue elif [ "$VERS" != "$vers" ] ; then - echo "ERROR: Cannot build $VERS. Wrong version '('$vers')' in $header." +# Redhat kernel source has the problem that they create one version.h for +# all their builds; So, we have to be creative here. +# echo "ERROR: Cannot build $VERS. Wrong version '('$vers')' in $header." +# errors=true +# continue errors=true - continue + for subvers in $vers ; do + if [ "x$subvers" = "x$VERS" ] ; then + errors=false + continue + fi + done fi CAN_BUILD="$CAN_BUILD $VERS" found_one="true" -- 2.39.5