diff options
Diffstat (limited to 'recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch')
-rw-r--r-- | recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch b/recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch index 2b046cf..665377b 100644 --- a/recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch +++ b/recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch | |||
@@ -27,8 +27,8 @@ index 0790f02..2118de7 100644 | |||
27 | + | 27 | + |
28 | +# if this shell script is invoked through symlink, we get invalid paths. As getting the real path to this file is | 28 | +# if this shell script is invoked through symlink, we get invalid paths. As getting the real path to this file is |
29 | +# very painful using only /bin/sh, python is used instead. | 29 | +# very painful using only /bin/sh, python is used instead. |
30 | +PYTHON_STR="import os; print os.path.dirname(os.path.realpath(os.readlink(\"${CURRENT_DIR}/java\"))) if os.path.islink(\"${CURRENT_DIR}/java\") else \"${CURRENT_DIR}\"" | 30 | +PYTHON_STR="import os; print(os.path.dirname(os.path.realpath(os.readlink(\"${CURRENT_DIR}/java\"))) if os.path.islink(\"${CURRENT_DIR}/java\") else \"${CURRENT_DIR}\")" |
31 | +REAL_DIR=`python -c "${PYTHON_STR}"` | 31 | +REAL_DIR=`python3 -c "${PYTHON_STR}"` |
32 | + | 32 | + |
33 | +PARENT_DIR=`dirname ${REAL_DIR}` | 33 | +PARENT_DIR=`dirname ${REAL_DIR}` |
34 | + | 34 | + |