pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/py-xgboost



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Jan 19 14:36:17 UTC 2024

Modified Files:
        pkgsrc/math/py-xgboost: Makefile PLIST distinfo
        pkgsrc/math/py-xgboost/patches: patch-xgboost_libpath.py
Added Files:
        pkgsrc/math/py-xgboost/patches: patch-cpp__src_dmlc-core_CMakeLists.txt
            patch-cpp__src_include_xgboost_collective_socket.h
Removed Files:
        pkgsrc/math/py-xgboost/patches: patch-xgboost_dmlc-core_CMakeLists.txt
            patch-xgboost_include_xgboost_collective_socket.h

Log Message:
py-xgboost: updated to 2.0.3

2.0.3

[backport][sklearn] Fix loading model attributes.
[backport][py] Use the first found native library.
[backport] [CI] Upload libxgboost4j.dylib (M1) to S3 bucket
[jvm-packages] Fix POM for xgboost-jvm metapackage


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/math/py-xgboost/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/math/py-xgboost/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/math/py-xgboost/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/math/py-xgboost/patches/patch-cpp__src_dmlc-core_CMakeLists.txt \
    pkgsrc/math/py-xgboost/patches/patch-cpp__src_include_xgboost_collective_socket.h
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/math/py-xgboost/patches/patch-xgboost_dmlc-core_CMakeLists.txt \
    pkgsrc/math/py-xgboost/patches/patch-xgboost_include_xgboost_collective_socket.h
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/math/py-xgboost/patches/patch-xgboost_libpath.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-xgboost/Makefile
diff -u pkgsrc/math/py-xgboost/Makefile:1.4 pkgsrc/math/py-xgboost/Makefile:1.5
--- pkgsrc/math/py-xgboost/Makefile:1.4 Tue Aug  1 23:20:50 2023
+++ pkgsrc/math/py-xgboost/Makefile     Fri Jan 19 14:36:17 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2023/08/01 23:20:50 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2024/01/19 14:36:17 adam Exp $
 
-DISTNAME=      xgboost-1.7.6
+DISTNAME=      xgboost-2.0.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    math python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=x/xgboost/}
@@ -10,6 +10,7 @@ HOMEPAGE=     https://github.com/dmlc/xgboos
 COMMENT=       XGBoost Python Package
 LICENSE=       apache-2.0
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.12.1:../../devel/py-hatchling
 DEPENDS+=      ${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
 
 USE_LANGUAGES+=        c gnu++17
@@ -21,17 +22,18 @@ REPLACE_SH+=                xgboost/dmlc-core/tracker/
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27 38
 
-pre-configure:
-       ${RM} ${WRKSRC}/xgboost/include/xgboost/collective/socket.h.orig
-
 .include "../../mk/bsd.prefs.mk"
 .if ${OPSYS} == "Darwin"
-post-install:
+post-install: fix-lib-name
+.PHONY: fix-lib-name
+fix-lib-name:
        install_name_tool -id ${PREFIX}/${PYSITELIB}/xgboost/lib/libxgboost.dylib \
        ${DESTDIR}${PREFIX}/${PYSITELIB}/xgboost/lib/libxgboost.dylib
 .endif
+post-install:
+       ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/xgboost/libpath.py.orig
 
 .include "../../math/py-numpy/buildlink3.mk"
 .include "../../lang/python/application.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/math/py-xgboost/PLIST
diff -u pkgsrc/math/py-xgboost/PLIST:1.1 pkgsrc/math/py-xgboost/PLIST:1.2
--- pkgsrc/math/py-xgboost/PLIST:1.1    Tue Jun 13 17:36:58 2023
+++ pkgsrc/math/py-xgboost/PLIST        Fri Jan 19 14:36:17 2024
@@ -1,12 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1 2023/06/13 17:36:58 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/xgboost/CMakeLists.txt
-${PYSITELIB}/xgboost/LICENSE
+@comment $NetBSD: PLIST,v 1.2 2024/01/19 14:36:17 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
 ${PYSITELIB}/xgboost/VERSION
 ${PYSITELIB}/xgboost/__init__.py
 ${PYSITELIB}/xgboost/__init__.pyc
@@ -17,17 +12,6 @@ ${PYSITELIB}/xgboost/_typing.pyo
 ${PYSITELIB}/xgboost/callback.py
 ${PYSITELIB}/xgboost/callback.pyc
 ${PYSITELIB}/xgboost/callback.pyo
-${PYSITELIB}/xgboost/cmake/Doc.cmake
-${PYSITELIB}/xgboost/cmake/FindPrefetchIntrinsics.cmake
-${PYSITELIB}/xgboost/cmake/Python_version.in
-${PYSITELIB}/xgboost/cmake/Utils.cmake
-${PYSITELIB}/xgboost/cmake/Version.cmake
-${PYSITELIB}/xgboost/cmake/modules/FindNVML.cmake
-${PYSITELIB}/xgboost/cmake/modules/FindNVTX.cmake
-${PYSITELIB}/xgboost/cmake/modules/FindNccl.cmake
-${PYSITELIB}/xgboost/cmake/version_config.h.in
-${PYSITELIB}/xgboost/cmake/xgboost-config.cmake.in
-${PYSITELIB}/xgboost/cmake/xgboost.pc.in
 ${PYSITELIB}/xgboost/collective.py
 ${PYSITELIB}/xgboost/collective.pyc
 ${PYSITELIB}/xgboost/collective.pyo
@@ -46,167 +30,9 @@ ${PYSITELIB}/xgboost/dask.pyo
 ${PYSITELIB}/xgboost/data.py
 ${PYSITELIB}/xgboost/data.pyc
 ${PYSITELIB}/xgboost/data.pyo
-${PYSITELIB}/xgboost/dmlc-core/CMakeLists.txt
-${PYSITELIB}/xgboost/dmlc-core/cmake/Modules/FindHDFS.cmake
-${PYSITELIB}/xgboost/dmlc-core/cmake/Utils.cmake
-${PYSITELIB}/xgboost/dmlc-core/cmake/build_config.h.in
-${PYSITELIB}/xgboost/dmlc-core/cmake/dmlc-config.cmake.in
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/any.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/array_view.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/base.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/blockingconcurrentqueue.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/build_config_default.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/common.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/concurrency.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/concurrentqueue.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/config.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/data.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/endian.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/filesystem.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/input_split_shuffle.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/io.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/json.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/logging.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/lua.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/memory.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/memory_io.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/omp.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/optional.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/parameter.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/recordio.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/registry.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/serializer.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/strtonum.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/thread_group.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/thread_local.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/threadediter.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/timer.h
-${PYSITELIB}/xgboost/dmlc-core/include/dmlc/type_traits.h
-${PYSITELIB}/xgboost/dmlc-core/make/config.mk
-${PYSITELIB}/xgboost/dmlc-core/make/dmlc.mk
-${PYSITELIB}/xgboost/dmlc-core/src/config.cc
-${PYSITELIB}/xgboost/dmlc-core/src/data.cc
-${PYSITELIB}/xgboost/dmlc-core/src/data/basic_row_iter.h
-${PYSITELIB}/xgboost/dmlc-core/src/data/csv_parser.h
-${PYSITELIB}/xgboost/dmlc-core/src/data/disk_row_iter.h
-${PYSITELIB}/xgboost/dmlc-core/src/data/libfm_parser.h
-${PYSITELIB}/xgboost/dmlc-core/src/data/libsvm_parser.h
-${PYSITELIB}/xgboost/dmlc-core/src/data/parquet_parser.h
-${PYSITELIB}/xgboost/dmlc-core/src/data/parser.h
-${PYSITELIB}/xgboost/dmlc-core/src/data/row_block.h
-${PYSITELIB}/xgboost/dmlc-core/src/data/text_parser.h
-${PYSITELIB}/xgboost/dmlc-core/src/io.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/azure_filesys.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/azure_filesys.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/cached_input_split.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/filesys.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/hdfs_filesys.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/hdfs_filesys.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/indexed_recordio_split.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/indexed_recordio_split.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/input_split_base.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/input_split_base.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/line_split.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/line_split.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/local_filesys.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/local_filesys.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/recordio_split.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/recordio_split.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/s3_filesys.cc
-${PYSITELIB}/xgboost/dmlc-core/src/io/s3_filesys.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/single_file_split.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/single_threaded_input_split.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/threaded_input_split.h
-${PYSITELIB}/xgboost/dmlc-core/src/io/uri_spec.h
-${PYSITELIB}/xgboost/dmlc-core/src/recordio.cc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc-submit
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/__init__.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/__init__.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/__init__.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/kubernetes.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/kubernetes.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/kubernetes.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/launcher.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/launcher.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/launcher.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/local.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/local.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/local.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/mesos.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/mesos.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/mesos.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/mpi.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/mpi.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/mpi.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/opts.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/opts.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/opts.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/sge.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/sge.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/slurm.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/slurm.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/slurm.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/ssh.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/ssh.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/ssh.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/submit.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/submit.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/submit.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/tracker.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/tracker.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/tracker.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/util.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/util.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/util.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/yarn.py
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/yarn.pyc
-${PYSITELIB}/xgboost/dmlc-core/tracker/dmlc_tracker/yarn.pyo
-${PYSITELIB}/xgboost/dmlc-core/tracker/yarn/build.bat
-${PYSITELIB}/xgboost/dmlc-core/tracker/yarn/build.sh
-${PYSITELIB}/xgboost/dmlc-core/tracker/yarn/pom.xml
-${PYSITELIB}/xgboost/dmlc-core/tracker/yarn/src/main/java/org/apache/hadoop/yarn/dmlc/ApplicationMaster.java
-${PYSITELIB}/xgboost/dmlc-core/tracker/yarn/src/main/java/org/apache/hadoop/yarn/dmlc/Client.java
-${PYSITELIB}/xgboost/dmlc-core/tracker/yarn/src/main/java/org/apache/hadoop/yarn/dmlc/TaskRecord.java
-${PYSITELIB}/xgboost/dmlc-core/windows/dmlc.sln
-${PYSITELIB}/xgboost/dmlc-core/windows/dmlc/dmlc.vcxproj
 ${PYSITELIB}/xgboost/federated.py
 ${PYSITELIB}/xgboost/federated.pyc
 ${PYSITELIB}/xgboost/federated.pyo
-${PYSITELIB}/xgboost/gputreeshap/GPUTreeShap/gpu_treeshap.h
-${PYSITELIB}/xgboost/gputreeshap/benchmark/benchmark.py
-${PYSITELIB}/xgboost/gputreeshap/benchmark/benchmark.pyc
-${PYSITELIB}/xgboost/gputreeshap/benchmark/benchmark.pyo
-${PYSITELIB}/xgboost/gputreeshap/benchmark/format_results.py
-${PYSITELIB}/xgboost/gputreeshap/benchmark/format_results.pyc
-${PYSITELIB}/xgboost/gputreeshap/benchmark/format_results.pyo
-${PYSITELIB}/xgboost/include/xgboost/base.h
-${PYSITELIB}/xgboost/include/xgboost/c_api.h
-${PYSITELIB}/xgboost/include/xgboost/collective/socket.h
-${PYSITELIB}/xgboost/include/xgboost/data.h
-${PYSITELIB}/xgboost/include/xgboost/feature_map.h
-${PYSITELIB}/xgboost/include/xgboost/gbm.h
-${PYSITELIB}/xgboost/include/xgboost/generic_parameters.h
-${PYSITELIB}/xgboost/include/xgboost/global_config.h
-${PYSITELIB}/xgboost/include/xgboost/host_device_vector.h
-${PYSITELIB}/xgboost/include/xgboost/intrusive_ptr.h
-${PYSITELIB}/xgboost/include/xgboost/json.h
-${PYSITELIB}/xgboost/include/xgboost/json_io.h
-${PYSITELIB}/xgboost/include/xgboost/learner.h
-${PYSITELIB}/xgboost/include/xgboost/linalg.h
-${PYSITELIB}/xgboost/include/xgboost/linear_updater.h
-${PYSITELIB}/xgboost/include/xgboost/logging.h
-${PYSITELIB}/xgboost/include/xgboost/metric.h
-${PYSITELIB}/xgboost/include/xgboost/model.h
-${PYSITELIB}/xgboost/include/xgboost/objective.h
-${PYSITELIB}/xgboost/include/xgboost/parameter.h
-${PYSITELIB}/xgboost/include/xgboost/predictor.h
-${PYSITELIB}/xgboost/include/xgboost/span.h
-${PYSITELIB}/xgboost/include/xgboost/string_view.h
-${PYSITELIB}/xgboost/include/xgboost/task.h
-${PYSITELIB}/xgboost/include/xgboost/tree_model.h
-${PYSITELIB}/xgboost/include/xgboost/tree_updater.h
-${PYSITELIB}/xgboost/include/xgboost/version_config.h
 ${PYSITELIB}/xgboost/lib/libxgboost.so
 ${PYSITELIB}/xgboost/libpath.py
 ${PYSITELIB}/xgboost/libpath.pyc
@@ -214,44 +40,10 @@ ${PYSITELIB}/xgboost/libpath.pyo
 ${PYSITELIB}/xgboost/plotting.py
 ${PYSITELIB}/xgboost/plotting.pyc
 ${PYSITELIB}/xgboost/plotting.pyo
-${PYSITELIB}/xgboost/plugin/CMakeLists.txt
-${PYSITELIB}/xgboost/plugin/README.md
-${PYSITELIB}/xgboost/plugin/dense_parser/dense_libsvm.cc
-${PYSITELIB}/xgboost/plugin/example/README.md
-${PYSITELIB}/xgboost/plugin/example/custom_obj.cc
-${PYSITELIB}/xgboost/plugin/federated/CMakeLists.txt
-${PYSITELIB}/xgboost/plugin/federated/README.md
-${PYSITELIB}/xgboost/plugin/federated/federated.proto
-${PYSITELIB}/xgboost/plugin/federated/federated_client.h
-${PYSITELIB}/xgboost/plugin/federated/federated_communicator.h
-${PYSITELIB}/xgboost/plugin/federated/federated_server.cc
-${PYSITELIB}/xgboost/plugin/federated/federated_server.h
-${PYSITELIB}/xgboost/plugin/updater_gpu/README.md
-${PYSITELIB}/xgboost/plugin/updater_oneapi/README.md
-${PYSITELIB}/xgboost/plugin/updater_oneapi/predictor_oneapi.cc
-${PYSITELIB}/xgboost/plugin/updater_oneapi/regression_loss_oneapi.h
-${PYSITELIB}/xgboost/plugin/updater_oneapi/regression_obj_oneapi.cc
 ${PYSITELIB}/xgboost/py.typed
 ${PYSITELIB}/xgboost/rabit.py
 ${PYSITELIB}/xgboost/rabit.pyc
 ${PYSITELIB}/xgboost/rabit.pyo
-${PYSITELIB}/xgboost/rabit/CMakeLists.txt
-${PYSITELIB}/xgboost/rabit/include/rabit/base.h
-${PYSITELIB}/xgboost/rabit/include/rabit/c_api.h
-${PYSITELIB}/xgboost/rabit/include/rabit/internal/engine.h
-${PYSITELIB}/xgboost/rabit/include/rabit/internal/io.h
-${PYSITELIB}/xgboost/rabit/include/rabit/internal/rabit-inl.h
-${PYSITELIB}/xgboost/rabit/include/rabit/internal/socket.h
-${PYSITELIB}/xgboost/rabit/include/rabit/internal/utils.h
-${PYSITELIB}/xgboost/rabit/include/rabit/rabit.h
-${PYSITELIB}/xgboost/rabit/include/rabit/serializable.h
-${PYSITELIB}/xgboost/rabit/src/allreduce_base.cc
-${PYSITELIB}/xgboost/rabit/src/allreduce_base.h
-${PYSITELIB}/xgboost/rabit/src/allreduce_mock.h
-${PYSITELIB}/xgboost/rabit/src/engine.cc
-${PYSITELIB}/xgboost/rabit/src/engine_mock.cc
-${PYSITELIB}/xgboost/rabit/src/engine_mpi.cc
-${PYSITELIB}/xgboost/rabit/src/rabit_c_api.cc
 ${PYSITELIB}/xgboost/sklearn.py
 ${PYSITELIB}/xgboost/sklearn.pyc
 ${PYSITELIB}/xgboost/sklearn.pyo
@@ -267,218 +59,39 @@ ${PYSITELIB}/xgboost/spark/data.pyo
 ${PYSITELIB}/xgboost/spark/estimator.py
 ${PYSITELIB}/xgboost/spark/estimator.pyc
 ${PYSITELIB}/xgboost/spark/estimator.pyo
-${PYSITELIB}/xgboost/spark/model.py
-${PYSITELIB}/xgboost/spark/model.pyc
-${PYSITELIB}/xgboost/spark/model.pyo
 ${PYSITELIB}/xgboost/spark/params.py
 ${PYSITELIB}/xgboost/spark/params.pyc
 ${PYSITELIB}/xgboost/spark/params.pyo
 ${PYSITELIB}/xgboost/spark/utils.py
 ${PYSITELIB}/xgboost/spark/utils.pyc
 ${PYSITELIB}/xgboost/spark/utils.pyo
-${PYSITELIB}/xgboost/src/CMakeLists.txt
-${PYSITELIB}/xgboost/src/c_api/c_api.cc
-${PYSITELIB}/xgboost/src/c_api/c_api.cu
-${PYSITELIB}/xgboost/src/c_api/c_api_error.cc
-${PYSITELIB}/xgboost/src/c_api/c_api_error.h
-${PYSITELIB}/xgboost/src/c_api/c_api_utils.h
-${PYSITELIB}/xgboost/src/cli_main.cc
-${PYSITELIB}/xgboost/src/collective/communicator-inl.h
-${PYSITELIB}/xgboost/src/collective/communicator.cc
-${PYSITELIB}/xgboost/src/collective/communicator.cu
-${PYSITELIB}/xgboost/src/collective/communicator.h
-${PYSITELIB}/xgboost/src/collective/device_communicator.cuh
-${PYSITELIB}/xgboost/src/collective/device_communicator_adapter.cuh
-${PYSITELIB}/xgboost/src/collective/nccl_device_communicator.cuh
-${PYSITELIB}/xgboost/src/collective/noop_communicator.h
-${PYSITELIB}/xgboost/src/collective/rabit_communicator.h
-${PYSITELIB}/xgboost/src/collective/socket.cc
-${PYSITELIB}/xgboost/src/common/algorithm.cuh
-${PYSITELIB}/xgboost/src/common/algorithm.h
-${PYSITELIB}/xgboost/src/common/base64.h
-${PYSITELIB}/xgboost/src/common/bitfield.h
-${PYSITELIB}/xgboost/src/common/categorical.h
-${PYSITELIB}/xgboost/src/common/charconv.cc
-${PYSITELIB}/xgboost/src/common/charconv.h
-${PYSITELIB}/xgboost/src/common/column_matrix.cc
-${PYSITELIB}/xgboost/src/common/column_matrix.h
-${PYSITELIB}/xgboost/src/common/common.cc
-${PYSITELIB}/xgboost/src/common/common.cu
-${PYSITELIB}/xgboost/src/common/common.h
-${PYSITELIB}/xgboost/src/common/compressed_iterator.h
-${PYSITELIB}/xgboost/src/common/config.h
-${PYSITELIB}/xgboost/src/common/cuda_pinned_allocator.h
-${PYSITELIB}/xgboost/src/common/device_helpers.cuh
-${PYSITELIB}/xgboost/src/common/group_data.h
-${PYSITELIB}/xgboost/src/common/hist_util.cc
-${PYSITELIB}/xgboost/src/common/hist_util.cu
-${PYSITELIB}/xgboost/src/common/hist_util.cuh
-${PYSITELIB}/xgboost/src/common/hist_util.h
-${PYSITELIB}/xgboost/src/common/host_device_vector.cc
-${PYSITELIB}/xgboost/src/common/host_device_vector.cu
-${PYSITELIB}/xgboost/src/common/io.cc
-${PYSITELIB}/xgboost/src/common/io.h
-${PYSITELIB}/xgboost/src/common/json.cc
-${PYSITELIB}/xgboost/src/common/linalg_op.cuh
-${PYSITELIB}/xgboost/src/common/linalg_op.h
-${PYSITELIB}/xgboost/src/common/math.h
-${PYSITELIB}/xgboost/src/common/numeric.cc
-${PYSITELIB}/xgboost/src/common/numeric.cu
-${PYSITELIB}/xgboost/src/common/numeric.h
-${PYSITELIB}/xgboost/src/common/observer.h
-${PYSITELIB}/xgboost/src/common/partition_builder.h
-${PYSITELIB}/xgboost/src/common/probability_distribution.h
-${PYSITELIB}/xgboost/src/common/pseudo_huber.cc
-${PYSITELIB}/xgboost/src/common/pseudo_huber.h
-${PYSITELIB}/xgboost/src/common/quantile.cc
-${PYSITELIB}/xgboost/src/common/quantile.cu
-${PYSITELIB}/xgboost/src/common/quantile.cuh
-${PYSITELIB}/xgboost/src/common/quantile.h
-${PYSITELIB}/xgboost/src/common/random.cc
-${PYSITELIB}/xgboost/src/common/random.h
-${PYSITELIB}/xgboost/src/common/ranking_utils.cuh
-${PYSITELIB}/xgboost/src/common/row_set.h
-${PYSITELIB}/xgboost/src/common/stats.cu
-${PYSITELIB}/xgboost/src/common/stats.cuh
-${PYSITELIB}/xgboost/src/common/stats.h
-${PYSITELIB}/xgboost/src/common/survival_util.cc
-${PYSITELIB}/xgboost/src/common/survival_util.h
-${PYSITELIB}/xgboost/src/common/threading_utils.cc
-${PYSITELIB}/xgboost/src/common/threading_utils.h
-${PYSITELIB}/xgboost/src/common/timer.cc
-${PYSITELIB}/xgboost/src/common/timer.h
-${PYSITELIB}/xgboost/src/common/transform.h
-${PYSITELIB}/xgboost/src/common/version.cc
-${PYSITELIB}/xgboost/src/common/version.h
-${PYSITELIB}/xgboost/src/data/adapter.h
-${PYSITELIB}/xgboost/src/data/array_interface.cu
-${PYSITELIB}/xgboost/src/data/array_interface.h
-${PYSITELIB}/xgboost/src/data/arrow-cdi.h
-${PYSITELIB}/xgboost/src/data/data.cc
-${PYSITELIB}/xgboost/src/data/data.cu
-${PYSITELIB}/xgboost/src/data/device_adapter.cuh
-${PYSITELIB}/xgboost/src/data/ellpack_page.cc
-${PYSITELIB}/xgboost/src/data/ellpack_page.cu
-${PYSITELIB}/xgboost/src/data/ellpack_page.cuh
-${PYSITELIB}/xgboost/src/data/ellpack_page_raw_format.cu
-${PYSITELIB}/xgboost/src/data/ellpack_page_source.cu
-${PYSITELIB}/xgboost/src/data/ellpack_page_source.h
-${PYSITELIB}/xgboost/src/data/file_iterator.h
-${PYSITELIB}/xgboost/src/data/gradient_index.cc
-${PYSITELIB}/xgboost/src/data/gradient_index.cu
-${PYSITELIB}/xgboost/src/data/gradient_index.h
-${PYSITELIB}/xgboost/src/data/gradient_index_format.cc
-${PYSITELIB}/xgboost/src/data/gradient_index_page_source.cc
-${PYSITELIB}/xgboost/src/data/gradient_index_page_source.h
-${PYSITELIB}/xgboost/src/data/histogram_cut_format.h
-${PYSITELIB}/xgboost/src/data/iterative_dmatrix.cc
-${PYSITELIB}/xgboost/src/data/iterative_dmatrix.cu
-${PYSITELIB}/xgboost/src/data/iterative_dmatrix.h
-${PYSITELIB}/xgboost/src/data/proxy_dmatrix.cc
-${PYSITELIB}/xgboost/src/data/proxy_dmatrix.cu
-${PYSITELIB}/xgboost/src/data/proxy_dmatrix.cuh
-${PYSITELIB}/xgboost/src/data/proxy_dmatrix.h
-${PYSITELIB}/xgboost/src/data/simple_batch_iterator.h
-${PYSITELIB}/xgboost/src/data/simple_dmatrix.cc
-${PYSITELIB}/xgboost/src/data/simple_dmatrix.cu
-${PYSITELIB}/xgboost/src/data/simple_dmatrix.cuh
-${PYSITELIB}/xgboost/src/data/simple_dmatrix.h
-${PYSITELIB}/xgboost/src/data/sparse_page_dmatrix.cc
-${PYSITELIB}/xgboost/src/data/sparse_page_dmatrix.cu
-${PYSITELIB}/xgboost/src/data/sparse_page_dmatrix.h
-${PYSITELIB}/xgboost/src/data/sparse_page_raw_format.cc
-${PYSITELIB}/xgboost/src/data/sparse_page_source.cu
-${PYSITELIB}/xgboost/src/data/sparse_page_source.h
-${PYSITELIB}/xgboost/src/data/sparse_page_writer.h
-${PYSITELIB}/xgboost/src/data/validation.h
-${PYSITELIB}/xgboost/src/gbm/gblinear.cc
-${PYSITELIB}/xgboost/src/gbm/gblinear_model.cc
-${PYSITELIB}/xgboost/src/gbm/gblinear_model.h
-${PYSITELIB}/xgboost/src/gbm/gbm.cc
-${PYSITELIB}/xgboost/src/gbm/gbtree.cc
-${PYSITELIB}/xgboost/src/gbm/gbtree.cu
-${PYSITELIB}/xgboost/src/gbm/gbtree.h
-${PYSITELIB}/xgboost/src/gbm/gbtree_model.cc
-${PYSITELIB}/xgboost/src/gbm/gbtree_model.h
-${PYSITELIB}/xgboost/src/global_config.cc
-${PYSITELIB}/xgboost/src/learner.cc
-${PYSITELIB}/xgboost/src/linear/coordinate_common.h
-${PYSITELIB}/xgboost/src/linear/linear_updater.cc
-${PYSITELIB}/xgboost/src/linear/param.h
-${PYSITELIB}/xgboost/src/linear/updater_coordinate.cc
-${PYSITELIB}/xgboost/src/linear/updater_gpu_coordinate.cu
-${PYSITELIB}/xgboost/src/linear/updater_shotgun.cc
-${PYSITELIB}/xgboost/src/logging.cc
-${PYSITELIB}/xgboost/src/metric/auc.cc
-${PYSITELIB}/xgboost/src/metric/auc.cu
-${PYSITELIB}/xgboost/src/metric/auc.h
-${PYSITELIB}/xgboost/src/metric/elementwise_metric.cc
-${PYSITELIB}/xgboost/src/metric/elementwise_metric.cu
-${PYSITELIB}/xgboost/src/metric/metric.cc
-${PYSITELIB}/xgboost/src/metric/metric_common.h
-${PYSITELIB}/xgboost/src/metric/multiclass_metric.cc
-${PYSITELIB}/xgboost/src/metric/multiclass_metric.cu
-${PYSITELIB}/xgboost/src/metric/rank_metric.cc
-${PYSITELIB}/xgboost/src/metric/rank_metric.cu
-${PYSITELIB}/xgboost/src/metric/survival_metric.cc
-${PYSITELIB}/xgboost/src/metric/survival_metric.cu
-${PYSITELIB}/xgboost/src/objective/adaptive.cc
-${PYSITELIB}/xgboost/src/objective/adaptive.cu
-${PYSITELIB}/xgboost/src/objective/adaptive.h
-${PYSITELIB}/xgboost/src/objective/aft_obj.cc
-${PYSITELIB}/xgboost/src/objective/aft_obj.cu
-${PYSITELIB}/xgboost/src/objective/hinge.cc
-${PYSITELIB}/xgboost/src/objective/hinge.cu
-${PYSITELIB}/xgboost/src/objective/multiclass_obj.cc
-${PYSITELIB}/xgboost/src/objective/multiclass_obj.cu
-${PYSITELIB}/xgboost/src/objective/objective.cc
-${PYSITELIB}/xgboost/src/objective/rank_obj.cc
-${PYSITELIB}/xgboost/src/objective/rank_obj.cu
-${PYSITELIB}/xgboost/src/objective/regression_loss.h
-${PYSITELIB}/xgboost/src/objective/regression_obj.cc
-${PYSITELIB}/xgboost/src/objective/regression_obj.cu
-${PYSITELIB}/xgboost/src/predictor/cpu_predictor.cc
-${PYSITELIB}/xgboost/src/predictor/gpu_predictor.cu
-${PYSITELIB}/xgboost/src/predictor/predict_fn.h
-${PYSITELIB}/xgboost/src/predictor/predictor.cc
-${PYSITELIB}/xgboost/src/tree/common_row_partitioner.h
-${PYSITELIB}/xgboost/src/tree/constraints.cc
-${PYSITELIB}/xgboost/src/tree/constraints.cu
-${PYSITELIB}/xgboost/src/tree/constraints.cuh
-${PYSITELIB}/xgboost/src/tree/constraints.h
-${PYSITELIB}/xgboost/src/tree/driver.h
-${PYSITELIB}/xgboost/src/tree/gpu_hist/evaluate_splits.cu
-${PYSITELIB}/xgboost/src/tree/gpu_hist/evaluate_splits.cuh
-${PYSITELIB}/xgboost/src/tree/gpu_hist/evaluator.cu
-${PYSITELIB}/xgboost/src/tree/gpu_hist/expand_entry.cuh
-${PYSITELIB}/xgboost/src/tree/gpu_hist/feature_groups.cu
-${PYSITELIB}/xgboost/src/tree/gpu_hist/feature_groups.cuh
-${PYSITELIB}/xgboost/src/tree/gpu_hist/gradient_based_sampler.cu
-${PYSITELIB}/xgboost/src/tree/gpu_hist/gradient_based_sampler.cuh
-${PYSITELIB}/xgboost/src/tree/gpu_hist/histogram.cu
-${PYSITELIB}/xgboost/src/tree/gpu_hist/histogram.cuh
-${PYSITELIB}/xgboost/src/tree/gpu_hist/row_partitioner.cu
-${PYSITELIB}/xgboost/src/tree/gpu_hist/row_partitioner.cuh
-${PYSITELIB}/xgboost/src/tree/hist/evaluate_splits.h
-${PYSITELIB}/xgboost/src/tree/hist/expand_entry.h
-${PYSITELIB}/xgboost/src/tree/hist/histogram.h
-${PYSITELIB}/xgboost/src/tree/param.cc
-${PYSITELIB}/xgboost/src/tree/param.h
-${PYSITELIB}/xgboost/src/tree/split_evaluator.h
-${PYSITELIB}/xgboost/src/tree/tree_model.cc
-${PYSITELIB}/xgboost/src/tree/tree_updater.cc
-${PYSITELIB}/xgboost/src/tree/updater_approx.cc
-${PYSITELIB}/xgboost/src/tree/updater_colmaker.cc
-${PYSITELIB}/xgboost/src/tree/updater_gpu_common.cuh
-${PYSITELIB}/xgboost/src/tree/updater_gpu_hist.cu
-${PYSITELIB}/xgboost/src/tree/updater_prune.cc
-${PYSITELIB}/xgboost/src/tree/updater_quantile_hist.cc
-${PYSITELIB}/xgboost/src/tree/updater_quantile_hist.h
-${PYSITELIB}/xgboost/src/tree/updater_refresh.cc
-${PYSITELIB}/xgboost/src/tree/updater_sync.cc
-${PYSITELIB}/xgboost/testing.py
-${PYSITELIB}/xgboost/testing.pyc
-${PYSITELIB}/xgboost/testing.pyo
+${PYSITELIB}/xgboost/testing/__init__.py
+${PYSITELIB}/xgboost/testing/__init__.pyc
+${PYSITELIB}/xgboost/testing/__init__.pyo
+${PYSITELIB}/xgboost/testing/dask.py
+${PYSITELIB}/xgboost/testing/dask.pyc
+${PYSITELIB}/xgboost/testing/dask.pyo
+${PYSITELIB}/xgboost/testing/data.py
+${PYSITELIB}/xgboost/testing/data.pyc
+${PYSITELIB}/xgboost/testing/data.pyo
+${PYSITELIB}/xgboost/testing/data_iter.py
+${PYSITELIB}/xgboost/testing/data_iter.pyc
+${PYSITELIB}/xgboost/testing/data_iter.pyo
+${PYSITELIB}/xgboost/testing/metrics.py
+${PYSITELIB}/xgboost/testing/metrics.pyc
+${PYSITELIB}/xgboost/testing/metrics.pyo
+${PYSITELIB}/xgboost/testing/params.py
+${PYSITELIB}/xgboost/testing/params.pyc
+${PYSITELIB}/xgboost/testing/params.pyo
+${PYSITELIB}/xgboost/testing/ranking.py
+${PYSITELIB}/xgboost/testing/ranking.pyc
+${PYSITELIB}/xgboost/testing/ranking.pyo
+${PYSITELIB}/xgboost/testing/shared.py
+${PYSITELIB}/xgboost/testing/shared.pyc
+${PYSITELIB}/xgboost/testing/shared.pyo
+${PYSITELIB}/xgboost/testing/updater.py
+${PYSITELIB}/xgboost/testing/updater.pyc
+${PYSITELIB}/xgboost/testing/updater.pyo
 ${PYSITELIB}/xgboost/tracker.py
 ${PYSITELIB}/xgboost/tracker.pyc
 ${PYSITELIB}/xgboost/tracker.pyo

Index: pkgsrc/math/py-xgboost/distinfo
diff -u pkgsrc/math/py-xgboost/distinfo:1.2 pkgsrc/math/py-xgboost/distinfo:1.3
--- pkgsrc/math/py-xgboost/distinfo:1.2 Mon Jun 19 08:03:48 2023
+++ pkgsrc/math/py-xgboost/distinfo     Fri Jan 19 14:36:17 2024
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2023/06/19 08:03:48 adam Exp $
+$NetBSD: distinfo,v 1.3 2024/01/19 14:36:17 adam Exp $
 
-BLAKE2s (xgboost-1.7.6.tar.gz) = 0802b62e76a5bd63dd4bc33c47d6f2da473b973a7e90196a86116b4e3b35a937
-SHA512 (xgboost-1.7.6.tar.gz) = fe49bc72e1f28584c8cf739e3762da707f29c99f83123173619011d1d0f7600fb665d2e402e26873a7eb6b383a665fd2e96f5438dc15049227864e7583196831
-Size (xgboost-1.7.6.tar.gz) = 848864 bytes
-SHA1 (patch-xgboost_dmlc-core_CMakeLists.txt) = 39432a69b84b177ab3bb882b960d9141f92771bd
-SHA1 (patch-xgboost_include_xgboost_collective_socket.h) = 0afa5538ae7b415af2e6901c995a84fa5539f86b
-SHA1 (patch-xgboost_libpath.py) = f9e2dbad7cf1831354f1174a939878b758eba57d
+BLAKE2s (xgboost-2.0.3.tar.gz) = 3f4382c6559f9d9cbbcb5299c9422fc1b194d3e9c2e27c456a9f1ed33eaf0bfa
+SHA512 (xgboost-2.0.3.tar.gz) = 93614a9ad9d0a256cc31586b701c46eef4353df76c3eac26f39df23c8c02fa9ec95e72a0cea0b51bc3e416b81b3ac557ed361afeda246376a7b561bb6f7da579
+Size (xgboost-2.0.3.tar.gz) = 1048322 bytes
+SHA1 (patch-cpp__src_dmlc-core_CMakeLists.txt) = 2b09910ae40fd26fdaf7462ad4b37662dd106554
+SHA1 (patch-cpp__src_include_xgboost_collective_socket.h) = 71c2e47527fc39ca5cac4f47523f0f9ed8d22657
+SHA1 (patch-xgboost_libpath.py) = 39b2538729e5e4408de81534cd2b720ed112775a

Index: pkgsrc/math/py-xgboost/patches/patch-xgboost_libpath.py
diff -u pkgsrc/math/py-xgboost/patches/patch-xgboost_libpath.py:1.1 pkgsrc/math/py-xgboost/patches/patch-xgboost_libpath.py:1.2
--- pkgsrc/math/py-xgboost/patches/patch-xgboost_libpath.py:1.1 Tue Jun 13 17:36:58 2023
+++ pkgsrc/math/py-xgboost/patches/patch-xgboost_libpath.py     Fri Jan 19 14:36:17 2024
@@ -1,21 +1,21 @@
-$NetBSD: patch-xgboost_libpath.py,v 1.1 2023/06/13 17:36:58 adam Exp $
+$NetBSD: patch-xgboost_libpath.py,v 1.2 2024/01/19 14:36:17 adam Exp $
 
 Default to libxgboost.so when looking for dynamic library.
 
---- xgboost/libpath.py.orig    2023-06-13 17:27:59.000000000 +0000
+--- xgboost/libpath.py.orig    2020-02-02 00:00:00.000000000 +0000
 +++ xgboost/libpath.py
-@@ -43,13 +43,11 @@ def find_lib_path() -> List[str]:
-             # directory here
-             dll_path.append(os.path.join(curr_path, './windows/Release/'))
-         dll_path = [os.path.join(p, 'xgboost.dll') for p in dll_path]
--    elif sys.platform.startswith(('linux', 'freebsd', 'emscripten')):
--        dll_path = [os.path.join(p, 'libxgboost.so') for p in dll_path]
-     elif sys.platform == 'darwin':
-         dll_path = [os.path.join(p, 'libxgboost.dylib') for p in dll_path]
-     elif sys.platform == 'cygwin':
-         dll_path = [os.path.join(p, 'cygxgboost.dll') for p in dll_path]
--    if platform.system() == 'OS400':
+@@ -41,13 +41,11 @@ def find_lib_path() -> List[str]:
+             ]
+         )
+         dll_path = [os.path.join(p, "xgboost.dll") for p in dll_path]
+-    elif sys.platform.startswith(("linux", "freebsd", "emscripten")):
+-        dll_path = [os.path.join(p, "libxgboost.so") for p in dll_path]
+     elif sys.platform == "darwin":
+         dll_path = [os.path.join(p, "libxgboost.dylib") for p in dll_path]
+     elif sys.platform == "cygwin":
+         dll_path = [os.path.join(p, "cygxgboost.dll") for p in dll_path]
+-    if platform.system() == "OS400":
 +    else:
-         dll_path = [os.path.join(p, 'libxgboost.so') for p in dll_path]
+         dll_path = [os.path.join(p, "libxgboost.so") for p in dll_path]
  
      lib_path = [p for p in dll_path if os.path.exists(p) and os.path.isfile(p)]

Added files:

Index: pkgsrc/math/py-xgboost/patches/patch-cpp__src_dmlc-core_CMakeLists.txt
diff -u /dev/null pkgsrc/math/py-xgboost/patches/patch-cpp__src_dmlc-core_CMakeLists.txt:1.1
--- /dev/null   Fri Jan 19 14:36:18 2024
+++ pkgsrc/math/py-xgboost/patches/patch-cpp__src_dmlc-core_CMakeLists.txt      Fri Jan 19 14:36:17 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-cpp__src_dmlc-core_CMakeLists.txt,v 1.1 2024/01/19 14:36:17 adam Exp $
+
+Fix build.
+
+--- cpp_src/dmlc-core/CMakeLists.txt.orig      2023-02-27 12:24:23.000000000 +0000
++++ cpp_src/dmlc-core/CMakeLists.txt
+@@ -185,8 +185,6 @@ target_include_directories(dmlc PUBLIC
+   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+   $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
+   $<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>)
+-target_compile_definitions(dmlc PRIVATE -D_XOPEN_SOURCE=700
+-  -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L -D_DARWIN_C_SOURCE)
+ # Older stdc++ enable c++11 items
+ target_compile_definitions(dmlc PUBLIC -D__USE_XOPEN2K8)
+ # DMLC_CORE_USE_CMAKE macro constant indicates the use of CMake
Index: pkgsrc/math/py-xgboost/patches/patch-cpp__src_include_xgboost_collective_socket.h
diff -u /dev/null pkgsrc/math/py-xgboost/patches/patch-cpp__src_include_xgboost_collective_socket.h:1.1
--- /dev/null   Fri Jan 19 14:36:18 2024
+++ pkgsrc/math/py-xgboost/patches/patch-cpp__src_include_xgboost_collective_socket.h   Fri Jan 19 14:36:17 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-cpp__src_include_xgboost_collective_socket.h,v 1.1 2024/01/19 14:36:17 adam Exp $
+
+NetBSD doesn't provide SO_DOMAIN socket option.
+
+--- cpp_src/include/xgboost/collective/socket.h.orig   2023-06-13 16:57:30.244346651 +0000
++++ cpp_src/include/xgboost/collective/socket.h
+@@ -250,7 +250,7 @@ class TCPSocket {
+   HandleT handle_{InvalidSocket()};
+   // There's reliable no way to extract domain from a socket without first binding that
+   // socket on macos.
+-#if defined(__APPLE__)
++#if defined(__APPLE__) || defined(__NetBSD__)
+   SockDomain domain_{SockDomain::kV4};
+ #endif
+ 
+@@ -284,7 +284,7 @@ class TCPSocket {
+         getsockopt(handle_, SOL_SOCKET, SO_PROTOCOL_INFO, reinterpret_cast<char *>(&info), &len),
+         0);
+     return ret_iafamily(info.iAddressFamily);
+-#elif defined(__APPLE__)
++#elif defined(__APPLE__) || defined(__NetBSD__)
+     return domain_;
+ #elif defined(__unix__)
+ #ifndef __PASE__



Home | Main Index | Thread Index | Old Index