summaryrefslogtreecommitdiff
path: root/packages/uclibc/uclibc_0.9.27.bb
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@nslu2-linux.org>2005-05-09 18:55:46 +0000
committerJohn Bowler <jbowler@nslu2-linux.org>2005-05-09 18:55:46 +0000
commit8b87f7c56205f5354660f849b74c2c09eda58e28 (patch)
tree8723c56d8c782949a8b6200c2efcac506a4bff94 /packages/uclibc/uclibc_0.9.27.bb
parent7141fa2fa40b43be302d588189024eda18b46da7 (diff)
Both uclibc bits/ipc.h (this comes from uclibc) and the kernel
linux/posix_types.h define __kernel_key_t. This means that an app which includes both in one file will fail compilation. The patch fixes this by changing the typedef used inside bits/ipc.h to the same one used in the glibc headers (identical to the type from posix_types.h). Unfortunately this means that any uclibc only package which relied on this will now fail (but it would have failed on glibc anyway), therefore this patch is made NSLU2 specific because it has only received complete testing on NSLU2. This bug affects samba 3.0 builds on uclibc - without this fix samba 3.0.x will not build on uclibc. BKrev: 427fb232lDR4ZUgoXLYunOoObOvvyg
Diffstat (limited to 'packages/uclibc/uclibc_0.9.27.bb')
-rw-r--r--packages/uclibc/uclibc_0.9.27.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/uclibc/uclibc_0.9.27.bb b/packages/uclibc/uclibc_0.9.27.bb
index 65552b61bb..d7630b74b3 100644
--- a/packages/uclibc/uclibc_0.9.27.bb
+++ b/packages/uclibc/uclibc_0.9.27.bb
@@ -1,10 +1,19 @@
DEFAULT_PREFERENCE = "1"
-PR = "r4"
+PR = "r5"
include uclibc.inc
+# This patch removes the typedef of __kernel_key_t from
+# include/bits/ipc.h. Because this removes a typedef some
+# packages which relied on it (erroneously - it is defined
+# in include/linux/posix_types.h and is internal) may stop
+# building. The patch has only been verified on NSLU2 builds.
+PATCH_ipc_h ?=
+PATCH_ipc_h_nslu2 = "file://kernel-key-t-ipc.h.patch;patch=1"
+
SRC_URI += "http://www.uclibc.org/downloads/uClibc-${PV}.tar.bz2 \
file://dyn-ldconfig.patch;patch=1 \
file://nokernelheadercheck.patch;patch=1"
SRC_URI += " file://armeb-kernel-stat.h.patch;patch=1"
+SRC_URI += ${PATCH_ipc_h}
S = "${WORKDIR}/uClibc-${PV}"