Re: [Openvpn-devel] [PATCH 1/4] Do not blindly assume python3 is also the interpreter that runs rst2html

2023-06-30 Thread Frank Lichtenheld
On Thu, Jun 29, 2023 at 11:56:07PM +0200, Arne Schwabe wrote:
> On my system python3 is the macOS system python3 while rst2html has
> 
>#!/opt/homebrew/opt/python@3.9/bin/python3.9
> 
> as its first line. Running that with a different python results in missing
> python modules. So directly execute the rst2html script instead.

Acked-By: Frank Lichtenheld  

-- 
  Frank Lichtenheld


___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


[Openvpn-devel] [PATCH 1/4] Do not blindly assume python3 is also the interpreter that runs rst2html

2023-06-29 Thread Arne Schwabe
On my system python3 is the macOS system python3 while rst2html has

   #!/opt/homebrew/opt/python@3.9/bin/python3.9

as its first line. Running that with a different python results in missing
python modules. So directly execute the rst2html script instead.

Change-Id: I7e27ae031179c91cc1bca8122caf2453d6396ec0
Signed-off-by: Arne Schwabe 
---
 doc/CMakeLists.txt | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index d38805513..2fba80bbd 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -50,13 +50,13 @@ if (_GENERATE_HTML_DOC)
 list(APPEND ALL_DOCS openvpn.8.html openvpn-examples.5.html)
 add_custom_command(
 OUTPUT openvpn.8.html
-COMMAND ${PYTHON} ${RST2HTML} ${RST_FLAGS} 
${CMAKE_CURRENT_SOURCE_DIR}/openvpn.8.rst 
${CMAKE_CURRENT_BINARY_DIR}/openvpn.8.html
+COMMAND ${RST2HTML} ${RST_FLAGS} 
${CMAKE_CURRENT_SOURCE_DIR}/openvpn.8.rst 
${CMAKE_CURRENT_BINARY_DIR}/openvpn.8.html
 MAIN_DEPENDENCY openvpn.8.rst
 DEPENDS ${OPENVPN_SECTIONS}
 )
 add_custom_command(
 OUTPUT openvpn-examples.5.html
-COMMAND ${PYTHON} ${RST2HTML} ${RST_FLAGS} 
${CMAKE_CURRENT_SOURCE_DIR}/openvpn-examples.5.rst 
${CMAKE_CURRENT_BINARY_DIR}/openvpn-examples.5.html
+COMMAND ${RST2HTML} ${RST_FLAGS} 
${CMAKE_CURRENT_SOURCE_DIR}/openvpn-examples.5.rst 
${CMAKE_CURRENT_BINARY_DIR}/openvpn-examples.5.html
 MAIN_DEPENDENCY openvpn-examples.5.rst
 DEPENDS ${OPENVPN_EXAMPLES_SECTIONS}
 )
@@ -65,13 +65,13 @@ if (_GENERATE_MAN_DOC)
 list(APPEND ALL_DOCS openvpn.8 openvpn-examples.5)
 add_custom_command(
 OUTPUT openvpn.8
-COMMAND ${PYTHON} ${RST2MAN} ${RST_FLAGS} 
${CMAKE_CURRENT_SOURCE_DIR}/openvpn.8.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn.8
+COMMAND ${RST2MAN} ${RST_FLAGS} 
${CMAKE_CURRENT_SOURCE_DIR}/openvpn.8.rst ${CMAKE_CURRENT_BINARY_DIR}/openvpn.8
 MAIN_DEPENDENCY openvpn.8.rst
 DEPENDS ${OPENVPN_SECTIONS}
 )
 add_custom_command(
 OUTPUT openvpn-examples.5
-COMMAND ${PYTHON} ${RST2MAN} ${RST_FLAGS} 
${CMAKE_CURRENT_SOURCE_DIR}/openvpn-examples.5.rst 
${CMAKE_CURRENT_BINARY_DIR}/openvpn-examples.5
+COMMAND ${RST2MAN} ${RST_FLAGS} 
${CMAKE_CURRENT_SOURCE_DIR}/openvpn-examples.5.rst 
${CMAKE_CURRENT_BINARY_DIR}/openvpn-examples.5
 MAIN_DEPENDENCY openvpn-examples.5.rst
 DEPENDS ${OPENVPN_EXAMPLES_SECTIONS}
 )
-- 
2.39.2 (Apple Git-143)



___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel