patches/uClibc/0.9.28.3/110-install_dev.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Dec 12 21:41:16 2011 +0200 (2011-12-12)
branch1.13
changeset 2845 0dc9d4931246
parent 6 4267d95819bd
permissions -rw-r--r--
scripts: unset CONFIG_SITE

Some distributions (eg. openSUSE 12.1) systematically export
the CONFIG_SITE environment variable to point to a custom
script setting misc paths for ./configure.

This can, and does, break when cross-compiling for architectures
that are not supported by this script.

The simple workaround is to unset this variable.
NB: buildroot has a similar fix:
http://git.buildroot.org/buildroot/commit/?id=12c9f7dd6dee9c6029b4f9a12d6aac1516911ab4

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 21f4f28e60ec0342133086c9a51e7f0e5b181fb8)
yann@1
     1
We know that the kernel headers are in place. Don't try to install them.
yann@1
     2
yann@1
     3
diff -dur uClibc-0.9.28.1.orig/Makefile uClibc-0.9.28.1/Makefile
yann@1
     4
--- uClibc-0.9.28.1.orig/Makefile	2007-01-28 06:38:00.000000000 +0100
yann@1
     5
+++ uClibc-0.9.28.1/Makefile	2007-01-28 18:55:46.000000000 +0100
yann@1
     6
@@ -158,12 +158,10 @@
yann@1
     7
 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
yann@1
     8
 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
yann@1
     9
 	-$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
yann@1
    10
-	if [ "$(KERNEL_SOURCE)" = "$(DEVEL_PREFIX)" ] ; then \
yann@1
    11
-		extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
yann@1
    12
-	else \
yann@1
    13
-		extra_exclude="" ; \
yann@1
    14
-	fi ; \
yann@1
    15
-	tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
yann@1
    16
+	extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
yann@1
    17
+	tar -chf - include --exclude .svn --exclude CVS \
yann@1
    18
+	                   --exclude include/linux      \
yann@1
    19
+	                   --exclude include/asm'*'     \
yann@1
    20
 		| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
yann@1
    21
 	echo '/* Dont use _syscall#() macros; use the syscall() function */' > \
yann@1
    22
 		$(PREFIX)$(DEVEL_PREFIX)include/bits/syscalls.h