Skip to content

Commit

Permalink
kde-apps/cantor: Fix bashism
Browse files Browse the repository at this point in the history
Gentoo-bug: 596940
Thanks-to: Michael Palimaka (kensington)

Package-Manager: portage-2.3.3
  • Loading branch information
a17r committed Feb 11, 2017
1 parent 91df9cf commit 9be309d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kde-apps/cantor/cantor-16.12.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ RDEPEND="${RDEPEND}"

RESTRICT+=" test"

PATCHES=( "${FILESDIR}"/${P}-bashism.patch )

pkg_pretend() {
kde5_pkg_pretend

Expand Down
13 changes: 13 additions & 0 deletions kde-apps/cantor/files/cantor-16.12.2-bashism.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/cmake/FindR.cmake b/cmake/FindR.cmake
index 6303417..6494884 100644
--- a/cmake/FindR.cmake
+++ b/cmake/FindR.cmake
@@ -31,7 +31,7 @@ IF(R_EXECUTABLE)
OUTPUT_VARIABLE R_INCLUDE_DIR)
ELSE(WIN32)
EXECUTE_PROCESS(
- COMMAND ${R_EXECUTABLE} CMD sh -c "echo -n $R_INCLUDE_DIR"
+ COMMAND ${R_EXECUTABLE} CMD sh -c "printf $R_INCLUDE_DIR"
OUTPUT_VARIABLE R_INCLUDE_DIR)
ENDIF(WIN32)
ENDIF(NOT R_INCLUDE_DIR)

0 comments on commit 9be309d

Please sign in to comment.