aboutsummaryrefslogtreecommitdiffstats
path: root/main/conky/posix-awk.patch
blob: 722eaaa526e61a531edba1b4b02c0adc7a60d263 (plain)
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
From f9c14e3b78a9a4659eac124b79076ff91ffeb90f Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 23 Jul 2015 13:15:58 +0200
Subject: [PATCH 1/3] Use posix awk instead of GNU awk

---
 cmake/Conky.cmake               | 10 +++++-----
 cmake/ConkyCPackSetup.cmake     |  2 +-
 cmake/ConkyPlatformChecks.cmake |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/cmake/Conky.cmake b/cmake/Conky.cmake
index b9605de..d9fd150 100644
--- a/cmake/Conky.cmake
+++ b/cmake/Conky.cmake
@@ -71,10 +71,10 @@ set(VERSION_MAJOR "1")
 set(VERSION_MINOR "10")
 set(VERSION_PATCH "1")
 
-find_program(APP_GAWK gawk)
-if(NOT APP_GAWK)
-	message(FATAL_ERROR "Unable to find program 'gawk'")
-endif(NOT APP_GAWK)
+find_program(APP_AWK awk)
+if(NOT APP_AWK)
+	message(FATAL_ERROR "Unable to find program 'awk'")
+endif(NOT APP_AWK)
 
 find_program(APP_WC wc)
 if(NOT APP_WC)
@@ -99,7 +99,7 @@ if(NOT RELEASE)
 	mark_as_advanced(APP_GIT)
 endif(NOT RELEASE)
 
-mark_as_advanced(APP_GAWK APP_WC APP_DATE APP_UNAME)
+mark_as_advanced(APP_AWK APP_WC APP_DATE APP_UNAME)
 
 #BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
 #BUILD_ARCH="$(uname -sr) ($(uname -m))"
diff --git a/cmake/ConkyCPackSetup.cmake b/cmake/ConkyCPackSetup.cmake
index a568922..c1046ef 100644
--- a/cmake/ConkyCPackSetup.cmake
+++ b/cmake/ConkyCPackSetup.cmake
@@ -44,7 +44,7 @@ endif(CPACK_GENERATOR MATCHES "NSIS")
 # Source package setup. Compile with "make package_source".
 set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION}-src")
 set(CPACK_SOURCE_GENERATOR "TBZ2")
-execute_process(COMMAND ${APP_UNAME} COMMAND ${APP_GAWK} "{print $1}"
+execute_process(COMMAND ${APP_UNAME} COMMAND ${APP_AWK} "{print $1}"
 	RESULT_VARIABLE RETVAL OUTPUT_VARIABLE CPU_ARCH
 	OUTPUT_STRIP_TRAILING_WHITESPACE)
 
diff --git a/cmake/ConkyPlatformChecks.cmake b/cmake/ConkyPlatformChecks.cmake
index ca520ed..a2ebafc 100644
--- a/cmake/ConkyPlatformChecks.cmake
+++ b/cmake/ConkyPlatformChecks.cmake
@@ -422,6 +422,6 @@ if(DEBUG)
 	execute_process(COMMAND
 		${APP_GIT} --git-dir=${CMAKE_CURRENT_SOURCE_DIR}/.git log
 		--since=${VERSION_MAJOR}-${VERSION_MINOR}-01 --pretty=oneline COMMAND
-		${APP_WC} -l COMMAND ${APP_GAWK} "{print $1}" RESULT_VARIABLE RETVAL
+		${APP_WC} -l COMMAND ${APP_AWK} "{print $1}" RESULT_VARIABLE RETVAL
 		OUTPUT_VARIABLE COMMIT_COUNT OUTPUT_STRIP_TRAILING_WHITESPACE)
 endif(DEBUG)
-- 
2.4.6