Accepting request 102533 from devel:libraries:c_c++
- Update to version curl 7.24.0 - refresh patches to fix broken build (forwarded request 102532 from elvigia) OBS-URL: https://build.opensuse.org/request/show/102533 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/curl?expand=0&rev=69
This commit is contained in:
commit
ee9edde0ed
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eff6cfd9d561f0d5e08abd99112dc13b2593560c748a78801366f4604c9062cb
|
||||
size 1937159
|
3
curl-7.24.0.tar.lzma
Normal file
3
curl-7.24.0.tar.lzma
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cd683ee8be137ed8a8e97d42fd3cc94f88f63d478b83d4abe38e31b6281e2268
|
||||
size 1973811
|
12
curl.changes
12
curl.changes
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 2 18:47:10 UTC 2012 - crrodriguez@opensuse.org
|
||||
|
||||
- Update to version curl 7.24.0
|
||||
- refresh patches to fix broken build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 18 13:49:56 CET 2012 - dmueller@suse.de
|
||||
|
||||
- use the rpmoptflags unconditionally, don't do own compiler flag
|
||||
magic. Fixes debuginfo package built
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 28 10:30:28 UTC 2011 - mmarek@suse.cz
|
||||
|
||||
|
23
curl.spec
23
curl.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package curl
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -21,7 +21,12 @@
|
||||
%bcond_without testsuite
|
||||
|
||||
Name: curl
|
||||
BuildRequires: libidn-devel lzma openldap2-devel pkg-config zlib-devel
|
||||
BuildRequires: libidn-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: lzma
|
||||
BuildRequires: openldap2-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: zlib-devel
|
||||
%if %{with openssl}
|
||||
BuildRequires: openssl-devel
|
||||
%endif
|
||||
@ -29,27 +34,29 @@ BuildRequires: openssl-devel
|
||||
BuildRequires: mozilla-nss-devel
|
||||
%endif
|
||||
BuildRequires: krb5-devel
|
||||
BuildRequires: libssh2-devel openssh
|
||||
BuildRequires: libssh2-devel
|
||||
BuildRequires: openssh
|
||||
BuildRequires: libcares-devel
|
||||
%if 0%{?_with_stunnel:1}
|
||||
# used by the testsuite
|
||||
BuildRequires: stunnel
|
||||
%endif
|
||||
Version: 7.23.1
|
||||
Release: 1
|
||||
Version: 7.24.0
|
||||
Release: 0
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: curl-64bit
|
||||
%endif
|
||||
#
|
||||
Summary: A Tool for Transferring Data from URLs
|
||||
License: BSD-3-Clause ; MIT
|
||||
Group: Productivity/Networking/Web/Utilities
|
||||
Summary: A Tool for Transferring Data from URLs
|
||||
Url: http://curl.haxx.se/
|
||||
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
|
||||
Source2: baselibs.conf
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Patch: libcurl-ocloexec.patch
|
||||
Patch1: dont-mess-with-rpmoptflags.diff
|
||||
|
||||
%description
|
||||
Curl is a client to get documents and files from or send documents to a
|
||||
@ -81,9 +88,11 @@ user interaction or any kind of interactivity.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -p1
|
||||
%patch
|
||||
%patch1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
# local hack to make curl-config --libs stop printing libraries it depends on
|
||||
# (currently, libtool sets link_all_deplibs=(yes|unknown) everywhere,
|
||||
# will hopefully change in the future)
|
||||
|
13
dont-mess-with-rpmoptflags.diff
Normal file
13
dont-mess-with-rpmoptflags.diff
Normal file
@ -0,0 +1,13 @@
|
||||
--- configure.ac.orig
|
||||
+++ configure.ac
|
||||
@@ -279,10 +279,6 @@ dnl platform/compiler/architecture speci
|
||||
dnl **********************************************************************
|
||||
|
||||
CURL_CHECK_COMPILER
|
||||
-CURL_SET_COMPILER_BASIC_OPTS
|
||||
-CURL_SET_COMPILER_DEBUG_OPTS
|
||||
-CURL_SET_COMPILER_OPTIMIZE_OPTS
|
||||
-CURL_SET_COMPILER_WARNING_OPTS
|
||||
|
||||
if test "$compiler_id" = "INTEL_UNIX_C"; then
|
||||
#
|
@ -7,24 +7,9 @@ To make it portable you have to test O_CLOEXEC support at *runtime*
|
||||
compile time is not enough.
|
||||
|
||||
|
||||
diff --git a/lib/connect.c b/lib/connect.c
|
||||
index 2a1876e..4a72f6a 100644
|
||||
--- a/lib/connect.c
|
||||
+++ b/lib/connect.c
|
||||
@@ -881,7 +881,7 @@ singleipconnect(struct connectdata *conn,
|
||||
(struct curl_sockaddr *)&addr);
|
||||
else
|
||||
/* opensocket callback not set, so simply create the socket now */
|
||||
- sockfd = socket(addr.family, addr.socktype, addr.protocol);
|
||||
+ sockfd = socket(addr.family, addr.socktype | SOCK_CLOEXEC, addr.protocol);
|
||||
|
||||
if(sockfd == CURL_SOCKET_BAD)
|
||||
/* no socket, no connection */
|
||||
diff --git a/lib/cookie.c b/lib/cookie.c
|
||||
index 41ccdbe..35cfca3 100644
|
||||
--- a/lib/cookie.c
|
||||
+++ b/lib/cookie.c
|
||||
@@ -736,7 +736,7 @@ struct CookieInfo *Curl_cookie_init(struct SessionHandle *data,
|
||||
--- lib/cookie.c.orig
|
||||
+++ lib/cookie.c
|
||||
@@ -736,7 +736,7 @@ struct CookieInfo *Curl_cookie_init(stru
|
||||
fp = NULL;
|
||||
}
|
||||
else
|
||||
@ -33,7 +18,7 @@ index 41ccdbe..35cfca3 100644
|
||||
|
||||
c->newsession = newsession; /* new session? */
|
||||
|
||||
@@ -1060,7 +1060,7 @@ static int cookie_output(struct CookieInfo *c, const char *dumphere)
|
||||
@@ -1060,7 +1060,7 @@ static int cookie_output(struct CookieIn
|
||||
use_stdout=TRUE;
|
||||
}
|
||||
else {
|
||||
@ -42,11 +27,9 @@ index 41ccdbe..35cfca3 100644
|
||||
if(!out)
|
||||
return 1; /* failure */
|
||||
}
|
||||
diff --git a/lib/file.c b/lib/file.c
|
||||
index 4447c73..7e15b21 100644
|
||||
--- a/lib/file.c
|
||||
+++ b/lib/file.c
|
||||
@@ -249,7 +249,7 @@ static CURLcode file_connect(struct connectdata *conn, bool *done)
|
||||
--- lib/file.c.orig
|
||||
+++ lib/file.c
|
||||
@@ -249,7 +249,7 @@ static CURLcode file_connect(struct conn
|
||||
fd = open_readonly(actual_path, O_RDONLY|O_BINARY);
|
||||
file->path = actual_path;
|
||||
#else
|
||||
@ -55,7 +38,7 @@ index 4447c73..7e15b21 100644
|
||||
file->path = real_path;
|
||||
#endif
|
||||
file->freepath = real_path; /* free this when done */
|
||||
@@ -336,7 +336,7 @@ static CURLcode file_upload(struct connectdata *conn)
|
||||
@@ -336,7 +336,7 @@ static CURLcode file_upload(struct conne
|
||||
return CURLE_FILE_COULDNT_READ_FILE; /* fix: better error code */
|
||||
|
||||
if(data->state.resume_from)
|
||||
@ -64,7 +47,7 @@ index 4447c73..7e15b21 100644
|
||||
else {
|
||||
int fd;
|
||||
|
||||
@@ -344,7 +344,7 @@ static CURLcode file_upload(struct connectdata *conn)
|
||||
@@ -344,7 +344,7 @@ static CURLcode file_upload(struct conne
|
||||
fd = open(file->path, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,
|
||||
conn->data->set.new_file_perms);
|
||||
#else
|
||||
@ -73,7 +56,7 @@ index 4447c73..7e15b21 100644
|
||||
conn->data->set.new_file_perms);
|
||||
#endif
|
||||
if(fd < 0) {
|
||||
@@ -352,7 +352,7 @@ static CURLcode file_upload(struct connectdata *conn)
|
||||
@@ -352,7 +352,7 @@ static CURLcode file_upload(struct conne
|
||||
return CURLE_WRITE_ERROR;
|
||||
}
|
||||
close(fd);
|
||||
@ -82,11 +65,9 @@ index 4447c73..7e15b21 100644
|
||||
}
|
||||
|
||||
if(!fp) {
|
||||
diff --git a/lib/formdata.c b/lib/formdata.c
|
||||
index cbef511..187c88b 100644
|
||||
--- a/lib/formdata.c
|
||||
+++ b/lib/formdata.c
|
||||
@@ -1156,7 +1156,7 @@ CURLcode Curl_getformdata(struct SessionHandle *data,
|
||||
--- lib/formdata.c.orig
|
||||
+++ lib/formdata.c
|
||||
@@ -1207,7 +1207,7 @@ CURLcode Curl_getformdata(struct Session
|
||||
FILE *fileread;
|
||||
|
||||
fileread = strequal("-", file->contents)?
|
||||
@ -95,7 +76,7 @@ index cbef511..187c88b 100644
|
||||
|
||||
/*
|
||||
* VMS: This only allows for stream files on VMS. Stream files are
|
||||
@@ -1292,7 +1292,7 @@ static size_t readfromfile(struct Form *form, char *buffer,
|
||||
@@ -1338,7 +1338,7 @@ static size_t readfromfile(struct Form *
|
||||
else {
|
||||
if(!form->fp) {
|
||||
/* this file hasn't yet been opened */
|
||||
@ -104,23 +85,8 @@ index cbef511..187c88b 100644
|
||||
if(!form->fp)
|
||||
return (size_t)-1; /* failure */
|
||||
}
|
||||
diff --git a/lib/ftp.c b/lib/ftp.c
|
||||
index 05f6f45..11abaa3 100644
|
||||
--- a/lib/ftp.c
|
||||
+++ b/lib/ftp.c
|
||||
@@ -907,7 +907,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
|
||||
if(ai->ai_socktype == 0)
|
||||
ai->ai_socktype = conn->socktype;
|
||||
|
||||
- portsock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
|
||||
+ portsock = socket(ai->ai_family, ai->ai_socktype | SOCK_CLOEXEC, ai->ai_protocol);
|
||||
if(portsock == CURL_SOCKET_BAD) {
|
||||
error = SOCKERRNO;
|
||||
continue;
|
||||
diff --git a/lib/hostip6.c b/lib/hostip6.c
|
||||
index 8241cb4..ac8d3d2 100644
|
||||
--- a/lib/hostip6.c
|
||||
+++ b/lib/hostip6.c
|
||||
--- lib/hostip6.c.orig
|
||||
+++ lib/hostip6.c
|
||||
@@ -45,7 +45,7 @@
|
||||
#ifdef HAVE_PROCESS_H
|
||||
#include <process.h>
|
||||
@ -139,11 +105,9 @@ index 8241cb4..ac8d3d2 100644
|
||||
if(s == CURL_SOCKET_BAD)
|
||||
/* an ipv6 address was requested but we can't get/use one */
|
||||
ipv6_works = 0;
|
||||
diff --git a/lib/if2ip.c b/lib/if2ip.c
|
||||
index 4924f73..76c94ec 100644
|
||||
--- a/lib/if2ip.c
|
||||
+++ b/lib/if2ip.c
|
||||
@@ -125,7 +125,7 @@ char *Curl_if2ip(int af, const char *interface, char *buf, int buf_size)
|
||||
--- lib/if2ip.c.orig
|
||||
+++ lib/if2ip.c
|
||||
@@ -153,7 +153,7 @@ char *Curl_if2ip(int af, const char *int
|
||||
if(len >= sizeof(req.ifr_name))
|
||||
return NULL;
|
||||
|
||||
@ -152,10 +116,8 @@ index 4924f73..76c94ec 100644
|
||||
if(CURL_SOCKET_BAD == dummy)
|
||||
return NULL;
|
||||
|
||||
diff --git a/lib/netrc.c b/lib/netrc.c
|
||||
index 6764b97..a605883 100644
|
||||
--- a/lib/netrc.c
|
||||
+++ b/lib/netrc.c
|
||||
--- lib/netrc.c.orig
|
||||
+++ lib/netrc.c
|
||||
@@ -110,7 +110,7 @@ int Curl_parsenetrc(const char *host,
|
||||
netrc_alloc = TRUE;
|
||||
}
|
||||
@ -165,11 +127,9 @@ index 6764b97..a605883 100644
|
||||
if(file) {
|
||||
char *tok;
|
||||
char *tok_buf;
|
||||
diff --git a/lib/ssluse.c b/lib/ssluse.c
|
||||
index af70fe0..54f07a4 100644
|
||||
--- a/lib/ssluse.c
|
||||
+++ b/lib/ssluse.c
|
||||
@@ -431,7 +431,7 @@ int cert_stuff(struct connectdata *conn,
|
||||
--- lib/ssluse.c.orig
|
||||
+++ lib/ssluse.c
|
||||
@@ -436,7 +436,7 @@ int cert_stuff(struct connectdata *conn,
|
||||
STACK_OF(X509) *ca = NULL;
|
||||
int i;
|
||||
|
||||
@ -178,7 +138,7 @@ index af70fe0..54f07a4 100644
|
||||
if(!f) {
|
||||
failf(data, "could not open PKCS12 file '%s'", cert_file);
|
||||
return 0;
|
||||
@@ -2280,7 +2280,7 @@ static CURLcode servercert(struct connectdata *conn,
|
||||
@@ -2316,7 +2316,7 @@ static CURLcode servercert(struct connec
|
||||
|
||||
/* e.g. match issuer name with provided issuer certificate */
|
||||
if(data->set.str[STRING_SSL_ISSUERCERT]) {
|
||||
|
Loading…
Reference in New Issue
Block a user