-
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
drogon: add version 1.9.7 #25264
Merged
Merged
drogon: add version 1.9.7 #25264
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
recipes/drogon/all/patches/1.9.7-0002-find-cci-packages.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 91b9b9b..9a2773f 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -185,9 +185,9 @@ endif() | ||
|
||
|
||
# jsoncpp | ||
-find_package(Jsoncpp REQUIRED) | ||
-target_link_libraries(${PROJECT_NAME} PUBLIC Jsoncpp_lib) | ||
-list(APPEND INCLUDE_DIRS_FOR_DYNAMIC_VIEW ${JSONCPP_INCLUDE_DIRS}) | ||
+find_package(jsoncpp REQUIRED) | ||
+target_link_libraries(${PROJECT_NAME} PUBLIC jsoncpp_lib) | ||
+list(APPEND INCLUDE_DIRS_FOR_DYNAMIC_VIEW ${jsoncpp_INCLUDE_DIRS}) | ||
|
||
# yamlcpp | ||
if(BUILD_YAML_CONFIG) | ||
@@ -199,7 +199,7 @@ if(BUILD_YAML_CONFIG) | ||
message(STATUS "yaml-cpp not used") | ||
else() | ||
message(STATUS "yaml-cpp found ") | ||
- target_link_libraries(${PROJECT_NAME} PUBLIC ${YAML_CPP_LINK_LIBRARY}) | ||
+ target_link_libraries(${PROJECT_NAME} PUBLIC yaml-cpp) | ||
target_compile_definitions(${PROJECT_NAME} PUBLIC HAS_YAML_CPP) | ||
endif() | ||
else() | ||
@@ -437,7 +437,7 @@ if (BUILD_SQLITE) | ||
find_package(SQLite3 QUIET) | ||
find_package(unofficial-sqlite3 QUIET) | ||
if (SQLite3_FOUND) | ||
- target_link_libraries(${PROJECT_NAME} PRIVATE SQLite3_lib) | ||
+ target_link_libraries(${PROJECT_NAME} PRIVATE SQLite::SQLite3) | ||
set(DROGON_FOUND_SQLite3 TRUE) | ||
elseif (unofficial-sqlite3_FOUND) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE unofficial::sqlite3::sqlite3) | ||
@@ -460,10 +460,10 @@ if (BUILD_SQLITE) | ||
endif (BUILD_SQLITE) | ||
|
||
if (BUILD_REDIS) | ||
- find_package(Hiredis) | ||
- if (Hiredis_FOUND) | ||
+ find_package(hiredis) | ||
+ if (hiredis_FOUND) | ||
add_definitions(-DUSE_REDIS) | ||
- target_link_libraries(${PROJECT_NAME} PRIVATE Hiredis_lib) | ||
+ target_link_libraries(${PROJECT_NAME} PRIVATE hiredis::hiredis) | ||
set(DROGON_SOURCES | ||
${DROGON_SOURCES} | ||
nosql_lib/redis/src/RedisClientImpl.cc | ||
@@ -483,10 +483,10 @@ if (BUILD_REDIS) | ||
nosql_lib/redis/src/SubscribeContext.h | ||
nosql_lib/redis/src/RedisSubscriberImpl.h) | ||
|
||
- endif (Hiredis_FOUND) | ||
+ endif () | ||
endif (BUILD_REDIS) | ||
|
||
-if (NOT Hiredis_FOUND) | ||
+if (NOT hiredis_FOUND) | ||
set(DROGON_SOURCES | ||
${DROGON_SOURCES} | ||
lib/src/RedisClientSkipped.cc | ||
@@ -495,7 +495,7 @@ if (NOT Hiredis_FOUND) | ||
set(private_headers | ||
${private_headers} | ||
lib/src/RedisClientManager.h) | ||
-endif (NOT Hiredis_FOUND) | ||
+endif () | ||
|
||
if (BUILD_TESTING) | ||
add_subdirectory(nosql_lib/redis/tests) |
13 changes: 13 additions & 0 deletions
13
recipes/drogon/all/patches/1.9.7-0003-include-exception.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/lib/inc/drogon/RequestStream.h b/lib/inc/drogon/RequestStream.h | ||
index 852f075..b72e39e 100644 | ||
--- a/lib/inc/drogon/RequestStream.h | ||
+++ b/lib/inc/drogon/RequestStream.h | ||
@@ -16,7 +16,7 @@ | ||
#include <string> | ||
#include <functional> | ||
#include <memory> | ||
- | ||
+#include <exception> | ||
namespace drogon | ||
{ | ||
class HttpRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
versions: | ||
"1.9.7": | ||
folder: "all" | ||
"1.9.6": | ||
folder: "all" | ||
"1.9.5": | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
My guess is that this will be approved, seems like a logical change