all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 115ca02775faa938b942eaae67e60fd00bf9c95d 1740 bytes (raw)
name: gnu/packages/patches/lightgbm-use-system-libraries.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 
From 894648291b9629d51785e4fd1cae820d2858e039 Mon Sep 17 00:00:00 2001
From: Vinicius Monego <monego@posteo.net>
Date: Mon, 31 May 2021 21:23:52 -0300
Subject: [PATCH] Use system libraries.

---
 CMakeLists.txt                  | 11 ++++++++---
 include/LightGBM/utils/common.h |  4 ++--
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b845f36..560e477 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,9 +93,6 @@ if(USE_SWIG)
   endif()
 endif(USE_SWIG)
 
-SET(EIGEN_DIR "${PROJECT_SOURCE_DIR}/external_libs/eigen")
-include_directories(${EIGEN_DIR})
-
 # See https://gitlab.com/libeigen/eigen/-/blob/master/COPYING.README
 ADD_DEFINITIONS(-DEIGEN_MPL2_ONLY)
 
@@ -399,6 +396,14 @@ if(USE_SWIG)
   endif()
 endif(USE_SWIG)
 
+find_package (Eigen3 3.3 REQUIRED NO_MODULE)
+TARGET_LINK_LIBRARIES (lightgbm Eigen3::Eigen)
+TARGET_LINK_LIBRARIES (_lightgbm Eigen3::Eigen)
+
+find_package(fmt)
+TARGET_LINK_LIBRARIES(lightgbm fmt::fmt)
+TARGET_LINK_LIBRARIES(_lightgbm fmt::fmt)
+
 if(USE_MPI)
   TARGET_LINK_LIBRARIES(lightgbm ${MPI_CXX_LIBRARIES})
   TARGET_LINK_LIBRARIES(_lightgbm ${MPI_CXX_LIBRARIES})
diff --git a/include/LightGBM/utils/common.h b/include/LightGBM/utils/common.h
index 4357357..00101a5 100644
--- a/include/LightGBM/utils/common.h
+++ b/include/LightGBM/utils/common.h
@@ -32,9 +32,9 @@
 
 #if (!((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__))))
 #define FMT_HEADER_ONLY
-#include "../../../external_libs/fmt/include/fmt/format.h"
+#include "fmt/format.h"
 #endif
-#include "../../../external_libs/fast_double_parser/include/fast_double_parser.h"
+#include "fast_double_parser.h"
 
 #ifdef _MSC_VER
 #include <intrin.h>
-- 
2.31.1


debug log:

solving 115ca02775 ...
found 115ca02775 in https://yhetil.org/guix/20210601220643.78439-2-monego@posteo.net/ ||
	https://yhetil.org/guix/20230407151717.1429006-2-monego@posteo.net/ ||
	https://yhetil.org/guix/20211031014028.82583-2-monego@posteo.net/ ||
	https://yhetil.org/guix/20211008025409.80602-2-monego@posteo.net/ ||
	https://yhetil.org/guix/20210630200919.912223-2-monego@posteo.net/

applying [1/1] https://yhetil.org/guix/20210601220643.78439-2-monego@posteo.net/
diff --git a/gnu/packages/patches/lightgbm-use-system-libraries.patch b/gnu/packages/patches/lightgbm-use-system-libraries.patch
new file mode 100644
index 0000000000..115ca02775

1:24: trailing whitespace.
 
1:30: trailing whitespace.
 
1:34: trailing whitespace.
 
1:51: trailing whitespace.
 
1:59: trailing whitespace.
 
Checking patch gnu/packages/patches/lightgbm-use-system-libraries.patch...
Applied patch gnu/packages/patches/lightgbm-use-system-libraries.patch cleanly.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.

skipping https://yhetil.org/guix/20230407151717.1429006-2-monego@posteo.net/ for 115ca02775
skipping https://yhetil.org/guix/20211031014028.82583-2-monego@posteo.net/ for 115ca02775
skipping https://yhetil.org/guix/20211008025409.80602-2-monego@posteo.net/ for 115ca02775
skipping https://yhetil.org/guix/20210630200919.912223-2-monego@posteo.net/ for 115ca02775
index at:
100644 115ca02775faa938b942eaae67e60fd00bf9c95d	gnu/packages/patches/lightgbm-use-system-libraries.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.