<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fd3729b0dc5260da3363e51c9b40ea2e3ec02a68">https://github.com/macports/macports-ports/commit/fd3729b0dc5260da3363e51c9b40ea2e3ec02a68</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new fd3729b0dc5 LightGBM: update to 4.5.0
</span>fd3729b0dc5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fd3729b0dc5260da3363e51c9b40ea2e3ec02a68
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Tue Jul 30 01:13:22 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> LightGBM: update to 4.5.0
</span>---
math/LightGBM/Portfile | 9 +++--
math/LightGBM/files/0001-Fix-CMakeLists.txt.patch | 43 ++++++++++++++---------
2 files changed, 30 insertions(+), 22 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/LightGBM/Portfile b/math/LightGBM/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 11a1cfcf726..0f38291cf3a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/LightGBM/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/LightGBM/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup cmake 1.1
</span> PortGroup compiler_blacklist_versions 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup microsoft LightGBM 4.4.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup microsoft LightGBM 4.5.0 v
</span> revision 0
categories math
license MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,9 +16,9 @@ long_description {*}${description}, based on decision tree algorithms, \
</span> used for ranking, classification and many other \
machine learning tasks.
homepage https://lightgbm.readthedocs.io
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 9ef56d2fc66be5a85fbac7805290dbd3d23e5d7c \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 2633afd64f4f28c5563cb64e96adf8aa6fae58af11b13345166392fb05e56215 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 7088819
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 428d95d23ec69ba5a0b192b0776618ff0b97987b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 cc72ae1f979935e11243c93bacefe34144a4fcf3dc304b2a53d99ea408fe8976 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 6163768
</span> github.tarball_from archive
patchfiles-append 0001-Fix-CMakeLists.txt.patch
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,7 +45,6 @@ configure.args-append \
</span> -DLIBFMT_DIR=${prefix}/include/libfmt${libfmt_ver} \
-DUSE_CUDA=OFF \
-DUSE_GPU=OFF \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DUSE_HDFS=OFF \
</span> -DUSE_MPI=OFF \
-DUSE_OPENMP=ON \
-DUSE_SANITIZER=OFF \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/LightGBM/files/0001-Fix-CMakeLists.txt.patch b/math/LightGBM/files/0001-Fix-CMakeLists.txt.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index 49888c4c772..6fed729f442 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/LightGBM/files/0001-Fix-CMakeLists.txt.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/LightGBM/files/0001-Fix-CMakeLists.txt.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -48,23 +48,25 @@ index 1ff289b9..43f6bcea 100644
</span> if(__BUILD_FOR_R)
find_package(LibR REQUIRED)
message(STATUS "LIBR_EXECUTABLE: ${LIBR_EXECUTABLE}")
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -159,24 +152,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -159,26 +152,7 @@
</span> endif()
if(USE_OPENMP)
- if(APPLE)
- find_package(OpenMP)
- if(NOT OpenMP_FOUND)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- # libomp 15.0+ from brew is keg-only, so have to search in other locations.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- # See https://github.com/Homebrew/homebrew-core/issues/112107#issuecomment-1278042927.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- execute_process(COMMAND brew --prefix libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(USE_HOMEBREW_FALLBACK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # libomp 15.0+ from brew is keg-only, so have to search in other locations.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # See https://github.com/Homebrew/homebrew-core/issues/112107#issuecomment-1278042927.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- execute_process(COMMAND brew --prefix libomp
</span> - OUTPUT_VARIABLE HOMEBREW_LIBOMP_PREFIX
- OUTPUT_STRIP_TRAILING_WHITESPACE)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- set(OpenMP_C_FLAGS "-Xpreprocessor -fopenmp -I${HOMEBREW_LIBOMP_PREFIX}/include")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- set(OpenMP_CXX_FLAGS "-Xpreprocessor -fopenmp -I${HOMEBREW_LIBOMP_PREFIX}/include")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- set(OpenMP_C_LIB_NAMES omp)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- set(OpenMP_CXX_LIB_NAMES omp)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- set(OpenMP_omp_LIBRARY ${HOMEBREW_LIBOMP_PREFIX}/lib/libomp.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OpenMP_C_FLAGS "-Xpreprocessor -fopenmp -I${HOMEBREW_LIBOMP_PREFIX}/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OpenMP_CXX_FLAGS "-Xpreprocessor -fopenmp -I${HOMEBREW_LIBOMP_PREFIX}/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OpenMP_C_LIB_NAMES omp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OpenMP_CXX_LIB_NAMES omp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OpenMP_omp_LIBRARY ${HOMEBREW_LIBOMP_PREFIX}/lib/libomp.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif()
</span> - find_package(OpenMP REQUIRED)
- endif()
- else()
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -74,18 +76,18 @@ index 1ff289b9..43f6bcea 100644
</span> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -707,83 +683,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -689,90 +663,6 @@
</span> set(CMAKE_INSTALL_PREFIX "lightgbm")
endif()
<span style='display:block; white-space:pre;background:#ffe0e0;'>--# The macOS linker puts an absolute path to linked libraries in lib_lightgb.dylib.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# The macOS linker puts an absolute path to linked libraries in lib_lightgbm.dylib.
</span> -# This block overrides that information for LightGBM's OpenMP dependency, to allow
-# finding that library in more places.
-#
<span style='display:block; white-space:pre;background:#ffe0e0;'>--# This reduces the risk of runtime issues resulting from multiple libomp.dylib being loaded.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# This reduces the risk of runtime issues resulting from multiple {libgomp,libiomp,libomp}.dylib being loaded.
</span> -#
-if(APPLE AND USE_OPENMP)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- # store path to libomp found at build time in a variable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # store path to {libgomp,libiomp,libomp}.dylib found at build time in a variable
</span> - get_target_property(
- OpenMP_LIBRARY_LOCATION
- OpenMP::OpenMP_CXX
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -128,7 +130,7 @@ index 1ff289b9..43f6bcea 100644
</span> -
- # Override the absolute path to OpenMP with a relative one using @rpath.
- #
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- # This also ensures that if a libomp.dylib has already been loaded, it'll just use that.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # This also ensures that if a {libgomp,libiomp,libomp}.dylib has already been loaded, it'll just use that.
</span> - add_custom_command(
- TARGET _lightgbm
- POST_BUILD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -143,14 +145,21 @@ index 1ff289b9..43f6bcea 100644
</span> - )
- # add RPATH entries to ensure the loader looks in the following, in the following order:
- #
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- # - /opt/homebrew/opt/libomp/lib (where 'brew install' / 'brew link' puts libomp.dylib)
</span> - # - ${OpenMP_LIBRARY_DIR} (wherever find_package(OpenMP) found OpenMP at build time)
<span style='display:block; white-space:pre;background:#e0ffe0;'>+- # - /opt/homebrew/opt/libomp/lib (where 'brew install' / 'brew link' puts libomp.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # - /opt/local/lib/libomp (where 'port install' puts libomp.dylib)
</span> - #
- set_target_properties(
- _lightgbm
- PROPERTIES
- BUILD_WITH_INSTALL_RPATH TRUE
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- INSTALL_RPATH "/opt/homebrew/opt/libomp/lib;${OpenMP_LIBRARY_DIR}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # with clang, libomp doesn't ship with the compiler and might be supplied separately
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- INSTALL_RPATH "${OpenMP_LIBRARY_DIR};/opt/homebrew/opt/libomp/lib;/opt/local/lib/libomp;"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # with other compilers, OpenMP ships with the compiler (e.g. libgomp with gcc)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- INSTALL_RPATH "${OpenMP_LIBRARY_DIR}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif()
</span> - INSTALL_RPATH_USE_LINK_PATH FALSE
- )
-endif()
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -158,7 +167,7 @@ index 1ff289b9..43f6bcea 100644
</span> install(
TARGETS _lightgbm
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -796,13 +695,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -785,13 +675,4 @@
</span> DIRECTORY ${LightGBM_HEADER_DIR}/LightGBM
DESTINATION ${CMAKE_INSTALL_PREFIX}/include
)
</pre><pre style='margin:0'>
</pre>