git: a753764d9f5a - main - misc/xgboost: update 3.1.3 → 3.4.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Sep 2026 07:26:06 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a753764d9f5a50a192dae1112e4c16613de7488b
commit a753764d9f5a50a192dae1112e4c16613de7488b
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-13 07:25:02 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-13 07:25:52 +0000
misc/xgboost: update 3.1.3 → 3.4.1
---
misc/xgboost/Makefile | 5 ++-
misc/xgboost/distinfo | 6 +--
misc/xgboost/files/patch-CMakeLists.txt | 69 ++++-----------------------------
misc/xgboost/pkg-plist | 6 ++-
4 files changed, 19 insertions(+), 67 deletions(-)
diff --git a/misc/xgboost/Makefile b/misc/xgboost/Makefile
index 9e874c36b4d7..63004ad5b567 100644
--- a/misc/xgboost/Makefile
+++ b/misc/xgboost/Makefile
@@ -1,6 +1,6 @@
PORTNAME= xgboost
DISTVERSIONPREFIX= v
-DISTVERSION= 3.1.3
+DISTVERSION= 3.4.1
CATEGORIES= misc # machine-learning
MAINTAINER= yuri@FreeBSD.org
@@ -30,6 +30,8 @@ GH_TUPLE= \
LDFLAGS+= ${LOCALBASE}/lib/libdmlc.so -lexecinfo
+CMAKE_ARGS+= -DBUILD_WITH_SYSTEM_DMLC=ON
+
CMAKE_TESTING_ON= GOOGLE_TEST
OPTIONS_DEFINE= OPENMP
@@ -37,5 +39,6 @@ OPTIONS_DEFINE= OPENMP
OPENMP_CMAKE_BOOL= USE_OPENMP
# tests as of 2.1.4: 100% tests passed, 0 tests failed out of 1 (failures when machine is loaded, see https://github.com/dmlc/xgboost/issues/11214)
+# tests fail to compile in 3.4.1, see https://github.com/dmlc/xgboost/issues/12559
.include <bsd.port.mk>
diff --git a/misc/xgboost/distinfo b/misc/xgboost/distinfo
index f65e2a67dd62..a03acefb9dc6 100644
--- a/misc/xgboost/distinfo
+++ b/misc/xgboost/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1768210728
-SHA256 (dmlc-xgboost-v3.1.3_GH0.tar.gz) = 17c545f43ca543979dcafdfeb4921240ba3673d1464ec4c2f592733af12ad578
-SIZE (dmlc-xgboost-v3.1.3_GH0.tar.gz) = 2388327
+TIMESTAMP = 1789238975
+SHA256 (dmlc-xgboost-v3.4.1_GH0.tar.gz) = cb3a0c786144025acf5b1ff48c81198aa2124813e677cbdda9f2f6271a5dbc1a
+SIZE (dmlc-xgboost-v3.4.1_GH0.tar.gz) = 2449877
SHA256 (NVlabs-cub-af39ee2_GH0.tar.gz) = 3444f1d0af16d3680bf5089c1a91e707769d946580b80f12463860366fb6884b
SIZE (NVlabs-cub-af39ee2_GH0.tar.gz) = 413215
SHA256 (rapidsai-gputreeshap-acb5be3_GH0.tar.gz) = c2b67f8f398000570cac6b9d82a0bdab251105391602a3e07fd497c5e61534c4
diff --git a/misc/xgboost/files/patch-CMakeLists.txt b/misc/xgboost/files/patch-CMakeLists.txt
index 9bed7ab3e30d..3ce49f5944e2 100644
--- a/misc/xgboost/files/patch-CMakeLists.txt
+++ b/misc/xgboost/files/patch-CMakeLists.txt
@@ -1,67 +1,12 @@
--- CMakeLists.txt.orig 2026-01-08 13:54:31 UTC
+++ CMakeLists.txt
-@@ -162,11 +162,11 @@ endif()
- if(PLUGIN_RMM AND NOT (CMAKE_SYSTEM_NAME STREQUAL "Linux"))
- message(SEND_ERROR "`PLUGIN_RMM` must be used with Linux.")
- endif()
--if(ENABLE_ALL_WARNINGS)
-- if((NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") AND (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
-- message(SEND_ERROR "ENABLE_ALL_WARNINGS is only available for Clang and GCC.")
-- endif()
--endif()
-+#if(ENABLE_ALL_WARNINGS)
-+# if((NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") AND (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
-+# message(SEND_ERROR "ENABLE_ALL_WARNINGS is only available for Clang and GCC.")
-+# endif()
-+#endif()
- if(BUILD_STATIC_LIB AND (R_LIB OR JVM_BINDINGS))
- message(SEND_ERROR "Cannot build a static library libxgboost.a when R or JVM packages are enabled.")
- endif()
-@@ -289,7 +289,7 @@ set(DMLC_FORCE_SHARED_CRT ${FORCE_SHARED_CRT})
+@@ -323,9 +323,9 @@ add_subdirectory(${xgboost_SOURCE_DIR}/src)
# dmlc-core
- set(DMLC_FORCE_SHARED_CRT ${FORCE_SHARED_CRT})
--add_subdirectory(${xgboost_SOURCE_DIR}/dmlc-core)
-+#add_subdirectory(${xgboost_SOURCE_DIR}/dmlc-core)
-
- if(MSVC)
- if(TARGET dmlc_unit_tests)
-@@ -302,7 +302,7 @@ add_subdirectory(${xgboost_SOURCE_DIR}/src)
-
- # core xgboost
- add_subdirectory(${xgboost_SOURCE_DIR}/src)
--target_link_libraries(objxgboost PUBLIC dmlc)
-+#target_link_libraries(objxgboost PUBLIC dmlc)
-
- # Link -lstdc++fs for GCC 8.x
- if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0")
-@@ -391,7 +391,7 @@ if(BUILD_DEPRECATED_CLI)
- target_include_directories(runxgboost
- PRIVATE
- ${xgboost_SOURCE_DIR}/include
-- ${xgboost_SOURCE_DIR}/dmlc-core/include
-+ #${xgboost_SOURCE_DIR}/dmlc-core/include
- )
- set_target_properties(runxgboost PROPERTIES OUTPUT_NAME xgboost)
- xgboost_target_properties(runxgboost)
-@@ -407,7 +407,7 @@ endif()
- #-- End CLI for xgboost
-
- # Common setup for all targets
--foreach(target xgboost objxgboost dmlc)
-+foreach(target xgboost objxgboost)
- xgboost_target_properties(${target})
- xgboost_target_link_libraries(${target})
- xgboost_target_defs(${target})
-@@ -469,9 +469,9 @@ if(BUILD_STATIC_LIB)
- # https://github.com/dmlc/xgboost/issues/6085
- if(BUILD_STATIC_LIB)
- if(BUILD_DEPRECATED_CLI)
-- set(INSTALL_TARGETS xgboost runxgboost objxgboost dmlc)
-+ set(INSTALL_TARGETS xgboost runxgboost objxgboost)
- else()
-- set(INSTALL_TARGETS xgboost objxgboost dmlc)
-+ set(INSTALL_TARGETS xgboost objxgboost)
- endif()
+-if(BUILD_WTIH_SYSTEM_DMLC)
+- target_link_libraries(objxgboost PUBLIC ${dmlc-LIBRARIES})
++if(BUILD_WITH_SYSTEM_DMLC)
++ target_link_libraries(objxgboost PUBLIC dmlc::dmlc)
else()
- if(BUILD_DEPRECATED_CLI)
+ target_link_libraries(objxgboost PUBLIC dmlc)
+ endif()
diff --git a/misc/xgboost/pkg-plist b/misc/xgboost/pkg-plist
index 8251f8d00122..5e73f58119aa 100644
--- a/misc/xgboost/pkg-plist
+++ b/misc/xgboost/pkg-plist
@@ -1,4 +1,5 @@
include/xgboost/base.h
+include/xgboost/byteswap.h
include/xgboost/c_api.h
include/xgboost/cache.h
include/xgboost/collective/poll_utils.h
@@ -9,6 +10,7 @@ include/xgboost/data.h
include/xgboost/feature_map.h
include/xgboost/gbm.h
include/xgboost/global_config.h
+include/xgboost/gradient.h
include/xgboost/host_device_vector.h
include/xgboost/intrusive_ptr.h
include/xgboost/json.h
@@ -30,9 +32,11 @@ include/xgboost/tree_model.h
include/xgboost/tree_updater.h
include/xgboost/version_config.h
include/xgboost/windefs.h
-lib/cmake/xgboost/XGBoostTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/xgboost/XGBoostTargets-release.cmake
lib/cmake/xgboost/XGBoostTargets.cmake
lib/cmake/xgboost/xgboost-config-version.cmake
lib/cmake/xgboost/xgboost-config.cmake
lib/libxgboost.so
+lib/libxgboost.so.3
+lib/libxgboost.so.3.4.1
libdata/pkgconfig/xgboost.pc