git: 6bf397880890 - main - misc/py-xgboost: Add forgotten patch

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 21 Jun 2024 09:47:29 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6bf3978808900f1b5f82037353e7cc09379b1c27

commit 6bf3978808900f1b5f82037353e7cc09379b1c27
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-06-21 09:47:11 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-06-21 09:47:11 +0000

    misc/py-xgboost: Add forgotten patch
---
 misc/py-xgboost/files/patch-src_c__api_coll__c__api.cc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/misc/py-xgboost/files/patch-src_c__api_coll__c__api.cc b/misc/py-xgboost/files/patch-src_c__api_coll__c__api.cc
new file mode 100644
index 000000000000..7a6961734687
--- /dev/null
+++ b/misc/py-xgboost/files/patch-src_c__api_coll__c__api.cc
@@ -0,0 +1,13 @@
+- workaround for https://github.com/dmlc/xgboost/issues/10466
+
+--- ../src/c_api/coll_c_api.cc.orig	2024-06-21 07:43:36 UTC
++++ ../src/c_api/coll_c_api.cc
+@@ -75,7 +75,7 @@ void WaitImpl(TrackerHandleT *ptr, std::chrono::second
+ 
+ void WaitImpl(TrackerHandleT *ptr, std::chrono::seconds timeout) {
+   constexpr std::int64_t kDft{collective::DefaultTimeoutSec()};
+-  std::chrono::seconds wait_for{collective::HasTimeout(timeout) ? std::min(kDft, timeout.count())
++  std::chrono::seconds wait_for{collective::HasTimeout(timeout) ? std::min(long(kDft), long(timeout.count()))
+                                                                 : kDft};
+ 
+   common::Timer timer;