summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/uclibc/files/0.9.26/uClibc-0.9.26-Makefile.patch')
-rw-r--r--dev-libs/uclibc/files/0.9.26/uClibc-0.9.26-Makefile.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/uclibc/files/0.9.26/uClibc-0.9.26-Makefile.patch b/dev-libs/uclibc/files/0.9.26/uClibc-0.9.26-Makefile.patch
new file mode 100644
index 000000000000..965ace9c0cb3
--- /dev/null
+++ b/dev-libs/uclibc/files/0.9.26/uClibc-0.9.26-Makefile.patch
@@ -0,0 +1,38 @@
+--- extra/scripts/fix_includes.sh.mps 2004-01-05 11:14:05.000000000 +0100
++++ extra/scripts/fix_includes.sh 2004-01-05 12:25:11.000000000 +0100
+@@ -59,10 +59,10 @@
+ esac;
+ done;
+
+-if [ ! -f "$KERNEL_SOURCE/Makefile" ]; then
++if [ ! -f "$KERNEL_SOURCE/Makefile" -a ! -f "$KERNEL_SOURCE/include/linux/version.h" ]; then
+ echo "";
+ echo "";
+- echo "The file $KERNEL_SOURCE/Makefile is missing!";
++ echo "The file $KERNEL_SOURCE/Makefile or $KERNEL_SOURCE/include/linux/version.h is missing!";
+ echo "Perhaps your kernel source is broken?"
+ echo "";
+ echo "";
+@@ -78,8 +78,21 @@
+ exit 1;
+ fi;
+
+-# set current VERSION, PATCHLEVEL, SUBLEVEL, EXTERVERSION
++if [ -f "$KERNEL_SOURCE/Makefile" ] ; then
++# set current VERSION, PATCHLEVEL, SUBLEVEL, EXTRAVERSION
+ eval `sed -n -e 's/^\([A-Z]*\) = \([0-9]*\)$/\1=\2/p' -e 's/^\([A-Z]*\) = \(-[-a-z0-9]*\)$/\1=\2/p' $KERNEL_SOURCE/Makefile`
++else
++ver=`grep UTS_RELEASE $KERNEL_SOURCE/include/linux/version.h | cut -d '"' -f 2`
++VERSION=`echo "$ver" | cut -d '.' -f 1`
++PATCHLEVEL=`echo "$ver" | cut -d '.' -f 2`
++if echo "$ver" | grep -q '-' ; then
++SUBLEVEL=`echo "$ver" | sed "s/${VERSION}.${PATCHLEVEL}.//" | cut -d '-' -f 1`
++EXTRAVERSION=`echo "$ver" | sed "s/${VERSION}.${PATCHLEVEL}.${SUBLEVEL}-//"`
++else
++SUBLEVEL=`echo "$ver" | cut -d '.' -f 3`
++#EXTRAVERSION=
++fi
++fi
+ if [ -z "$VERSION" -o -z "$PATCHLEVEL" -o -z "$SUBLEVEL" ]
+ then
+ echo "Unable to determine version for kernel headers"