diff options
Diffstat (limited to 'recipes-core/cacao/files')
-rw-r--r-- | recipes-core/cacao/files/cacao-0.9.8-do-not-rely-on-absolute-paths.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-core/cacao/files/cacao-0.9.8-do-not-rely-on-absolute-paths.patch b/recipes-core/cacao/files/cacao-0.9.8-do-not-rely-on-absolute-paths.patch new file mode 100644 index 0000000..93bcc3e --- /dev/null +++ b/recipes-core/cacao/files/cacao-0.9.8-do-not-rely-on-absolute-paths.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | java.in: Do not use hardcode paths | ||
2 | |||
3 | Cacao uses hardcoded paths to various files, if these paths are not | ||
4 | provided. This causes issues when sharing sstate with otherwise | ||
5 | identical workers, if build time paths are not identical. | ||
6 | |||
7 | Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com> | ||
8 | |||
9 | Upstream-Status: Inappropriate [Yocto-specific fixes] | ||
10 | |||
11 | --- | ||
12 | cacao-0.98/src/scripts/java.in | 8 +++++++- | ||
13 | 1 file changed, 7 insertions(+), 1 deletion(-) | ||
14 | |||
15 | diff --git cacao-0.98/src/scripts/java.in cacao-0.98/src/scripts/java.in | ||
16 | index 8a402e4..1738897 100644 | ||
17 | --- cacao-0.98/src/scripts/java.in | ||
18 | +++ cacao-0.98/src/scripts/java.in | ||
19 | @@ -32,4 +32,10 @@ | ||
20 | ## | ||
21 | ## $Id: java.in 5659 2006-10-04 10:37:09Z twisti $ | ||
22 | |||
23 | -exec cacao ${1+"$@"} | ||
24 | +SH_DIR=`dirname "$0"` | ||
25 | +CURRENT_DIR=`cd "${SH_DIR}" && pwd` | ||
26 | +PARENT_DIR=`dirname ${CURRENT_DIR}` | ||
27 | +export BOOTCLASSPATH="${PARENT_DIR}/share/cacao-initial/vm.zip:${PARENT_DIR}/share/classpath-initial/glibj.zip" | ||
28 | + | ||
29 | +LIBRARY_PATH="-Djava.library.path=${PARENT_DIR}/lib/classpath-initial" | ||
30 | +exec cacao ${LIBRARY_PATH} ${1+"$@"} | ||
31 | + | ||
32 | -- | ||
33 | 2.7.4 | ||