[curl/f14/master] do not use strncasecmp() from glibc (#631449)
Kamil Dudka
kdudka at fedoraproject.org
Tue Sep 7 20:23:05 UTC 2010
commit d779ee87a69e8c3883ba1ea81974caab4b4f5af2
Author: Kamil Dudka <kdudka at redhat.com>
Date: Tue Sep 7 22:14:34 2010 +0200
do not use strncasecmp() from glibc (#631449)
curl.spec | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/curl.spec b/curl.spec
index d0ffd06..73eaac5 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,7 +1,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 7.21.0
-Release: 4%{?dist}
+Release: 5%{?dist}
License: MIT
Group: Applications/Internet
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
@@ -156,9 +156,13 @@ sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ tests/data/test*
# 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)
+# by valgrind seems to be broken on x86_64 (#626470), the same problem
+# appeared with strncasecmp() a while later (#631449)
%ifarch x86_64
-sed -i 's/HAVE_STRCASECMP/HAVE_BROKEN_STRCASECMP/' lib/curl_config.h
+sed -i \
+ -e 's/HAVE_STRCASECMP/HAVE_BROKEN_STRCASECMP/' \
+ -e 's/HAVE_STRNCASECMP/HAVE_BROKEN_STRNCASECMP/' \
+ lib/curl_config.h
%endif
# Remove bogus rpath
@@ -243,6 +247,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/aclocal/libcurl.m4
%changelog
+* Tue Sep 07 2010 Kamil Dudka <kdudka at redhat.com> 7.21.0-5
+- work around glibc/valgrind problem on x86_64 (#631449)
+
* Mon Aug 23 2010 Kamil Dudka <kdudka at redhat.com> 7.21.0-4
- modify system headers to work around a gcc bug (#617757)
- curl -T now ignores file size of special files (#622520)
More information about the scm-commits
mailing list