git: be7c6e82ef00 - main - cad/openvsp: Unbreak in 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Dec 2024 18:40:18 UTC
The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=be7c6e82ef00ef5480dfb61f1970e074a1b73262 commit be7c6e82ef00ef5480dfb61f1970e074a1b73262 Author: Fernando Apesteguía <fernape@FreeBSD.org> AuthorDate: 2024-11-26 17:51:49 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2024-12-02 18:39:41 +0000 cad/openvsp: Unbreak in 15 --- .../patch-Libraries_cmake_External__STEPCode.cmake | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/cad/openvsp/files/patch-Libraries_cmake_External__STEPCode.cmake b/cad/openvsp/files/patch-Libraries_cmake_External__STEPCode.cmake new file mode 100644 index 000000000000..add33de9689f --- /dev/null +++ b/cad/openvsp/files/patch-Libraries_cmake_External__STEPCode.cmake @@ -0,0 +1,21 @@ +--- Libraries/cmake/External_STEPCode.cmake.orig 2024-11-11 02:55:22 UTC ++++ Libraries/cmake/External_STEPCode.cmake +@@ -30,6 +30,11 @@ ExternalProject_Add( STEPCODE + -DSC_BUILD_SHARED_LIBS=${SC_SHARED} + -DSC_PYTHON_GENERATOR=OFF + -DSC_INSTALL_PREFIX:PATH=<INSTALL_DIR> ++ # Patch to avoid build failure in FBSD 15 and higher ++ PATCH_COMMAND ${CMAKE_COMMAND} -E echo "Patching files...${CMAKE_SOURCE_DIR} - ${CMAKE_BINARY_DIR}" && ++ ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}/STEPCODE-prefix/src/STEPCODE/src/base/judy/src/ sed -i '' -e "s/strncpy\( _buff, other._buff/strncpy\( (char *)_buff, (char *)other._buff/g" judySArray.h && ++ ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}/STEPCODE-prefix/src/STEPCODE/src/base/judy/src/ sed -i '' -e "s/strncpy\( _buff, other._buff/strncpy\( (char *)_buff, (char *)other._buff/g" judyS2Array.h ++ + ) + ExternalProject_Get_Property( STEPCODE SOURCE_DIR ) + ExternalProject_Get_Property( STEPCODE BINARY_DIR ) +@@ -47,4 +52,4 @@ SET( STEPCODE_BINARY_DIR ${BINARY_DIR} ) + # Consequently, force Debug so it installs in ../sc-install directory + # instead of /usr/local/lib. + # +-# SC's own programs fail to build with -DSC_BUILD_SHARED_LIBS=OFF +\ No newline at end of file ++# SC's own programs fail to build with -DSC_BUILD_SHARED_LIBS=OFF