>From 978efa7c2b91699186db3de477b47040444731af Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Mon, 20 Jul 2009 15:20:06 -0700 Subject: [PATCH] Fix a compatibility issue with Bash 4.0 --- gub/specs/linux-headers.py | 1 + patches/linux-headers-2.4.34-posix-fix.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 patches/linux-headers-2.4.34-posix-fix.patch diff --git a/gub/specs/linux-headers.py b/gub/specs/linux-headers.py index 2e07baf..345f469 100644 --- a/gub/specs/linux-headers.py +++ b/gub/specs/linux-headers.py @@ -12,6 +12,7 @@ class Linux_headers (build.BinaryBuild, build.SdkBuild): return [''] def patch (self): self.system (''' +cd %(srcdir)s && patch -p1 < %(patchdir)s/linux-headers-2.4.34-posix-fix.patch cd %(srcdir)s && yes yes | make ARCH=%(package_arch)s oldconfig symlinks include/linux/version.h #cd %(srcdir)s && yes yes | make ARCH=i386 oldconfig #cd %(srcdir)s && make ARCH=%(package_arch)s symlinks include/linux/version.h diff --git a/patches/linux-headers-2.4.34-posix-fix.patch b/patches/linux-headers-2.4.34-posix-fix.patch new file mode 100644 index 0000000..07a56b8 --- /dev/null +++ b/patches/linux-headers-2.4.34-posix-fix.patch @@ -0,0 +1,12 @@ +diff -ru linux-2.4.34/scripts/Configure linux-2.4.34-2/scripts/Configure +--- linux-2.4.34/scripts/Configure 2006-12-23 12:34:20.000000000 -0800 ++++ linux-2.4.34-2/scripts/Configure 2009-07-20 15:14:58.506858922 -0700 +@@ -548,7 +548,7 @@ + echo "#" + . $DEFAULTS + sed -e 's/# \(CONFIG_[^ ]*\) is not.*/\1=n/' <$DEFAULTS >.config-is-not.$$ +- . .config-is-not.$$ ++ . ./.config-is-not.$$ + rm .config-is-not.$$ + else + echo "#" -- 1.6.3.3