summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/atmi/0002-Remove-direct-reference-to-usr-bin-rysnc-for-rsync-cmd-5.2.1.patch
blob: 32820267a5174c6ecb4bda64ee199a8b38609038 (plain) (blame)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
From f3d2e44472e2f713d6a3fe7a9cfb0c6007632ad9 Mon Sep 17 00:00:00 2001
From: sreenivasa murthy kolam <sreenivasamurthy.kolam@amd.com>
Date: Mon, 15 Aug 2022 22:28:37 +0000
Subject: [PATCH] Remove direct reference to /usr/bin/rysnc for rsync command

---
 src/CMakeLists.txt                     | 4 ++--
 src/device_runtime/CMakeLists.txt      | 2 +-
 src/runtime/core/CMakeLists.txt        | 4 ++--
 src/runtime/interop/hsa/CMakeLists.txt | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bbd3196..51a8119 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -72,7 +72,7 @@ endif()
 # make examples available in local build
 add_custom_command(
   OUTPUT examples
-  COMMAND /usr/bin/rsync -rl ${CMAKE_CURRENT_SOURCE_DIR}/../examples .
+  COMMAND rsync -rl ${CMAKE_CURRENT_SOURCE_DIR}/../examples .
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../examples/*
   )
 add_custom_target(example ALL DEPENDS examples)
@@ -80,7 +80,7 @@ add_custom_target(example ALL DEPENDS examples)
 # make bin available in local build
 add_custom_command(
   OUTPUT bin
-  COMMAND /usr/bin/rsync -rl ${CMAKE_CURRENT_SOURCE_DIR}/../bin .
+  COMMAND rsync -rl ${CMAKE_CURRENT_SOURCE_DIR}/../bin .
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../bin/*
   )
 add_custom_target(script ALL DEPENDS bin)
diff --git a/src/device_runtime/CMakeLists.txt b/src/device_runtime/CMakeLists.txt
index 6688af2..6901e01 100644
--- a/src/device_runtime/CMakeLists.txt
+++ b/src/device_runtime/CMakeLists.txt
@@ -108,7 +108,7 @@ set (OUTPUT_INC_DIRECTORY ${ATMI_RUNTIME_PATH}/include)
 execute_process(COMMAND "/bin/mkdir" "-p" "${OUTPUT_INC_DIRECTORY}")
 add_custom_command(
   OUTPUT ${OUTPUT_INC_DIRECTORY}/atmi_kl.h
-  COMMAND /usr/bin/rsync ${CMAKE_CURRENT_SOURCE_DIR}/../../include/atmi_kl.h ${OUTPUT_INC_DIRECTORY}/atmi_kl.h
+  COMMAND rsync ${CMAKE_CURRENT_SOURCE_DIR}/../../include/atmi_kl.h ${OUTPUT_INC_DIRECTORY}/atmi_kl.h
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../../include/*.h
   )
 add_custom_target(device_header ALL DEPENDS ${OUTPUT_INC_DIRECTORY}/atmi_kl.h)
diff --git a/src/runtime/core/CMakeLists.txt b/src/runtime/core/CMakeLists.txt
index 88b3a47..000153a 100644
--- a/src/runtime/core/CMakeLists.txt
+++ b/src/runtime/core/CMakeLists.txt
@@ -128,13 +128,13 @@ execute_process(COMMAND "/bin/mkdir" "-p" "${OUTPUT_INC_DIRECTORY}")
 
 add_custom_command(
   OUTPUT ${OUTPUT_INC_DIRECTORY}/atmi.h
-  COMMAND /usr/bin/rsync ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/atmi.h ${OUTPUT_INC_DIRECTORY}/atmi.h
+  COMMAND rsync ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/atmi.h ${OUTPUT_INC_DIRECTORY}/atmi.h
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/*.h
   )
 
 add_custom_command(
   OUTPUT ${OUTPUT_INC_DIRECTORY}/atmi_runtime.h
-  COMMAND /usr/bin/rsync ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/atmi_runtime.h ${OUTPUT_INC_DIRECTORY}/atmi_runtime.h
+  COMMAND rsync ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/atmi_runtime.h ${OUTPUT_INC_DIRECTORY}/atmi_runtime.h
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/*.h
   )
 
diff --git a/src/runtime/interop/hsa/CMakeLists.txt b/src/runtime/interop/hsa/CMakeLists.txt
index af1012d..c58b716 100644
--- a/src/runtime/interop/hsa/CMakeLists.txt
+++ b/src/runtime/interop/hsa/CMakeLists.txt
@@ -22,7 +22,7 @@ execute_process(COMMAND "/bin/mkdir" "-p" "${OUTPUT_INC_DIRECTORY}")
 
 add_custom_command(
   OUTPUT ${OUTPUT_INC_DIRECTORY}/atmi_interop_hsa.h
-  COMMAND /usr/bin/rsync ${CMAKE_CURRENT_SOURCE_DIR}/../../../../include/atmi_interop_hsa.h ${OUTPUT_INC_DIRECTORY}/atmi_interop_hsa.h
+  COMMAND rsync ${CMAKE_CURRENT_SOURCE_DIR}/../../../../include/atmi_interop_hsa.h ${OUTPUT_INC_DIRECTORY}/atmi_interop_hsa.h
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../../../../include/*.h
   )
 
-- 
2.18.4