forked from pool/cpprest
Accepting request 635518 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/635518 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpprest?expand=0&rev=14
This commit is contained in:
@@ -1,3 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 13 05:27:01 UTC 2018 - antoine.belvire@opensuse.org
|
||||
|
||||
- Update to 2.10.6:
|
||||
+ Fix clang build error (gh#Microsoft/cpprestsdk#844).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 28 18:48:32 UTC 2018 - antoine.belvire@opensuse.org
|
||||
|
||||
- Update to 2.10.5:
|
||||
* Fix incorrect `cpprest/version.h`.
|
||||
- Update to 2.10.4:
|
||||
* Add a `.clang-format` to enable consistent formatting.
|
||||
* Add support for `Host:` headers changing the checked CNAME
|
||||
field for SSL certificates in WinHTTP and Asio.
|
||||
* Pass 0666 to open() for creating files to better match the
|
||||
default behavior for other http clients (wget, etc).
|
||||
* Fix a build issue with clang
|
||||
* Teach cmake to respect the GNUInstallDirs variables
|
||||
* Improve handling of dead connections in the connection pool on
|
||||
Asio.
|
||||
* Improve error handling in the accept() call in `http_listener`
|
||||
* Improve the iOS buildsystem
|
||||
- Update to 2.10.3:
|
||||
* Add a root `CMakeLists.txt` to improve support for VS2017 Open
|
||||
Folder.
|
||||
* Improve support for `/permissive-` in MSVC
|
||||
* Fix a regression due to compression support; we no longer fail
|
||||
on unknown Content-Encoding headers if we did not set
|
||||
Accepts-Encoding
|
||||
* Fix build failure with boost 1.63
|
||||
* Suppress and fix some warnings with new versions of gcc and
|
||||
clang
|
||||
- Drop cpprestsdk-2.10.2-fix-gcc8.patch (fixed upstream).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 17 11:09:02 UTC 2018 - astieger@suse.com
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
%define major 2
|
||||
%define minor 10
|
||||
Name: cpprest
|
||||
Version: 2.10.2
|
||||
Version: 2.10.6
|
||||
Release: 0
|
||||
Summary: C++ REST library
|
||||
# main: MIT (license.txt)
|
||||
@@ -31,8 +31,7 @@ Summary: C++ REST library
|
||||
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
|
||||
Patch0: cpprestsdk-2.10.2-fix-gcc8.patch
|
||||
Source: https://github.com/Microsoft/cpprestsdk/archive/v%{version}/cpprestsdk-%{version}.tar.gz
|
||||
BuildRequires: cmake >= 3.0
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: openssl-devel >= 1.0
|
||||
@@ -77,7 +76,6 @@ Development files.
|
||||
|
||||
%prep
|
||||
%setup -q -n cpprestsdk-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
From 212536f9d66400bef4400c55efd05dd01303c035 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Stieger <astieger@suse.com>
|
||||
Date: Sun, 17 Jun 2018 13:00:05 +0200
|
||||
Subject: [PATCH] Fix gcc8 error/warning -Werror=format-truncation=
|
||||
|
||||
utilities::datetime::to_string(): datetime_str and buf were oversized
|
||||
for fitting into output without possible trunctation
|
||||
---
|
||||
Release/src/utilities/asyncrt_utils.cpp | 7 ++++---
|
||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Release/src/utilities/asyncrt_utils.cpp b/Release/src/utilities/asyncrt_utils.cpp
|
||||
index 0e62bdee..be38907c 100644
|
||||
--- a/Release/src/utilities/asyncrt_utils.cpp
|
||||
+++ b/Release/src/utilities/asyncrt_utils.cpp
|
||||
@@ -691,12 +691,13 @@ utility::string_t datetime::to_string(date_format format) const
|
||||
{
|
||||
// Append fractional second, which is a 7-digit value with no trailing zeros
|
||||
// This way, '1200' becomes '00012'
|
||||
- char buf[9] = { 0 };
|
||||
+ const int max_frac_length = 8;
|
||||
+ char buf[max_frac_length+1] = { 0 };
|
||||
snprintf(buf, sizeof(buf), ".%07ld", (long int)frac_sec);
|
||||
// trim trailing zeros
|
||||
- for (int i = 7; buf[i] == '0'; i--) buf[i] = '\0';
|
||||
+ for (int i = max_frac_length-1; buf[i] == '0'; i--) buf[i] = '\0';
|
||||
// format the datetime into a separate buffer
|
||||
- char datetime_str[max_dt_length+1] = {0};
|
||||
+ char datetime_str[max_dt_length-max_frac_length-1+1] = {0};
|
||||
strftime(datetime_str, sizeof(datetime_str), "%Y-%m-%dT%H:%M:%S", &datetime);
|
||||
// now print this buffer into the output buffer
|
||||
snprintf(output, sizeof(output), "%s%sZ", datetime_str, buf);
|
||||
--
|
||||
2.16.4
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fb0b611007732d8de9528bc37bd67468e7ef371672f89c88f225f73cdc4ffcf1
|
||||
size 2060497
|
||||
3
cpprestsdk-2.10.6.tar.gz
Normal file
3
cpprestsdk-2.10.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5fecccc779b077f18acf0f7601b19b39c3da963498ed5b10bb2700dccfe66c5a
|
||||
size 2069474
|
||||
Reference in New Issue
Block a user