Skip to content

Commit

Permalink
[drogon] fix drogon_ctl command not found error (#32870)
Browse files Browse the repository at this point in the history
* fix: patch to use find_program for drogon_ctl

* update drogon port version
  • Loading branch information
hexorer authored Aug 3, 2023
1 parent 83f77ef commit b3d05b2
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions ports/drogon/005_drogon_ctl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/cmake/DrogonUtilities.cmake b/cmake/DrogonUtilities.cmake
index 7cb9799..5462572 100644
--- a/cmake/DrogonUtilities.cmake
+++ b/cmake/DrogonUtilities.cmake
@@ -3,6 +3,7 @@
# [TRUE to use_path_as_namespace] [prefixed namespace])
# ##############################################################################
function(drogon_create_views arg)
+ find_program(DROGON_CTL_COMMAND drogon_ctl REQUIRED)
if(ARGC LESS 3)
message(STATUS "arguments error when calling drogon_create_views")
return()
@@ -39,7 +40,7 @@ function(drogon_create_views arg)
set(ns "")
endif()
add_custom_command(OUTPUT ${ARGV2}/${outputFile}.h ${ARGV2}/${outputFile}.cc
- COMMAND drogon_ctl
+ COMMAND ${DROGON_CTL_COMMAND}
ARGS
create
view
@@ -55,7 +56,7 @@ function(drogon_create_views arg)
else()
get_filename_component(classname ${cspFile} NAME_WE)
add_custom_command(OUTPUT ${ARGV2}/${classname}.h ${ARGV2}/${classname}.cc
- COMMAND drogon_ctl
+ COMMAND ${DROGON_CTL_COMMAND}
ARGS
create
view
9 changes: 5 additions & 4 deletions ports/drogon/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ vcpkg_from_github(
SHA512 381b4b576d316e55690dc0531cfeaeee4c0e00ce540a502e1c1870eea9a463d00d7e4bc9a354c459e5fbc6da5f046757f07ff2077bb3a9603f97f448f2d17ea2
HEAD_REF master
PATCHES
vcpkg.patch
drogon_config.patch
fix_gcc13.patch #https://github.com/drogonframework/drogon/pull/1563
deps_redis.patch
001_vcpkg.patch
002_drogon_config.patch
003_fix_gcc13.patch #https://github.com/drogonframework/drogon/pull/1563
004_deps_redis.patch
005_drogon_ctl.patch
)

vcpkg_check_features(
Expand Down
2 changes: 1 addition & 1 deletion ports/drogon/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "drogon",
"version": "1.8.4",
"port-version": 3,
"port-version": 4,
"description": "A C++14/17 based HTTP web application framework running on Linux/macOS/Unix/Windows",
"homepage": "https://github.com/an-tao/drogon",
"documentation": "https://drogon.docsforge.com/master/overview/",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,7 @@
},
"drogon": {
"baseline": "1.8.4",
"port-version": 3
"port-version": 4
},
"dstorage": {
"baseline": "1.2.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/drogon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7f8d8eadd014bf7d28bfff57e3e11e211fa8c4ae",
"version": "1.8.4",
"port-version": 4
},
{
"git-tree": "dde2eb171931557ecf9c74459cceb6a7b1d7ce9a",
"version": "1.8.4",
Expand Down

0 comments on commit b3d05b2

Please sign in to comment.