OBS User unknown 2007-02-02 15:10:02 +00:00 committed by Git OBS Bridge
parent aa3f125bbb
commit 9eed96053c
7 changed files with 83 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2980815e53f4caeafc5e35d183d9379bcaaec49f759be1a4ac628cfb6c392fe0
size 1543007

View File

@ -0,0 +1,30 @@
--- lib/ldap.c
+++ lib/ldap.c
@@ -204,7 +204,10 @@ static dynafunc DynaGetFunction(const ch
* cannot typecast a data pointer to a function pointer, but that's
* exactly what we need to do here to avoid compiler warnings on picky
* compilers! */
- *(void**) (&func) = dlsym(libldap, name);
+ /* mmarek@suse.cz: I guess we can live with the void* -> funcptr conversion
+ * on systems where dlsym is supported... anyway less harm that risking
+ * strict aliasing bugs... */
+ func = dlsym(libldap, name);
}
#elif defined(WIN32)
if (libldap) {
--- lib/connect.c
+++ lib/connect.c
@@ -384,11 +384,10 @@ static CURLcode bindlocal(struct connect
if( bind(sockfd, sock, socksize) >= 0) {
/* we succeeded to bind */
struct Curl_sockaddr_storage add;
- size_t size;
+ socklen_t size;
size = sizeof(add);
- if(getsockname(sockfd, (struct sockaddr *) &add,
- (socklen_t *)&size)<0) {
+ if(getsockname(sockfd, (struct sockaddr *) &add, &size)<0) {
failf(data, "getsockname() failed");
return CURLE_HTTP_PORT_FAILED;
}

3
curl-7.16.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc8dcda5a933c370c15c832bf1e7316a0690f473fdd6000454d233edaa33bc23
size 1566391

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Fri Jan 26 09:55:19 CET 2007 - mmarek@suse.cz
- remove libcurl.a and libcurl.la (rationale: there are security
updates of curl from time to time, so statically linking it is
not acceptable)
-------------------------------------------------------------------
Thu Jan 25 15:36:29 CET 2007 - mmarek@suse.cz
- fixed strict aliasing warnings
-------------------------------------------------------------------
Tue Dec 19 14:59:34 CET 2006 - mmarek@suse.cz
- updated to 7.16.0
* removed CURLOPT_SOURCE_* options and --3p* command line option
(breaks python-curl atm)
* for a complete list of changes, see
/usr/share/doc/packages/curl/RELEASE-NOTES
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 15 11:23:58 CEST 2006 - mmarek@suse.cz Tue Aug 15 11:23:58 CEST 2006 - mmarek@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package curl (Version 7.15.5) # spec file for package curl (Version 7.16.0)
# #
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -14,16 +14,17 @@ Name: curl
BuildRequires: libidn-devel openssl-devel BuildRequires: libidn-devel openssl-devel
Obsoletes: curl_ssl Obsoletes: curl_ssl
Provides: curl_ssl Provides: curl_ssl
Version: 7.15.5 Version: 7.16.0
Release: 12 Release: 2
Autoreqprov: on Autoreqprov: on
License: MOZILLA PUBLIC LICENSE (MPL/NPL) License: MOZILLA PUBLIC LICENSE (MPL/NPL)
Group: Productivity/Networking/Web/Utilities Group: Productivity/Networking/Web/Utilities
Summary: A Tool for Transferring Data from URLs Summary: A Tool for Transferring Data from URLs
URL: http://curl.haxx.se/ URL: http://curl.haxx.se/
Source: %{name}-%{version}.tar.bz2 Source: curl-%{version}.tar.bz2
Patch2: %{name}-7.15.1-lfs.patch Patch1: curl-lfs.patch
Patch3: %{name}-7.15.1-ipv6tests.patch Patch2: curl-ipv6tests.patch
Patch3: curl-7.16.0-strict-aliasing.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -57,6 +58,7 @@ Authors:
%prep %prep
%setup -q %setup -q
%patch1
%patch2 %patch2
%patch3 %patch3
@ -68,11 +70,12 @@ export CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector" export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
%endif %endif
./configure \ ./configure \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--enable-ipv6 \ --enable-ipv6 \
--with-ssl \ --with-ssl \
--libdir=%{_libdir} \ --libdir=%{_libdir} \
--enable-hidden-symbols --enable-hidden-symbols \
--disable-static
make %{?jobs:-j%jobs} make %{?jobs:-j%jobs}
%if %{?_with_testsuite:1}0 %if %{?_with_testsuite:1}0
make check make check
@ -81,6 +84,7 @@ make check
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}
rm $RPM_BUILD_ROOT%_libdir/libcurl.la
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -93,11 +97,10 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc CHANGES README %doc CHANGES README RELEASE-NOTES
%doc docs/{BUGS,CONTRIBUTE,FAQ,FEATURES,INTERNALS,MANUAL,RESOURCES,TODO,TheArtOfHttpScripting} %doc docs/{BUGS,CONTRIBUTE,FAQ,FEATURES,INTERNALS,MANUAL,RESOURCES,TODO,TheArtOfHttpScripting}
%{_prefix}/bin/curl %{_prefix}/bin/curl
%{_libdir}/libcurl.so.* %{_libdir}/libcurl.so.*
%{_libdir}/libcurl.la
%doc %{_mandir}/man1/curl.1.gz %doc %{_mandir}/man1/curl.1.gz
/usr/share/curl /usr/share/curl
@ -105,14 +108,24 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root) %defattr(-,root,root)
%{_prefix}/bin/curl-config %{_prefix}/bin/curl-config
%{_prefix}/include/curl %{_prefix}/include/curl
#%{_prefix}/lib/libcurl.la
%{_libdir}/libcurl.a
%{_libdir}/libcurl.so %{_libdir}/libcurl.so
%{_libdir}/pkgconfig/libcurl.pc %{_libdir}/pkgconfig/libcurl.pc
%doc %{_mandir}/man1/curl-config.1.gz %doc %{_mandir}/man1/curl-config.1.gz
%doc %{_mandir}/man3/* %doc %{_mandir}/man3/*
%changelog -n curl %changelog -n curl
* Fri Jan 26 2007 - mmarek@suse.cz
- remove libcurl.a and libcurl.la (rationale: there are security
updates of curl from time to time, so statically linking it is
not acceptable)
* Thu Jan 25 2007 - mmarek@suse.cz
- fixed strict aliasing warnings
* Tue Dec 19 2006 - mmarek@suse.cz
- updated to 7.16.0
* removed CURLOPT_SOURCE_* options and --3p* command line option
(breaks python-curl atm)
* for a complete list of changes, see
/usr/share/doc/packages/curl/RELEASE-NOTES
* Tue Aug 15 2006 - mmarek@suse.cz * Tue Aug 15 2006 - mmarek@suse.cz
- configure with --enable-hidden-symbols to compile libcurl with - configure with --enable-hidden-symbols to compile libcurl with
-fvisibility=hidden, exporting only symbols from the API -fvisibility=hidden, exporting only symbols from the API