Set corect path to kernel headers for uclibc_svn
authorStelios Koroneos <skoroneos@digital-opsis.com>
Thu, 21 Dec 2006 16:46:40 +0000 (16:46 +0000)
committerStelios Koroneos <skoroneos@digital-opsis.com>
Thu, 21 Dec 2006 16:46:40 +0000 (16:46 +0000)
Add patch to allow gettext to compile

packages/uclibc/uclibc-cvs/error_print_progname.patch [new file with mode: 0644]
packages/uclibc/uclibc_svn.bb

diff --git a/packages/uclibc/uclibc-cvs/error_print_progname.patch b/packages/uclibc/uclibc-cvs/error_print_progname.patch
new file mode 100644 (file)
index 0000000..6c10ec6
--- /dev/null
@@ -0,0 +1,11 @@
+--- /libc/misc/error/orig-error.c      2006-11-29 14:28:13.000000000 -0500
++++ /libc/misc/error/error.c   2006-12-20 22:54:16.000000000 -0500
+@@ -44,7 +44,7 @@
+ /* If NULL, error will flush stdout, then print on stderr the program
+    name, a colon and a space.  Otherwise, error will call this
+    function without parameters instead.  */
+-/* void (*error_print_progname) (void) = NULL; */
++ void (*error_print_progname) (void) = NULL; 
+ extern __typeof(error) __error attribute_hidden;
+ void __error (int status, int errnum, const char *message, ...)
index 568f8d4..10855e6 100644 (file)
@@ -21,12 +21,12 @@ PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/uclibc-cvs', '${FILE_DIRNAME}/uclibc-${UCLIBC_BASE}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
 
-# This is the correct KERNEL_SOURCE location, if the uClibc
-# fix_includes.sh script is run (see nokernelheader.patch below)
-# this must be correct.
+#as stated above, uclibc needs real kernel-headers
+#however: we can't depend on virtual/kernel when nptl hits due to depends deadlocking ....
 KERNEL_SOURCE = "${CROSS_DIR}/${TARGET_SYS}"
 
 SRC_URI += "svn://uclibc.org/trunk;module=uClibc"
 
+SRC_URI += " file://error_print_progname.patch;patch=1"
 S = "${WORKDIR}/uClibc"