-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
packio: migrate to Conan v2, drop old versions #25392
base: master
Are you sure you want to change the base?
Changes from all commits
8e34509
308cd96
ff3c43e
dc50d65
246e485
cf8a721
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,45 @@ | ||
sources: | ||
1.0.1: | ||
sha256: 873ebd2ce8c8dbf8a4e7b777b1aa735fe4da3863131a5d6c938e339ee7e0a4d1 | ||
url: https://github.com/qchateau/packio/archive/1.0.1.tar.gz | ||
1.0.2: | ||
sha256: 040389f2de4a6da5df1cc323cdd80bc21bfc6a7f9bb9e56090d1ea0b1260226d | ||
url: https://github.com/qchateau/packio/archive/1.0.2.tar.gz | ||
1.1.0: | ||
sha256: fb8baeeb903335b71b4241433faaff895e42e671da1c15b100e24b060f1d3784 | ||
url: https://github.com/qchateau/packio/archive/1.1.0.tar.gz | ||
1.1.1: | ||
sha256: 5f77bcbb843cc7dd7731c37db586e9e4f3997ebf04a8d1eccb9eae21841c7e55 | ||
url: https://github.com/qchateau/packio/archive/1.1.1.tar.gz | ||
1.2.0: | ||
sha256: b459c50a2ae7b90b45cd99a727dcd133e48602634571378491533148e642c511 | ||
url: https://github.com/qchateau/packio/archive/1.2.0.tar.gz | ||
1.2.1: | ||
sha256: 1b3f1654e8321148dd58172fcc6807451382dff30bb803967449a318b33101c5 | ||
url: https://github.com/qchateau/packio/archive/1.2.1.tar.gz | ||
1.3.0: | ||
sha256: adb723ef14b4a3ec41e9a7c17c48c8ee58712604b678b24f44e6a8aa471f18e5 | ||
url: https://github.com/qchateau/packio/archive/1.3.0.tar.gz | ||
2.0.0: | ||
sha256: b647b3088830c127a1d5d475a95476cc00c81675244cf7d17c9ca1f12e88740e | ||
url: https://github.com/qchateau/packio/archive/2.0.0.tar.gz | ||
2.0.1: | ||
sha256: 081d378be922262c39218e115eabdf77f257e4773928011dff95795b8146b520 | ||
url: https://github.com/qchateau/packio/archive/2.0.1.tar.gz | ||
2.1.0: | ||
sha256: d13be083cd5a133b02fdd1da0d89fb75988c16109ccdcd631d53f9ca2457ad42 | ||
url: https://github.com/qchateau/packio/archive/2.1.0.tar.gz | ||
"2.2.0": | ||
url: "https://github.com/qchateau/packio/archive/2.2.0.tar.gz" | ||
sha256: "ac9f33d5e8dd92bd3cdec106e10453424060bae9c4cd97281aa5d20fb20476f7" | ||
"2.5.0": | ||
url: "https://github.com/qchateau/packio/archive/refs/tags/2.5.0.tar.gz" | ||
sha256: "5aa29313ac37be2fb66ff01af9413d9f9931cd4566f1400b00fac107552558ae" | ||
"2.4.1": | ||
url: "https://github.com/qchateau/packio/archive/refs/tags/2.4.1.tar.gz" | ||
sha256: "c115548146d6da432048265037b30f77ba6ad7a39350693c4fb36fd896bc7a4b" | ||
"2.3.0": | ||
url: "https://github.com/qchateau/packio/archive/2.3.0.tar.gz" | ||
url: "https://github.com/qchateau/packio/archive/refs/tags/2.3.0.tar.gz" | ||
sha256: "4ef3bc76934855cc1a17eb00311bb42f5f14f616c75d4d1cc35151efcc988358" | ||
"2.4.0": | ||
url: "https://github.com/qchateau/packio/archive/2.4.0.tar.gz" | ||
sha256: "2815d7772ef8d2360c5e15de7738ec7267e1e54a7afb817bf42a18a9f100ff52" | ||
"2.2.0": | ||
url: "https://github.com/qchateau/packio/archive/refs/tags/2.2.0.tar.gz" | ||
sha256: "ac9f33d5e8dd92bd3cdec106e10453424060bae9c4cd97281aa5d20fb20476f7" | ||
"2.1.0": | ||
url: "https://github.com/qchateau/packio/archive/refs/tags/2.1.0.tar.gz" | ||
sha256: "d13be083cd5a133b02fdd1da0d89fb75988c16109ccdcd631d53f9ca2457ad42" | ||
patches: | ||
"2.4.1": | ||
url: "https://github.com/qchateau/packio/archive/2.4.1.tar.gz" | ||
sha256: "c115548146d6da432048265037b30f77ba6ad7a39350693c4fb36fd896bc7a4b" | ||
"2.5.0": | ||
url: "https://github.com/qchateau/packio/archive/2.5.0.tar.gz" | ||
sha256: "5aa29313ac37be2fb66ff01af9413d9f9931cd4566f1400b00fac107552558ae" | ||
- patch_file: "patches/0001-fix-boost-json-namespace.patch" | ||
patch_description: "Replace BOOST_JSON_NS_BEGIN for Boost 1.82+ compatibility" | ||
patch_type: "backport" | ||
Check warning on line 21 in recipes/packio/all/conandata.yml
|
||
patch_source: "https://github.com/qchateau/packio/commit/6ed35ba444dc22a5bc4c3c84989f7b8357a28e5b" | ||
"2.3.0": | ||
- patch_file: "patches/0001-fix-boost-json-namespace.patch" | ||
patch_description: "Replace BOOST_JSON_NS_BEGIN for Boost 1.82+ compatibility" | ||
patch_type: "backport" | ||
Check warning on line 26 in recipes/packio/all/conandata.yml
|
||
patch_source: "https://github.com/qchateau/packio/commit/6ed35ba444dc22a5bc4c3c84989f7b8357a28e5b" | ||
"2.2.0": | ||
- patch_file: "patches/0001-fix-boost-json-namespace.patch" | ||
patch_description: "Replace BOOST_JSON_NS_BEGIN for Boost 1.82+ compatibility" | ||
patch_type: "backport" | ||
Check warning on line 31 in recipes/packio/all/conandata.yml
|
||
patch_source: "https://github.com/qchateau/packio/commit/6ed35ba444dc22a5bc4c3c84989f7b8357a28e5b" | ||
- patch_file: "patches/0002-fix-boost-json-value-regression.patch" | ||
patch_description: "Fix std::hash<boost::json::value>" | ||
patch_type: "backport" | ||
Check warning on line 35 in recipes/packio/all/conandata.yml
|
||
patch_source: "https://github.com/qchateau/packio/commit/d1e0b30378ccafc96da039cf5fc9ffa754e4c2fe" | ||
"2.1.0": | ||
- patch_file: "patches/0001-fix-boost-json-namespace.patch" | ||
patch_description: "Fix std::hash<boost::json::value>" | ||
patch_type: "backport" | ||
Check warning on line 40 in recipes/packio/all/conandata.yml
|
||
patch_source: "https://github.com/qchateau/packio/commit/d1e0b30378ccafc96da039cf5fc9ffa754e4c2fe" | ||
- patch_file: "patches/0002-fix-boost-json-value-regression.patch" | ||
patch_description: "Fix std::hash<boost::json::value>" | ||
patch_type: "backport" | ||
Check warning on line 44 in recipes/packio/all/conandata.yml
|
||
patch_source: "https://github.com/qchateau/packio/commit/d1e0b30378ccafc96da039cf5fc9ffa754e4c2fe" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 6ed35ba444dc22a5bc4c3c84989f7b8357a28e5b Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Martin=20M=C3=BCllenhaupt?= | ||
<muellni@users.noreply.github.com> | ||
Date: Wed, 10 May 2023 10:39:03 +0200 | ||
Subject: [PATCH] replace boost::json namespace macro | ||
|
||
--- | ||
include/packio/json_rpc/converters.h | 8 +++++--- | ||
1 file changed, 5 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/include/packio/json_rpc/converters.h b/include/packio/json_rpc/converters.h | ||
index f8a176e..99dfa33 100644 | ||
--- a/include/packio/json_rpc/converters.h | ||
+++ b/include/packio/json_rpc/converters.h | ||
@@ -23,7 +23,8 @@ std::tuple<Args...> json_to_tuple( | ||
} // json_rpc | ||
} // packio | ||
|
||
-BOOST_JSON_NS_BEGIN | ||
+namespace boost { | ||
+namespace json { | ||
|
||
template <typename... Args> | ||
std::tuple<Args...> tag_invoke(value_to_tag<std::tuple<Args...>>, const value& jv) | ||
@@ -40,6 +41,7 @@ void tag_invoke(value_from_tag, value& jv, CStr&& from) | ||
jv.emplace_string().assign(std::forward<CStr>(from)); | ||
} | ||
|
||
-BOOST_JSON_NS_END | ||
+} // json | ||
+} // boost | ||
|
||
-#endif // PACKIO_JSON_RPC_CONVERTERS_H | ||
\ No newline at end of file | ||
+#endif // PACKIO_JSON_RPC_CONVERTERS_H |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From d1e0b30378ccafc96da039cf5fc9ffa754e4c2fe Mon Sep 17 00:00:00 2001 | ||
From: Quentin Chateau <quentin.chateau@gmail.com> | ||
Date: Fri, 16 Dec 2022 20:58:08 +0100 | ||
Subject: [PATCH] packio: fix std::hash<boost::json::value> | ||
|
||
--- | ||
include/packio/json_rpc/hash.h | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/include/packio/json_rpc/hash.h b/include/packio/json_rpc/hash.h | ||
index 9f6e3dd..b4c8977 100644 | ||
--- a/include/packio/json_rpc/hash.h | ||
+++ b/include/packio/json_rpc/hash.h | ||
@@ -6,6 +6,9 @@ | ||
#define PACKIO_JSON_RPC_HASH_H | ||
|
||
#include <boost/json.hpp> | ||
+#include <boost/version.hpp> | ||
+ | ||
+#if BOOST_VERSION < 107700 | ||
|
||
namespace packio { | ||
namespace json_rpc { | ||
@@ -72,4 +75,6 @@ struct hash<boost::json::value> { | ||
|
||
} // std | ||
|
||
+#endif // BOOST_VERSION < 107700 | ||
+ | ||
#endif // PACKIO_JSON_RPC_HASH_H |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(TestPackage CXX) | ||
cmake_minimum_required(VERSION 3.15) | ||
project(test_package LANGUAGES CXX) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup() | ||
find_package(packio REQUIRED CONFIG) | ||
|
||
if (PACKIO_VERSION VERSION_LESS "1.2.0") | ||
add_executable(main 1.0.x-1.1.x.cpp) | ||
elseif (PACKIO_VERSION VERSION_LESS "2.0.0") | ||
add_executable(main 1.2.x.cpp) | ||
else () | ||
add_executable(main latest.cpp) | ||
endif () | ||
|
||
target_link_libraries(main ${CONAN_LIBS}) | ||
set_property(TARGET main PROPERTY CXX_STANDARD 17) | ||
add_executable(${PROJECT_NAME} test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE packio::packio) | ||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are newer versions not compatible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It avoids a conflict with
boost/1.83.0
inmsgpack-cxx
. It built fine with Boost 1.85.0 otherwise.