Source: websocketpp Version: 0.8.2-3 Severity: important Tags: patch Hi,
SCons 4.3.0 was released some time ago. I've packaged it and would like to upload it in the next day or so. Your package FTBFS with that, for which a patch is attached to fix it. Regards, Laszlo/GCS
Description: SCons 4.2.0 no longer has env_cpp11.has_key() Check env_cpp11 as an array. Author: Laszlo Boszormenyi (GCS) <g...@debian.org> Forwarded: no Last-Update: 2022-01-02 --- --- websocketpp-0.8.2.orig/examples/broadcast_server/SConscript +++ websocketpp-0.8.2/examples/broadcast_server/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('broadcast_server', ["broadcast_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/debug_client/SConscript +++ websocketpp-0.8.2/examples/debug_client/SConscript @@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] prgs += env_cpp11.Program('debug_client', ["debug_client.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/debug_server/SConscript +++ websocketpp-0.8.2/examples/debug_server/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('debug_server', ["debug_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/dev/SConscript +++ websocketpp-0.8.2/examples/dev/SConscript @@ -11,7 +11,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework','system','timer','chrono'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('main', ["main.cpp"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/examples/echo_client/SConscript +++ websocketpp-0.8.2/examples/echo_client/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + ['z'] prgs += env_cpp11.Program('echo_client', ["echo_client.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/echo_server/SConscript +++ websocketpp-0.8.2/examples/echo_server/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('echo_server', ["echo_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/echo_server_both/SConscript +++ websocketpp-0.8.2/examples/echo_server_both/SConscript @@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] prgs += env_cpp11.Program('echo_server_both', ["echo_server_both.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/echo_server_tls/SConscript +++ websocketpp-0.8.2/examples/echo_server_tls/SConscript @@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] prgs += env_cpp11.Program('echo_server_tls', ["echo_server_tls.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/external_io_service/SConscript +++ websocketpp-0.8.2/examples/external_io_service/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('external_io_service', ["external_io_service.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/iostream_server/SConscript +++ websocketpp-0.8.2/examples/iostream_server/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('iostream_server', ["iostream_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/print_client/SConscript +++ websocketpp-0.8.2/examples/print_client/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('print_client', ["print_client.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/print_client_tls/SConscript +++ websocketpp-0.8.2/examples/print_client_tls/SConscript @@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] prgs += env_cpp11.Program('print_client_tls', ["print_client_tls.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/print_server/SConscript +++ websocketpp-0.8.2/examples/print_server/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('print_server', ["print_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/scratch_client/SConscript +++ websocketpp-0.8.2/examples/scratch_client/SConscript @@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] prgs += env_cpp11.Program('scratch_client', ["scratch_client.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/scratch_server/SConscript +++ websocketpp-0.8.2/examples/scratch_server/SConscript @@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] + ['z'] prgs += env_cpp11.Program('scratch_server', ["scratch_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/sip_client/SConscript +++ websocketpp-0.8.2/examples/sip_client/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('sip_client', ["sip_client.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/subprotocol_server/SConscript +++ websocketpp-0.8.2/examples/subprotocol_server/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('subprotocol_server', ["subprotocol_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/telemetry_client/SConscript +++ websocketpp-0.8.2/examples/telemetry_client/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('telemetry_client', ["telemetry_client.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/telemetry_server/SConscript +++ websocketpp-0.8.2/examples/telemetry_server/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('telemetry_server', ["telemetry_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/testee_client/SConscript +++ websocketpp-0.8.2/examples/testee_client/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + ['z'] prgs += env_cpp11.Program('testee_client', ["testee_client.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/testee_server/SConscript +++ websocketpp-0.8.2/examples/testee_server/SConscript @@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + ['z'] prgs += env_cpp11.Program('testee_server', ["testee_server.cpp"], LIBS = ALL_LIBS) else: --- websocketpp-0.8.2.orig/examples/utility_client/SConscript +++ websocketpp-0.8.2/examples/utility_client/SConscript @@ -13,11 +13,11 @@ env_cpp11 = env_cpp11.Clone () prgs = [] # if a C++11 environment is available build using that, otherwise use boost -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] prgs += env_cpp11.Program('utility_client', ["utility_client.cpp"], LIBS = ALL_LIBS) else: ALL_LIBS = boostlibs(['system','random'],env) + [platform_libs] + [polyfill_libs] prgs += env.Program('utility_client', ["utility_client.cpp"], LIBS = ALL_LIBS) -Return('prgs') \ No newline at end of file +Return('prgs') --- websocketpp-0.8.2.orig/test/connection/SConscript +++ websocketpp-0.8.2/test/connection/SConscript @@ -16,7 +16,7 @@ objs = env.Object('connection_boost.o', objs = env.Object('connection_tu2_boost.o', ["connection_tu2.cpp"], LIBS = BOOST_LIBS) prgs = env.Program('test_connection_boost', ["connection_boost.o","connection_tu2_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework','system'],env_cpp11) + [platform_libs] + [polyfill_libs] objs += env_cpp11.Object('connection_stl.o', ["connection.cpp"], LIBS = BOOST_LIBS_CPP11) objs += env_cpp11.Object('connection_tu2_stl.o', ["connection_tu2.cpp"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/endpoint/SConscript +++ websocketpp-0.8.2/test/endpoint/SConscript @@ -16,7 +16,7 @@ BOOST_LIBS = boostlibs(['unit_test_frame objs = env.Object('endpoint_boost.o', ["endpoint.cpp"], LIBS = BOOST_LIBS) prgs = env.Program('test_endpoint_boost', ["endpoint_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework','system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] objs += env_cpp11.Object('endpoint_stl.o', ["endpoint.cpp"], LIBS = BOOST_LIBS_CPP11) prgs += env_cpp11.Program('test_endpoint_stl', ["endpoint_stl.o"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/extension/SConscript +++ websocketpp-0.8.2/test/extension/SConscript @@ -17,7 +17,7 @@ objs += env.Object('permessage_deflate_b prgs = env.Program('test_extension_boost', ["extension_boost.o"], LIBS = BOOST_LIBS) prgs += env.Program('test_permessage_deflate_boost', ["permessage_deflate_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework'],env_cpp11) + [platform_libs] + [polyfill_libs] + ['z'] objs += env_cpp11.Object('extension_stl.o', ["extension.cpp"], LIBS = BOOST_LIBS_CPP11) objs += env_cpp11.Object('permessage_deflate_stl.o', ["permessage_deflate.cpp"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/http/SConscript +++ websocketpp-0.8.2/test/http/SConscript @@ -15,7 +15,7 @@ BOOST_LIBS = boostlibs(['unit_test_frame objs = env.Object('parser_boost.o', ["parser.cpp"], LIBS = BOOST_LIBS) prgs = env.Program('test_http_boost', ["parser_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework'],env_cpp11) + [platform_libs] + [polyfill_libs] objs += env_cpp11.Object('parser_stl.o', ["parser.cpp"], LIBS = BOOST_LIBS_CPP11) prgs += env_cpp11.Program('test_http_stl', ["parser_stl.o"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/logger/SConscript +++ websocketpp-0.8.2/test/logger/SConscript @@ -15,7 +15,7 @@ BOOST_LIBS = boostlibs(['unit_test_frame objs = env.Object('logger_basic_boost.o', ["basic.cpp"], LIBS = BOOST_LIBS) prgs = env.Program('logger_basic_boost', ["logger_basic_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework','system'],env_cpp11) + [platform_libs] + [polyfill_libs] objs += env_cpp11.Object('logger_basic_stl.o', ["basic.cpp"], LIBS = BOOST_LIBS_CPP11) prgs += env_cpp11.Program('logger_basic_stl', ["logger_basic_stl.o"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/message_buffer/SConscript +++ websocketpp-0.8.2/test/message_buffer/SConscript @@ -17,7 +17,7 @@ objs += env.Object('alloc_boost.o', ["al prgs = env.Program('test_message_boost', ["message_boost.o"], LIBS = BOOST_LIBS) prgs += env.Program('test_alloc_boost', ["alloc_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework'],env_cpp11) + [platform_libs] + [polyfill_libs] objs += env_cpp11.Object('message_stl.o', ["message.cpp"], LIBS = BOOST_LIBS_CPP11) objs += env_cpp11.Object('alloc_stl.o', ["alloc.cpp"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/processors/SConscript +++ websocketpp-0.8.2/test/processors/SConscript @@ -26,7 +26,7 @@ prgs += env.Program('test_hybi07_boost', prgs += env.Program('test_hybi00_boost', ["test_hybi00_boost.o"], LIBS = BOOST_LIBS) prgs += env.Program('test_extension_permessage_compress_boost', ["test_extension_permessage_compress_boost.o"], LIBS = BOOST_LIBS + ['z']) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework'],env_cpp11) + [platform_libs] + [polyfill_libs] + ['z'] # no C++11 features are used in processor so there are no C++11 versions of # these tests. --- websocketpp-0.8.2.orig/test/random/SConscript +++ websocketpp-0.8.2/test/random/SConscript @@ -17,7 +17,7 @@ objs += env.Object('random_device_boost. prgs = env.Program('test_random_none_boost', ["random_none_boost.o"], LIBS = BOOST_LIBS) prgs += env.Program('test_random_device_boost', ["random_device_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework'],env_cpp11) + [platform_libs] + [polyfill_libs] objs += env_cpp11.Object('random_none_stl.o', ["none.cpp"], LIBS = BOOST_LIBS_CPP11) objs += env_cpp11.Object('random_device_stl.o', ["random_device.cpp"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/roles/SConscript +++ websocketpp-0.8.2/test/roles/SConscript @@ -17,7 +17,7 @@ objs += env.Object('server_boost.o', ["s prgs = env.Program('test_client_boost', ["client_boost.o"], LIBS = BOOST_LIBS) prgs += env.Program('test_server_boost', ["server_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework'],env_cpp11) + [platform_libs] + [polyfill_libs] objs += env_cpp11.Object('client_stl.o', ["client.cpp"], LIBS = BOOST_LIBS_CPP11) objs += env_cpp11.Object('server_stl.o', ["server.cpp"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/transport/SConscript +++ websocketpp-0.8.2/test/transport/SConscript @@ -16,7 +16,7 @@ BOOST_LIBS = boostlibs(['unit_test_frame objs = env.Object('boost_integration.o', ["integration.cpp"], LIBS = BOOST_LIBS) prgs = env.Program('test_boost_integration', ["boost_integration.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework','system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] objs += env_cpp11.Object('stl_integration.o', ["integration.cpp"], LIBS = BOOST_LIBS_CPP11) prgs += env_cpp11.Program('test_stl_integration', ["stl_integration.o"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/transport/asio/SConscript +++ websocketpp-0.8.2/test/transport/asio/SConscript @@ -20,7 +20,7 @@ prgs = env.Program('test_base_boost', [" prgs += env.Program('test_timers_boost', ["timers_boost.o"], LIBS = BOOST_LIBS) prgs += env.Program('test_security_boost', ["security_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework','system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] objs += env_cpp11.Object('base_stl.o', ["base.cpp"], LIBS = BOOST_LIBS_CPP11) objs += env_cpp11.Object('timers_stl.o', ["timers.cpp"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/transport/iostream/SConscript +++ websocketpp-0.8.2/test/transport/iostream/SConscript @@ -19,7 +19,7 @@ prgs = env.Program('test_iostream_base_b prgs += env.Program('test_iostream_connection_boost', ["iostream_connection_boost.o"], LIBS = BOOST_LIBS) prgs += env.Program('test_iostream_endpoint_boost', ["iostream_endpoint_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework'],env_cpp11) + [platform_libs] + [polyfill_libs] objs += env_cpp11.Object('iostream_base_stl.o', ["base.cpp"], LIBS = BOOST_LIBS_CPP11) objs += env_cpp11.Object('iostream_connection_stl.o', ["connection.cpp"], LIBS = BOOST_LIBS_CPP11) --- websocketpp-0.8.2.orig/test/utility/SConscript +++ websocketpp-0.8.2/test/utility/SConscript @@ -24,7 +24,7 @@ prgs += env.Program('test_close_boost', prgs += env.Program('test_sha1_boost', ["sha1_boost.o"], LIBS = BOOST_LIBS) prgs += env.Program('test_error_boost', ["error_boost.o"], LIBS = BOOST_LIBS) -if env_cpp11.has_key('WSPP_CPP11_ENABLED'): +if 'WSPP_CPP11_ENABLED' in env_cpp11: BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework'],env_cpp11) + [platform_libs] + [polyfill_libs] objs += env_cpp11.Object('utilities_stl.o', ["utilities.cpp"], LIBS = BOOST_LIBS_CPP11) objs += env_cpp11.Object('uri_stl.o', ["uri.cpp"], LIBS = BOOST_LIBS_CPP11)