SHA256
8
0
forked from pool/cpprest

Accepting request 541235 from home:AndreasStieger:branches:devel:libraries:c_c++

cpprest 2.10.0

OBS-URL: https://build.opensuse.org/request/show/541235
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=24
This commit is contained in:
2017-11-13 09:43:30 +00:00
committed by Git OBS Bridge
parent 4f110edea6
commit 1d6da9d658
6 changed files with 46 additions and 56 deletions

View File

@@ -1,11 +0,0 @@
Index: cpprestsdk-2.9.0/Release/tests/common/UnitTestpp/CMakeLists.txt
===================================================================
--- cpprestsdk-2.9.0.orig/Release/tests/common/UnitTestpp/CMakeLists.txt
+++ cpprestsdk-2.9.0/Release/tests/common/UnitTestpp/CMakeLists.txt
@@ -49,4 +49,4 @@ elseif(WIN32)
endif()
add_library(unittestpp ${UT_SOURCES})
-target_link_libraries(unittestpp ${ANDROID_STL_FLAGS})
\ No newline at end of file
+target_link_libraries(unittestpp ${ANDROID_STL_FLAGS} pthread)

View File

@@ -1,3 +1,42 @@
-------------------------------------------------------------------
Mon Nov 13 09:32:03 UTC 2017 - astieger@suse.com
- cpprest 2.10.0:
* build system fixes:
+ build system updates
+ cmake 3.0 required
* Fix static library builds of test_runner on non-Windows platforms
+ compatibility fixes:
+ Improve compatibility with glibc 2.26
+ Improve compatibility with clang on Linux
+ Improve compatibility with icc 17.0
+ Improve compatibility with openssl 1.1.0
+ Fix building with LibreSSL
* Fix several race conditions and memory leaks in the ASIO http_client
* Fix process termination bug around certain exceptional cases in all http_clients
* Add all remaining official HTTP status codes to http::status_codes
* Add convenience wrappers json::value::has_T_field(T) for inspecting object values
* Fix a race condition in the ASIO client during header parsing
* Fix error when handling responses of type NoContent, NotModified, or from 100 to 199
* Enable specifying the User Agent used in OAuth2 requests
* Add http_request::get_remote_address() to expose the client's IP address for http_listener
* Fix a bug in the ASIO http_client where the proxy is passed the same credentials as the target host
* Make uri_builder::to_string() and uri_builder::to_uri() const
* Add handling for the host wildchar + to the ASIO http_listener
* Handle malformed URL requests to the ASIO http_listener instead of crashing
* Fix a race condition in the websocketpp websocket_client
* Fix several races in the ASIO http_listener which result in memory leaks or use after free of the connection objects
* Add http_client_config::set_nativesessionhandle_options() which enables customization of the session handle on Windows Desktop
* Improve UTF8/16 conversions from 6s per 1MB to 3s per 1GB (2000x improvement)
* Enable limited IPv6 support to http_client and http_server, depending on the underlying platform
* Fix a bug in base64 encoding that previously read beyond the input array, causing segfaults/AVs
* Add compression support (deflate and gzip) for ASIO http_clients based on Zlib
* Fix a memory leak in the UWP http_client when processing headers
* Fix inappropriate handling of certain connections errors in the ASIO http_listener
- drop upstreamed or obsolete patches:
* cpprest-pthread.patch
* cpprestsdk-2.9.1-Fix-build-error-with-glibc-2.26-xlocale.h.patch
-------------------------------------------------------------------
Wed Aug 30 08:48:08 UTC 2017 - astieger@suse.com

View File

@@ -17,9 +17,9 @@
%define major 2
%define minor 9
%define minor 10
Name: cpprest
Version: 2.9.1
Version: 2.10.0
Release: 0
Summary: C++ REST library
# main: MIT (license.txt)
@@ -28,13 +28,11 @@ Summary: C++ REST library
# sha1/sha1.hpp: BSD-3-Clause (ThirdPartyNotices.txt)
# common/md5.hpp: Zlib (ThirdPartyNotices.txt)
# utf8_validation.hpp: MIT (ThirdPartyNotices.txt)
License: MIT and BSD-3-Clause and Zlib
License: MIT AND BSD-3-Clause AND Zlib
Group: Development/Libraries/C and C++
Url: https://github.com/Microsoft/cpprestsdk
Source: https://github.com/Microsoft/cpprestsdk/archive/v%{version}.tar.gz#/cpprestsdk-%{version}.tar.gz
Patch1: cpprest-pthread.patch
Patch2: cpprestsdk-2.9.1-Fix-build-error-with-glibc-2.26-xlocale.h.patch
BuildRequires: cmake >= 2.6
BuildRequires: cmake >= 3.0
BuildRequires: gcc-c++
BuildRequires: openssl-devel >= 1.0
%if 0%{?suse_version} > 1325
@@ -77,8 +75,6 @@ Development files.
%prep
%setup -q -n cpprestsdk-%{version}
%patch1 -p1
%patch2 -p1
%build
%cmake \

3
cpprestsdk-2.10.0.tar.gz Normal file
View File

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

View File

@@ -1,34 +0,0 @@
From d4f707abb4575aacf43ec02d30fa10afed464c7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Wolfgang=20St=C3=B6ggl?= <c72578@yahoo.de>
Date: Thu, 13 Jul 2017 10:00:12 +0200
Subject: [PATCH] Fix build error with glibc 2.26, xlocale.h
- Do not include xlocale.h on systems, where __GLIBC__ is defined
xlocale.h has been removed from glibc 2.26
The include of locale.h in asyncrt_utils.h is sufficient
Further details:
https://sourceware.org/git/?p=glibc.git;a=commit;h=f0be25b
- Fixes https://github.com/Microsoft/cpprestsdk/issues/485
---
Release/include/cpprest/asyncrt_utils.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Release/include/cpprest/asyncrt_utils.h b/Release/include/cpprest/asyncrt_utils.h
index 169ec3a2..fac70a91 100644
--- a/Release/include/cpprest/asyncrt_utils.h
+++ b/Release/include/cpprest/asyncrt_utils.h
@@ -29,7 +29,10 @@
#ifndef _WIN32
#include <boost/algorithm/string.hpp>
-#if !defined(ANDROID) && !defined(__ANDROID__) // CodePlex 269
+#if !defined(ANDROID) && !defined(__ANDROID__) && !defined(__GLIBC__) // CodePlex 269
+/* Systems using glibc: xlocale.h has been removed from glibc 2.26
+ The above include of locale.h is sufficient
+ Further details: https://sourceware.org/git/?p=glibc.git;a=commit;h=f0be25b6336db7492e47d2e8e72eb8af53b5506d */
#include <xlocale.h>
#endif
#endif
--
2.14.1

View File

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