all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob eb1cc76db69f8f967e8205ee4436f830ba9c51e6 2505 bytes (raw)
name: gnu/packages/patches/tensorflow-lite-disable-local-cmake-3rdparty-components.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
59
60
61
62
 
diff --git a/tensorflow/lite/CMakeLists.txt b/tensorflow/lite/CMakeLists.txt
index 0476170e075..90abea00e8c 100644
--- a/tensorflow/lite/CMakeLists.txt
+++ b/tensorflow/lite/CMakeLists.txt
@@ -564,7 +564,7 @@ set(_ALL_TFLITE_HDRS ${_ALL_TFLITE_SRCS})
 list(FILTER _ALL_TFLITE_HDRS INCLUDE REGEX ".*\\.h$")
 target_include_directories(tensorflow-lite
   PUBLIC $<BUILD_INTERFACE:${TENSORFLOW_SOURCE_DIR}> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
-  ${CMAKE_BINARY_DIR}/gemmlowp
+  ${gemmlowp_ROOT}/include/gemmlowp
 )
 target_link_libraries(tensorflow-lite
   PUBLIC
diff --git a/tensorflow/lite/kernels/CMakeLists.txt b/tensorflow/lite/kernels/CMakeLists.txt
index 57ed10d7e64..b45b5d1df82 100644
--- a/tensorflow/lite/kernels/CMakeLists.txt
+++ b/tensorflow/lite/kernels/CMakeLists.txt
@@ -25,11 +25,13 @@ set(SCHEMA_GENERATED_PATH ${SCHEMA_GENERATED_ROOT}/tensorflow/lite/schema/mutabl
 set(SCHEMA_GENERATED_FILE ${SCHEMA_GENERATED_PATH}/schema_generated.h)
 
 # Use the util function in flatbuffer to generate the schema header.
+list(APPEND CMAKE_MODULE_PATH "${flatbuffers_DIR}")
 include(BuildFlatBuffers)
 
 # For cross-compilation purposes a natively compiled 'flatc' compiler is required
 if(${CMAKE_CROSSCOMPILING})
   set(FLATC_PATHS
+      ${flatbuffers_ROOT}/bin
       ${TFLITE_HOST_TOOLS_DIR}
       ${TFLITE_HOST_TOOLS_DIR}/bin
       ${TFLITE_HOST_TOOLS_DIR}/flatbuffers-flatc/bin
@@ -43,7 +45,7 @@ if(${CMAKE_CROSSCOMPILING})
     set(FLATBUFFERS_FLATC_EXECUTABLE ${FLATC_BIN})
   endif()
 else()
-  set(FLATBUFFERS_FLATC_EXECUTABLE ${CMAKE_BINARY_DIR}/flatbuffers-flatc/bin/flatc)
+  set(FLATBUFFERS_FLATC_EXECUTABLE ${flatbuffers_ROOT}/bin/flatc)
 endif()
 
 set(FLATBUFFERS_FLATC_SCHEMA_EXTRA_ARGS
@@ -55,7 +57,7 @@ build_flatbuffers(
   "${SCHEMA_FILE}"
   ""
   mutable_schema_file
-  flatbuffers-flatc
+  ${FLATBUFFERS_FLATC_EXECUTABLE}
   "${SCHEMA_GENERATED_PATH}"
   ""
   ""
diff --git a/tensorflow/lite/tools/cmake/modules/Findgemmlowp.cmake b/tensorflow/lite/tools/cmake/modules/Findgemmlowp.cmake
index 70331ad0a69..a9bd8a0f3bd 100644
--- a/tensorflow/lite/tools/cmake/modules/Findgemmlowp.cmake
+++ b/tensorflow/lite/tools/cmake/modules/Findgemmlowp.cmake
@@ -18,7 +18,7 @@
 include(gemmlowp)
 if(gemmlowp_POPULATED)
   set(GEMMLOWP_FOUND TRUE)
-  get_target_property(GEMMLOWP_INCLUDE_DIRS gemmlowp INTERFACE_DIRECTORIES)
+  #get_target_property(GEMMLOWP_INCLUDE_DIRS gemmlowp INTERFACE_DIRECTORIES)
   set(GEMMLOWP_LIBRARIES
     gemmlowp
     gemmlowp_fixedpoint

debug log:

solving eb1cc76db6 ...
found eb1cc76db6 in https://yhetil.org/guix/cdcb2b14ff81a345f8afc1a09d6d0afd5a4b8eb5.1694330587.git.atai@atai.org/

applying [1/1] https://yhetil.org/guix/cdcb2b14ff81a345f8afc1a09d6d0afd5a4b8eb5.1694330587.git.atai@atai.org/
diff --git a/gnu/packages/patches/tensorflow-lite-disable-local-cmake-3rdparty-components.patch b/gnu/packages/patches/tensorflow-lite-disable-local-cmake-3rdparty-components.patch
new file mode 100644
index 0000000000..eb1cc76db6

1:26: trailing whitespace.
 
1:30: trailing whitespace.
 
1:45: trailing whitespace.
 
Checking patch gnu/packages/patches/tensorflow-lite-disable-local-cmake-3rdparty-components.patch...
Applied patch gnu/packages/patches/tensorflow-lite-disable-local-cmake-3rdparty-components.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 eb1cc76db69f8f967e8205ee4436f830ba9c51e6	gnu/packages/patches/tensorflow-lite-disable-local-cmake-3rdparty-components.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.