unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 6209ae1f1020701625515c00b729058fb852c700 1139 bytes (raw)
name: gnu/packages/patches/xgboost-use-system-dmlc-core.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
From 34167cc105e47589b86b6f62da76e0ab744002dd Mon Sep 17 00:00:00 2001
From: Vinicius Monego <monego@posteo.net>
Date: Tue, 11 May 2021 19:35:30 -0300
Subject: [PATCH] Use dmlc-core from Guix.

---
This patch is a subset from the following Debian patch: https://sources.debian.org/src/xgboost/1.2.1-1/debian/patches/cmake.patch/

Rabit is now developed as part of xgboost, so we don't build it separately.

 CMakeLists.txt | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6cc19fbd..3b42bc17 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -150,11 +150,9 @@ endif (USE_OPENMP)
 
 # dmlc-core
 msvc_use_static_runtime()
-add_subdirectory(${xgboost_SOURCE_DIR}/dmlc-core)
-set_target_properties(dmlc PROPERTIES
-  CXX_STANDARD 14
-  CXX_STANDARD_REQUIRED ON
-  POSITION_INDEPENDENT_CODE ON)
+add_library(dmlc SHARED IMPORTED)
+find_library(DMLC_LIBRARY dmlc)
+set_property(TARGET dmlc PROPERTY IMPORTED_LOCATION "${DMLC_LIBRARY}")
 if (MSVC)
   target_compile_options(dmlc PRIVATE
                          -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE)
-- 
2.31.1


debug log:

solving 6209ae1f10 ...
found 6209ae1f10 in https://yhetil.org/guix-patches/20210512235844.516970-2-monego@posteo.net/ ||
	https://yhetil.org/guix-patches/20210513152914.573837-1-monego@posteo.net/

applying [1/1] https://yhetil.org/guix-patches/20210512235844.516970-2-monego@posteo.net/
diff --git a/gnu/packages/patches/xgboost-use-system-dmlc-core.patch b/gnu/packages/patches/xgboost-use-system-dmlc-core.patch
new file mode 100644
index 0000000000..6209ae1f10

1:25: trailing whitespace.
 
1:39: trailing whitespace.
-- 
Checking patch gnu/packages/patches/xgboost-use-system-dmlc-core.patch...
1:41: new blank line at EOF.
+
Applied patch gnu/packages/patches/xgboost-use-system-dmlc-core.patch cleanly.
warning: 3 lines add whitespace errors.

skipping https://yhetil.org/guix-patches/20210513152914.573837-1-monego@posteo.net/ for 6209ae1f10
index at:
100644 6209ae1f1020701625515c00b729058fb852c700	gnu/packages/patches/xgboost-use-system-dmlc-core.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).