summaryrefslogtreecommitdiff
path: root/testing/curl
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-19 04:14:07 +0000
committerroot <root@rshg047.dnsready.net>2011-04-19 04:14:07 +0000
commit8f4f6fea0e8f06647b3e06c003069c93b5b033b4 (patch)
treeb1c2eae862fab1f19ba291dcb5569383a01df12a /testing/curl
parent3299b3302e12f5a2b0e85dd625de99454c47664d (diff)
Tue Apr 19 04:14:07 UTC 2011
Diffstat (limited to 'testing/curl')
-rw-r--r--testing/curl/PKGBUILD10
-rw-r--r--testing/curl/curl-config-fix-version.patch75
2 files changed, 81 insertions, 4 deletions
diff --git a/testing/curl/PKGBUILD b/testing/curl/PKGBUILD
index 54287473b..9c291afb7 100644
--- a/testing/curl/PKGBUILD
+++ b/testing/curl/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 119987 2011-04-18 02:10:36Z angvp $
+# $Id: PKGBUILD 120010 2011-04-18 10:28:14Z pierre $
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Lucien Immink <l.immink@student.fnt.hvu.nl>
@@ -6,7 +6,7 @@
pkgname=curl
pkgver=7.21.5
-pkgrel=1
+pkgrel=2
pkgdesc="An URL retrival utility and library"
arch=('i686' 'x86_64')
url="http://curl.haxx.se"
@@ -14,14 +14,16 @@ license=('MIT')
depends=('zlib' 'openssl' 'bash' 'ca-certificates')
options=('!libtool')
source=(http://curl.haxx.se/download/${pkgname}-${pkgver}.tar.bz2
- curlbuild.h)
+ curlbuild.h curl-config-fix-version.patch)
md5sums=('dadd6353c9407161ddd62c0943718d59'
- '751bd433ede935c8fae727377625a8ae')
+ '751bd433ede935c8fae727377625a8ae'
+ 'b1c1705887db11e4a04f4dcd997a768a')
[[ $CARCH == "x86_64" ]] && _curlbuild=curlbuild-64.h
[[ $CARCH == "i686" ]] && _curlbuild=curlbuild-32.h
build() {
cd ${srcdir}/${pkgname}-${pkgver}
+ patch -p1 -i ${srcdir}/curl-config-fix-version.patch
./configure \
--with-random=/dev/urandom \
diff --git a/testing/curl/curl-config-fix-version.patch b/testing/curl/curl-config-fix-version.patch
new file mode 100644
index 000000000..6e34998a4
--- /dev/null
+++ b/testing/curl/curl-config-fix-version.patch
@@ -0,0 +1,75 @@
+From 82ecc85d9ed0fc05931fb6d6893eda567a3c443f Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 18 Apr 2011 09:03:12 +0200
+Subject: [PATCH] curl-config: fix --version
+
+curl-config --version didn't output the correct version string (bug
+introduced in commit 0355e33b5f7b234cf3), and unfortunately the test
+case 1022 that was supposed to check for this was broken.
+
+This change fixes the test to detect this problem and it fixes the
+output.
+
+Bug: http://curl.haxx.se/bug/view.cgi?id=3288727
+---
+ curl-config.in | 4 ++--
+ tests/libtest/test1022.pl | 17 +++++++++++++----
+ 2 files changed, 15 insertions(+), 6 deletions(-)
+
+diff --git a/curl-config.in b/curl-config.in
+index 27b9f7f..0232803 100644
+--- a/curl-config.in
++++ b/curl-config.in
+@@ -6,7 +6,7 @@
+ # | (__| |_| | _ <| |___
+ # \___|\___/|_| \_\_____|
+ #
+-# Copyright (C) 2001 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
++# Copyright (C) 2001 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ #
+ # This software is licensed as described in the file COPYING, which
+ # you should have received as part of this distribution. The terms
+@@ -94,7 +94,7 @@ while test $# -gt 0; do
+ ;;
+
+ --version)
+- echo libcurl @VERSION@
++ echo libcurl @CURLVERSION@
+ exit 0
+ ;;
+
+diff --git a/tests/libtest/test1022.pl b/tests/libtest/test1022.pl
+index 60eee38..7fac00e 100755
+--- a/tests/libtest/test1022.pl
++++ b/tests/libtest/test1022.pl
+@@ -22,14 +22,23 @@ my $curlconfigversion;
+ open(CURLCONFIG, "sh $ARGV[0] --$what|") || die "Can't get curl-config --$what list\n";
+ $_ = <CURLCONFIG>;
+ chomp;
++my $filever=$_;
+ if ( $what eq "version" ) {
+- /^libcurl ([\.\d]+(-DEV)?)$/ ;
+- $curlconfigversion = $1;
++ if($filever =~ /^libcurl ([\.\d]+(-DEV)?)$/) {
++ $curlconfigversion = $1;
++ }
++ else {
++ $curlconfigversion = "illegal value";
++ }
+ }
+ else {
+ # Convert hex version to decimal for comparison's sake
+- /^(..)(..)(..)$/ ;
+- $curlconfigversion = hex($1) . "." . hex($2) . "." . hex($3);
++ if($filever =~ /^(..)(..)(..)$/) {
++ $curlconfigversion = hex($1) . "." . hex($2) . "." . hex($3);
++ }
++ else {
++ $curlconfigversion = "illegal value";
++ }
+
+ # Strip off the -DEV from the curl version if it's there
+ $version =~ s/-DEV$//;
+--
+1.7.4.4
+