summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-10-03 20:15:04 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2009-10-03 20:15:04 (GMT)
commit59c8e4de91bb0499be741252fc4f6ec10d7dc5b0 (patch)
tree730b2a13e9f46130925210838581861b30c40dca
parent94aac4698d3f83edaf1a091091cc7014f6a4c82b (diff)
downloadbuildroot-59c8e4de91bb0499be741252fc4f6ec10d7dc5b0.tar.gz
buildroot-59c8e4de91bb0499be741252fc4f6ec10d7dc5b0.tar.bz2
valgrind: fix build without largefile support
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--CHANGES3
-rw-r--r--package/valgrind/valgrind-largefile.patch27
2 files changed, 29 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 9cd4835..1f9081a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -7,7 +7,8 @@
festival, imagemagick, iptables, kernel-headers, kismet,
libevent, libglib2, liblockfile, libuuid, ltrace, mdadm,
ncftp, netkittelnet, openssl, python, quagga, radvd, samba,
- speech-tools, squashfs, syslinux, u-boot, xdata_xcursor-themes
+ speech-tools, squashfs, syslinux, u-boot, valgrind,
+ xdata_xcursor-themes
Removed package: mdnsresponder, mpatrol
diff --git a/package/valgrind/valgrind-largefile.patch b/package/valgrind/valgrind-largefile.patch
new file mode 100644
index 0000000..9ef5708
--- /dev/null
+++ b/package/valgrind/valgrind-largefile.patch
@@ -0,0 +1,27 @@
+[PATCH] valgrind: don't enable largefile support unconditionally on uClibc
+
+uClibc can be compiled without largefile support (and errors out if
+_FILE_OFFSET_BITS is set to 64), so don't define it if that combination
+is detected.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ coregrind/m_ume.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+Index: valgrind-3.2.3/coregrind/m_ume.c
+===================================================================
+--- valgrind-3.2.3.orig/coregrind/m_ume.c
++++ valgrind-3.2.3/coregrind/m_ume.c
+@@ -31,7 +31,11 @@
+
+
+ #define _GNU_SOURCE
++#include <features.h>
++/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
++#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
+ #define _FILE_OFFSET_BITS 64
++#endif
+
+ // It seems that on SuSE 9.1 (x86) something in <fcntl.h> messes up stuff
+ // acquired indirectly from vki-x86-linux.h. Therefore our headers must be