diff options
author | Gianfranco Costamagna <costamagna.gianfranco@gmail.com> | 2018-08-18 15:26:59 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-19 16:09:28 -0700 |
commit | 3ceefec415df8acca98460c4ed91a5fa6510c1b9 (patch) | |
tree | 8f4ff0ff2115822b4a7bc8602333563af73e0c49 | |
parent | 0d614c4220d29da14eba7fccbb21fa6b53d63fec (diff) | |
download | meta-openembedded-3ceefec415df8acca98460c4ed91a5fa6510c1b9.tar.gz |
cpprest: bump version to 2.10.5, refresh patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 files changed, 46 insertions, 88 deletions
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch deleted file mode 100644 index 9fcffbfed2..0000000000 --- a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/732.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | From 3d8caad3f459d8b2136c5bc9be7fdec53e5d777d Mon Sep 17 00:00:00 2001 | ||
2 | From: Wu Yongwei <wuyongwei@gmail.com> | ||
3 | Date: Tue, 10 Apr 2018 11:29:12 +0800 | ||
4 | Subject: [PATCH] Fix a build problem on Clang. | ||
5 | |||
6 | AND_CAPTURE_MEMBER_FUNCTION_POINTERS workaround had a check for GCC, | ||
7 | but did not exclude Clang. Clang has a fake GCC version of 4.2, thus | ||
8 | caused problems. | ||
9 | --- | ||
10 | Release/src/http/client/http_client_asio.cpp | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/Release/src/http/client/http_client_asio.cpp b/Release/src/http/client/http_client_asio.cpp | ||
14 | index 4ba3e085..fca4bb5b 100644 | ||
15 | --- a/Release/src/http/client/http_client_asio.cpp | ||
16 | +++ b/Release/src/http/client/http_client_asio.cpp | ||
17 | @@ -47,7 +47,7 @@ | ||
18 | #include <unordered_set> | ||
19 | #include <memory> | ||
20 | |||
21 | -#if defined(__GNUC__) | ||
22 | +#if defined(__GNUC__) && !defined(__clang__) | ||
23 | |||
24 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) | ||
25 | #define AND_CAPTURE_MEMBER_FUNCTION_POINTERS | ||
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/fix-cmake-install.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.3/fix-cmake-install.patch deleted file mode 100644 index 4d03e6d282..0000000000 --- a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/fix-cmake-install.patch +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | Description: install cmake files into /usr/lib/cmake/cpprestsdk | ||
2 | Author: Gianfranco Costamagna <locutusofborg@debian.org> | ||
3 | Upstream-Status: https://github.com/Microsoft/cpprestsdk/pull/737 | ||
4 | Forwarded: https://github.com/Microsoft/cpprestsdk/pull/737 | ||
5 | Last-Update: 2018-04-19 | ||
6 | |||
7 | Index: cpprest/Release/CMakeLists.txt | ||
8 | =================================================================== | ||
9 | --- cpprest.orig/Release/CMakeLists.txt | ||
10 | +++ cpprest/Release/CMakeLists.txt | ||
11 | @@ -18,7 +18,6 @@ | ||
12 | set(WERROR ON CACHE BOOL "Treat Warnings as Errors.") | ||
13 | set(CPPREST_EXCLUDE_WEBSOCKETS OFF CACHE BOOL "Exclude websockets functionality.") | ||
14 | set(CPPREST_EXCLUDE_COMPRESSION OFF CACHE BOOL "Exclude compression functionality.") | ||
15 | -set(CPPREST_EXPORT_DIR lib/cpprestsdk CACHE STRING "Directory to install CMake config files.") | ||
16 | set(CPPREST_INSTALL_HEADERS ON CACHE BOOL "Install header files.") | ||
17 | set(CPPREST_INSTALL ON CACHE BOOL "Add install commands.") | ||
18 | |||
19 | @@ -63,6 +62,9 @@ | ||
20 | include(cmake/cpprest_find_openssl.cmake) | ||
21 | include(cmake/cpprest_find_websocketpp.cmake) | ||
22 | include(CheckIncludeFiles) | ||
23 | +if(UNIX) | ||
24 | +include(GNUInstallDirs) | ||
25 | +endif(UNIX) | ||
26 | |||
27 | find_package(Threads REQUIRED) | ||
28 | if(THREADS_HAVE_PTHREAD_ARG) | ||
29 | Index: cpprest/Release/src/CMakeLists.txt | ||
30 | =================================================================== | ||
31 | --- cpprest.orig/Release/src/CMakeLists.txt | ||
32 | +++ cpprest/Release/src/CMakeLists.txt | ||
33 | @@ -253,21 +253,21 @@ | ||
34 | install( | ||
35 | TARGETS ${CPPREST_TARGETS} | ||
36 | EXPORT cpprestsdk-targets | ||
37 | - RUNTIME DESTINATION bin | ||
38 | - LIBRARY DESTINATION lib | ||
39 | - ARCHIVE DESTINATION lib | ||
40 | + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
41 | + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
42 | + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
43 | ) | ||
44 | |||
45 | configure_file(../cmake/cpprestsdk-config.in.cmake "${CMAKE_CURRENT_BINARY_DIR}/cpprestsdk-config.cmake" @ONLY) | ||
46 | |||
47 | install( | ||
48 | FILES "${CMAKE_CURRENT_BINARY_DIR}/cpprestsdk-config.cmake" | ||
49 | - DESTINATION ${CPPREST_EXPORT_DIR} | ||
50 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake | ||
51 | ) | ||
52 | install( | ||
53 | EXPORT cpprestsdk-targets | ||
54 | FILE cpprestsdk-targets.cmake | ||
55 | NAMESPACE cpprestsdk:: | ||
56 | - DESTINATION ${CPPREST_EXPORT_DIR} | ||
57 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake | ||
58 | ) | ||
59 | endif() | ||
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/747.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/747.patch index 94bb005989..81a76ea9fc 100644 --- a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/747.patch +++ b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/747.patch | |||
@@ -1,4 +1,5 @@ | |||
1 | Description: fix for upstream issue 747, clang 6 build error | 1 | Description: fix for upstream issue 747, clang 6 build error |
2 | Forwarded: https://github.com/Microsoft/cpprestsdk/pull/844 | ||
2 | From: rozhuk-im | 3 | From: rozhuk-im |
3 | --- a/Release/include/pplx/pplxlinux.h 2018-04-29 16:22:39.927675000 +0300 | 4 | --- a/Release/include/pplx/pplxlinux.h 2018-04-29 16:22:39.927675000 +0300 |
4 | +++ b/Release/include/pplx/pplxlinux.h 2018-04-29 16:22:57.809537000 +0300 | 5 | +++ b/Release/include/pplx/pplxlinux.h 2018-04-29 16:22:57.809537000 +0300 |
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.5/845.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/845.patch new file mode 100644 index 0000000000..8a349aef78 --- /dev/null +++ b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/845.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From c4a09f3d29a57022e03e2849f04c111a57a6a388 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> | ||
3 | Date: Sat, 18 Aug 2018 14:59:38 +0200 | ||
4 | Subject: [PATCH] Fix default installation path | ||
5 | |||
6 | --- | ||
7 | Release/CMakeLists.txt | 2 +- | ||
8 | Release/src/CMakeLists.txt | 4 ++-- | ||
9 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
10 | |||
11 | diff --git a/Release/CMakeLists.txt b/Release/CMakeLists.txt | ||
12 | index c93d3cc49..d20b4b070 100644 | ||
13 | --- a/Release/CMakeLists.txt | ||
14 | +++ b/Release/CMakeLists.txt | ||
15 | @@ -18,7 +18,7 @@ enable_testing() | ||
16 | set(WERROR ON CACHE BOOL "Treat Warnings as Errors.") | ||
17 | set(CPPREST_EXCLUDE_WEBSOCKETS OFF CACHE BOOL "Exclude websockets functionality.") | ||
18 | set(CPPREST_EXCLUDE_COMPRESSION OFF CACHE BOOL "Exclude compression functionality.") | ||
19 | -set(CPPREST_EXPORT_DIR lib/cpprestsdk CACHE STRING "Directory to install CMake config files.") | ||
20 | +set(CPPREST_EXPORT_DIR cmake CACHE STRING "Directory to install CMake config files.") | ||
21 | set(CPPREST_INSTALL_HEADERS ON CACHE BOOL "Install header files.") | ||
22 | set(CPPREST_INSTALL ON CACHE BOOL "Add install commands.") | ||
23 | |||
24 | diff --git a/Release/src/CMakeLists.txt b/Release/src/CMakeLists.txt | ||
25 | index a34605bda..050ff71fc 100644 | ||
26 | --- a/Release/src/CMakeLists.txt | ||
27 | +++ b/Release/src/CMakeLists.txt | ||
28 | @@ -262,12 +262,12 @@ if(CPPREST_INSTALL) | ||
29 | |||
30 | install( | ||
31 | FILES "${CMAKE_CURRENT_BINARY_DIR}/cpprestsdk-config.cmake" | ||
32 | - DESTINATION ${CPPREST_EXPORT_DIR} | ||
33 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/${CPPREST_EXPORT_DIR} | ||
34 | ) | ||
35 | install( | ||
36 | EXPORT cpprestsdk-targets | ||
37 | FILE cpprestsdk-targets.cmake | ||
38 | NAMESPACE cpprestsdk:: | ||
39 | - DESTINATION ${CPPREST_EXPORT_DIR} | ||
40 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/${CPPREST_EXPORT_DIR} | ||
41 | ) | ||
42 | endif() | ||
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/disable-float-tests.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/disable-float-tests.patch index 75f74ec658..75f74ec658 100644 --- a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/disable-float-tests.patch +++ b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/disable-float-tests.patch | |||
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/disable-outside-tests.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/disable-outside-tests.patch index b9b3591c3a..b9b3591c3a 100644 --- a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/disable-outside-tests.patch +++ b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/disable-outside-tests.patch | |||
diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/disable-test-timeouts.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/disable-test-timeouts.patch index 93c3e8a269..93c3e8a269 100644 --- a/meta-oe/recipes-support/cpprest/cpprest-2.10.3/disable-test-timeouts.patch +++ b/meta-oe/recipes-support/cpprest/cpprest-2.10.5/disable-test-timeouts.patch | |||
diff --git a/meta-oe/recipes-support/cpprest/cpprest_2.10.3.bb b/meta-oe/recipes-support/cpprest/cpprest_2.10.5.bb index addacbbd25..040c43ff0e 100644 --- a/meta-oe/recipes-support/cpprest/cpprest_2.10.3.bb +++ b/meta-oe/recipes-support/cpprest/cpprest_2.10.5.bb | |||
@@ -9,13 +9,12 @@ SRC_URI = "git://github.com/Microsoft/cpprestsdk.git;protocol=https;branch=maste | |||
9 | file://disable-outside-tests.patch \ | 9 | file://disable-outside-tests.patch \ |
10 | file://disable-test-timeouts.patch \ | 10 | file://disable-test-timeouts.patch \ |
11 | file://disable-float-tests.patch \ | 11 | file://disable-float-tests.patch \ |
12 | file://fix-cmake-install.patch \ | ||
13 | file://747.patch \ | 12 | file://747.patch \ |
14 | file://732.patch \ | 13 | file://845.patch \ |
15 | " | 14 | " |
16 | 15 | ||
17 | # tag 2.10.3 | 16 | # tag 2.10.5 |
18 | SRCREV= "e388a2e523f4d0b6aee2bb923637d82d8b969556" | 17 | SRCREV= "25d6b26f7038eeec3b51e2e0a70960a8e34fcd68" |
19 | 18 | ||
20 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
21 | 20 | ||