summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@cn.fujitsu.com>2020-04-24 11:11:09 -0700
committerKhem Raj <raj.khem@gmail.com>2020-04-25 08:32:42 -0700
commit72fd749e6423190ff5a1dbdd45d5cd4e7ebba835 (patch)
treeba546cfaa30acdb1a39912cfbd0aad515e37f90d /meta-oe/recipes-support/websocketpp/websocketpp-0.8.2
parent38ed9d2c5071e4fb22e7f0cfbe5351791f002e9a (diff)
downloadmeta-openembedded-72fd749e6423190ff5a1dbdd45d5cd4e7ebba835.tar.gz
websocketpp: upgrade 0.8.1 -> 0.8.2
0001-Replace-make_shared-with-new-in-some-cases.patch 0002-Fix-missed-entries-fix-testing.patch 771.patch 842.patch removed since they are included in 0.8.2 Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/websocketpp/websocketpp-0.8.2')
-rw-r--r--meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-Correct-clang-compiler-flags.patch32
-rw-r--r--meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-cmake-Use-GNUInstallDirs.patch35
-rw-r--r--meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/855.patch23
-rw-r--r--meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/857.patch132
4 files changed, 222 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-Correct-clang-compiler-flags.patch b/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-Correct-clang-compiler-flags.patch
new file mode 100644
index 0000000000..f1d037fae0
--- /dev/null
+++ b/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-Correct-clang-compiler-flags.patch
@@ -0,0 +1,32 @@
1From 5ccaff351297bca0e254bbfd66e3f03fef9d9c75 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 10 Jan 2020 21:54:39 -0800
4Subject: [PATCH] Correct clang compiler flags
5
6Fix misplaced quotes, this was leading to spurious ; in compiler cmdline
7Remove demanding libc++, clang can link with both libc++ and libstdc++
8and platforms have their own defaults, user can demand non defaults via
9adding it to cmake flags
10
11Upstream-Status: Submitted [https://github.com/zaphoyd/websocketpp/pull/859]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 CMakeLists.txt | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/CMakeLists.txt b/CMakeLists.txt
18index 2d13117..c17354a 100644
19--- a/CMakeLists.txt
20+++ b/CMakeLists.txt
21@@ -150,7 +150,7 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
22 endif()
23 set (WEBSOCKETPP_PLATFORM_TLS_LIBS ssl crypto)
24 set (WEBSOCKETPP_BOOST_LIBS system thread)
25- set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++0x -stdlib=libc++") # todo: is libc++ really needed here?
26+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
27 if (NOT APPLE)
28 add_definitions (-DNDEBUG -Wall -Wno-padded) # todo: should we use CMAKE_C_FLAGS for these?
29 endif ()
30--
312.24.1
32
diff --git a/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-cmake-Use-GNUInstallDirs.patch b/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-cmake-Use-GNUInstallDirs.patch
new file mode 100644
index 0000000000..0ef2e12375
--- /dev/null
+++ b/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/0001-cmake-Use-GNUInstallDirs.patch
@@ -0,0 +1,35 @@
1From 771d79eeb0ac5079482a4b3a131bbda744793e7d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 19 Dec 2019 20:07:11 -0800
4Subject: [PATCH] cmake: Use GNUInstallDirs
5
6Helps install cmakefiles in right libdir
7
8Upstream-Status: Submitted [https://github.com/zaphoyd/websocketpp/pull/854]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 CMakeLists.txt | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/CMakeLists.txt b/CMakeLists.txt
15index 2786aba..080be3e 100644
16--- a/CMakeLists.txt
17+++ b/CMakeLists.txt
18@@ -39,11 +39,13 @@ endif()
19
20 set_property(GLOBAL PROPERTY USE_FOLDERS ON)
21
22+include(GNUInstallDirs)
23+
24 set(INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files")
25 if (WIN32 AND NOT CYGWIN)
26 set (DEF_INSTALL_CMAKE_DIR cmake)
27 else ()
28- set (DEF_INSTALL_CMAKE_DIR lib/cmake/websocketpp)
29+ set (DEF_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/websocketpp)
30 endif ()
31 set (INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files")
32
33--
342.24.1
35
diff --git a/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/855.patch b/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/855.patch
new file mode 100644
index 0000000000..a1ee627b34
--- /dev/null
+++ b/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/855.patch
@@ -0,0 +1,23 @@
1From 3590d77bb9753fbbf076028e2395182ced6466ba Mon Sep 17 00:00:00 2001
2From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
3Date: Wed, 8 Jan 2020 17:59:48 +0100
4Subject: [PATCH] Fix cmake find boost with version >= 1.71
5
6For some reasons "system;thread;random;unit_test_framework" was seen as a single module, because of the quotes.
7---
8 CMakeLists.txt | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/CMakeLists.txt b/CMakeLists.txt
12index 2d13117b..9a46bc10 100644
13--- a/CMakeLists.txt
14+++ b/CMakeLists.txt
15@@ -213,7 +213,7 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
16 set (Boost_USE_MULTITHREADED TRUE)
17 set (Boost_ADDITIONAL_VERSIONS "1.39.0" "1.40.0" "1.41.0" "1.42.0" "1.43.0" "1.44.0" "1.46.1") # todo: someone who knows better spesify these!
18
19- find_package (Boost 1.39.0 COMPONENTS "${WEBSOCKETPP_BOOST_LIBS}")
20+ find_package (Boost 1.39.0 COMPONENTS ${WEBSOCKETPP_BOOST_LIBS})
21
22 if (Boost_FOUND)
23 # Boost is a project wide global dependency.
diff --git a/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/857.patch b/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/857.patch
new file mode 100644
index 0000000000..f221cd6999
--- /dev/null
+++ b/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/857.patch
@@ -0,0 +1,132 @@
1From 931a55347a322f38eb82d5f387b2924e6c7a1746 Mon Sep 17 00:00:00 2001
2From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
3Date: Thu, 9 Jan 2020 10:07:20 +0100
4Subject: [PATCH] Update SConstruct with new Python3 syntax: - new raise
5 keyword syntax - has_key deprecated method is now removed - commands
6 deprecated library is replaced by subprocess - print function fixes
7
8This should fix FTBFS against new scons 3.1.2
9https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947584
10---
11 SConstruct | 45 +++++++++++++++++++++++----------------------
12 1 file changed, 23 insertions(+), 22 deletions(-)
13
14diff --git a/SConstruct b/SConstruct
15index ae3df10b..9d1c8914 100644
16--- a/SConstruct
17+++ b/SConstruct
18@@ -1,18 +1,19 @@
19-import os, sys, commands
20+import os, sys
21+from subprocess import check_output
22 env = Environment(ENV = os.environ)
23
24 # figure out a better way to configure this
25-if os.environ.has_key('CXX'):
26+if 'CXX' in os.environ:
27 env['CXX'] = os.environ['CXX']
28
29-if os.environ.has_key('DEBUG'):
30+if 'DEBUG' in os.environ:
31 env['DEBUG'] = os.environ['DEBUG']
32
33-if os.environ.has_key('CXXFLAGS'):
34+if 'CXXFLAGS' in os.environ:
35 #env['CXXFLAGS'] = os.environ['CXXFLAGS']
36 env.Append(CXXFLAGS = os.environ['CXXFLAGS'])
37
38-if os.environ.has_key('LINKFLAGS'):
39+if 'LINKFLAGS' in os.environ:
40 #env['LDFLAGS'] = os.environ['LDFLAGS']
41 env.Append(LINKFLAGS = os.environ['LINKFLAGS'])
42
43@@ -22,24 +23,24 @@ if os.environ.has_key('LINKFLAGS'):
44 ## or set BOOST_INCLUDES and BOOST_LIBS if Boost comes with your OS distro e.g. and
45 ## needs BOOST_INCLUDES=/usr/include/boost and BOOST_LIBS=/usr/lib like Ubuntu.
46 ##
47-if os.environ.has_key('BOOSTROOT'):
48+if 'BOOSTROOT' in os.environ:
49 os.environ['BOOST_ROOT'] = os.environ['BOOSTROOT']
50
51-if os.environ.has_key('BOOST_ROOT'):
52+if 'BOOST_ROOT' in os.environ:
53 env['BOOST_INCLUDES'] = os.environ['BOOST_ROOT']
54 env['BOOST_LIBS'] = os.path.join(os.environ['BOOST_ROOT'], 'stage', 'lib')
55-elif os.environ.has_key('BOOST_INCLUDES') and os.environ.has_key('BOOST_LIBS'):
56+elif 'BOOST_INCLUDES' in os.environ and 'BOOST_LIBS' in os.environ:
57 env['BOOST_INCLUDES'] = os.environ['BOOST_INCLUDES']
58 env['BOOST_LIBS'] = os.environ['BOOST_LIBS']
59 else:
60- raise SCons.Errors.UserError, "Neither BOOST_ROOT, nor BOOST_INCLUDES + BOOST_LIBS was set!"
61+ raise SCons.Errors.UserError("Neither BOOST_ROOT, nor BOOST_INCLUDES + BOOST_LIBS were set!")
62
63 ## Custom OpenSSL
64-if os.environ.has_key('OPENSSL_PATH'):
65+if 'OPENSSL_PATH' in os.environ:
66 env.Append(CPPPATH = os.path.join(os.environ['OPENSSL_PATH'], 'include'))
67 env.Append(LIBPATH = os.environ['OPENSSL_PATH'])
68
69-if os.environ.has_key('WSPP_ENABLE_CPP11'):
70+if 'WSPP_ENABLE_CPP11' in os.environ:
71 env['WSPP_ENABLE_CPP11'] = True
72 else:
73 env['WSPP_ENABLE_CPP11'] = False
74@@ -76,7 +77,7 @@ if env['PLATFORM'].startswith('win'):
75 env['CCFLAGS'] = '%s /EHsc /GR /GS- /MD /nologo %s %s' % (warn_flags, arch_flags, opt_flags)
76 env['LINKFLAGS'] = '/INCREMENTAL:NO /MANIFEST /NOLOGO /OPT:REF /OPT:ICF /MACHINE:X86'
77 elif env['PLATFORM'] == 'posix':
78- if env.has_key('DEBUG'):
79+ if 'DEBUG' in env:
80 env.Append(CCFLAGS = ['-g', '-O0'])
81 else:
82 env.Append(CPPDEFINES = ['NDEBUG'])
83@@ -84,9 +85,9 @@ elif env['PLATFORM'] == 'posix':
84 env.Append(CCFLAGS = ['-Wall'])
85 #env['LINKFLAGS'] = ''
86 elif env['PLATFORM'] == 'darwin':
87- if not os.environ.has_key('CXX'):
88+ if not 'CXX' in os.environ:
89 env['CXX'] = "clang++"
90- if env.has_key('DEBUG'):
91+ if 'DEBUG' in env:
92 env.Append(CCFLAGS = ['-g', '-O0'])
93 else:
94 env.Append(CPPDEFINES = ['NDEBUG'])
95@@ -157,29 +158,29 @@ env_cpp11 = env.Clone ()
96
97 if env_cpp11['CXX'].startswith('g++'):
98 # TODO: check g++ version
99- GCC_VERSION = commands.getoutput(env_cpp11['CXX'] + ' -dumpversion')
100+ GCC_VERSION = check_output([env_cpp11['CXX'], '-dumpversion'])
101
102- if GCC_VERSION > "4.4.0":
103- print "C++11 build environment partially enabled"
104+ if GCC_VERSION.decode('utf-8') > "4.4.0":
105+ print("C++11 build environment partially enabled")
106 env_cpp11.Append(WSPP_CPP11_ENABLED = "true",CXXFLAGS = ['-std=c++0x'],TOOLSET = ['g++'],CPPDEFINES = ['_WEBSOCKETPP_CPP11_STL_'])
107 else:
108- print "C++11 build environment is not supported on this version of G++"
109+ print("C++11 build environment is not supported on this version of G++")
110 elif env_cpp11['CXX'].startswith('clang++'):
111- print "C++11 build environment enabled"
112+ print("C++11 build environment enabled")
113 env.Append(CXXFLANGS = ['-stdlib=libc++'],LINKFLAGS=['-stdlib=libc++'])
114 env_cpp11.Append(WSPP_CPP11_ENABLED = "true",CXXFLAGS = ['-std=c++0x','-stdlib=libc++'],LINKFLAGS = ['-stdlib=libc++'],TOOLSET = ['clang++'],CPPDEFINES = ['_WEBSOCKETPP_CPP11_STL_'])
115
116 # look for optional second boostroot compiled with clang's libc++ STL library
117 # this prevents warnings/errors when linking code built with two different
118 # incompatible STL libraries.
119- if os.environ.has_key('BOOST_ROOT_CPP11'):
120+ if 'BOOST_ROOT_CPP11' in os.environ:
121 env_cpp11['BOOST_INCLUDES'] = os.environ['BOOST_ROOT_CPP11']
122 env_cpp11['BOOST_LIBS'] = os.path.join(os.environ['BOOST_ROOT_CPP11'], 'stage', 'lib')
123- elif os.environ.has_key('BOOST_INCLUDES_CPP11') and os.environ.has_key('BOOST_LIBS_CPP11'):
124+ elif 'BOOST_INCLUDES_CPP11' in os.environ and 'BOOST_LIBS_CPP11' in os.environ:
125 env_cpp11['BOOST_INCLUDES'] = os.environ['BOOST_INCLUDES_CPP11']
126 env_cpp11['BOOST_LIBS'] = os.environ['BOOST_LIBS_CPP11']
127 else:
128- print "C++11 build environment disabled"
129+ print("C++11 build environment disabled")
130
131 # if the build system is known to allow the isystem modifier for library include
132 # values then use it for the boost libraries. Otherwise just add them to the