[curl] work around glibc/valgrind problem on x86_64 (#626470)

Kamil Dudka kdudka at fedoraproject.org
Mon Aug 23 18:45:29 UTC 2010


commit 35531a08e1572fb66531024de41402085eb47e37
Author: Kamil Dudka <kdudka at redhat.com>
Date:   Mon Aug 23 20:45:54 2010 +0200

    work around glibc/valgrind problem on x86_64 (#626470)

 curl.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/curl.spec b/curl.spec
index 9108419..e415abe 100644
--- a/curl.spec
+++ b/curl.spec
@@ -14,7 +14,7 @@ Patch1: 0001-curl-7.21.1-a6e088e.patch
 # curl -T now ignores file size of special files (#622520)
 Patch2: 0002-curl-7.21.1-5907777.patch
 
-# fix kerberos proxy authentization for https (#625676)
+# fix kerberos proxy authentication for https (#625676)
 Patch3: 0003-curl-7.21.1-13b8fc4.patch
 
 # avoid a warning with autoconf 2.66
@@ -143,6 +143,12 @@ sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ tests/data/test*
 # uncomment to turn off optimizations
 # find -name Makefile | xargs sed -i 's/-O2/-O0/'
 
+# either glibc's implementation of strcasecmp() or its interpretation
+# by valgrind seems to be broken on x86_64 (#626470)
+%ifarch x86_64
+sed -i 's/HAVE_STRCASECMP/HAVE_BROKEN_STRCASECMP/' lib/curl_config.h
+%endif
+
 # Remove bogus rpath
 sed -i \
     -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
@@ -229,7 +235,8 @@ rm -rf $RPM_BUILD_ROOT
 - re-enable test575 on s390(x), already fixed (upstream commit d63bdba)
 - modify system headers to work around gcc bug (#617757)
 - curl -T now ignores file size of special files (#622520)
-- fix kerberos proxy authentization for https (#625676)
+- fix kerberos proxy authentication for https (#625676)
+- work around glibc/valgrind problem on x86_64 (#626470)
 
 * Thu Aug 12 2010 Kamil Dudka <kdudka at redhat.com> 7.21.1-1
 - new upstream release


More information about the scm-commits mailing list