diff options
Diffstat (limited to 'recipes-core/cacao')
-rw-r--r-- | recipes-core/cacao/cacao-initial-native_0.98.bb | 4 | ||||
-rw-r--r-- | recipes-core/cacao/cacao/0001-java.in-Do-not-use-hardcode-paths.patch (renamed from recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch) | 33 | ||||
-rw-r--r-- | recipes-core/cacao/cacao/0002-cacao-use-system-s-boehm-garbage-collector.patch (renamed from recipes-core/cacao/cacao-2d6f6c14daf9/system-boehm-gc.patch) | 21 | ||||
-rw-r--r-- | recipes-core/cacao/cacao_git.bb (renamed from recipes-core/cacao/cacao_2d6f6c14daf9.bb) | 36 |
4 files changed, 55 insertions, 39 deletions
diff --git a/recipes-core/cacao/cacao-initial-native_0.98.bb b/recipes-core/cacao/cacao-initial-native_0.98.bb index 8125e88..8432456 100644 --- a/recipes-core/cacao/cacao-initial-native_0.98.bb +++ b/recipes-core/cacao/cacao-initial-native_0.98.bb | |||
@@ -6,7 +6,7 @@ SECTION = "interpreters" | |||
6 | 6 | ||
7 | PROVIDES = "virtual/java-initial-native" | 7 | PROVIDES = "virtual/java-initial-native" |
8 | 8 | ||
9 | inherit native autotools-brokensep | 9 | inherit autotools-brokensep native |
10 | 10 | ||
11 | DEPENDS = "zlib-native libtool-native fastjar-native classpath-initial-native jikes-initial-native" | 11 | DEPENDS = "zlib-native libtool-native fastjar-native classpath-initial-native jikes-initial-native" |
12 | 12 | ||
@@ -35,7 +35,7 @@ export JAVAC="jikes-initial" | |||
35 | # enforces the usage of fastjar | 35 | # enforces the usage of fastjar |
36 | export JAR="fastjar" | 36 | export JAR="fastjar" |
37 | 37 | ||
38 | do_configure_append() { | 38 | do_configure:append() { |
39 | # Fix the executable name in the wrapper script. | 39 | # Fix the executable name in the wrapper script. |
40 | sed -i -e "s|exec cacao \\$|exec cacao-initial \\$|" src/scripts/java.in | 40 | sed -i -e "s|exec cacao \\$|exec cacao-initial \\$|" src/scripts/java.in |
41 | } | 41 | } |
diff --git a/recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch b/recipes-core/cacao/cacao/0001-java.in-Do-not-use-hardcode-paths.patch index 665377b..521814e 100644 --- a/recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch +++ b/recipes-core/cacao/cacao/0001-java.in-Do-not-use-hardcode-paths.patch | |||
@@ -1,25 +1,31 @@ | |||
1 | java.in: Do not use hardcode paths | 1 | From 51a63cdac93caf69d1b6ace40f73f6147ba37de5 Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com> | ||
3 | Date: Thu, 20 Aug 2020 13:48:38 +0200 | ||
4 | Subject: [PATCH 1/2] java.in: Do not use hardcode paths | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
2 | 8 | ||
3 | Cacao uses hardcoded paths to various files, if these paths are not | 9 | Cacao uses hardcoded paths to various files, if these paths are not |
4 | provided. This causes issues when sharing sstate with otherwise | 10 | provided. This causes issues when sharing sstate with otherwise |
5 | identical workers, if build time paths are not identical. | 11 | identical workers, if build time paths are not identical. |
6 | 12 | ||
7 | Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com> | ||
8 | |||
9 | Upstream-Status: Inappropriate [Yocto-specific fixes] | 13 | Upstream-Status: Inappropriate [Yocto-specific fixes] |
10 | 14 | ||
15 | Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com> | ||
16 | Signed-off-by: Richard Leitner <richard.leitner@skidata.com> | ||
11 | --- | 17 | --- |
12 | cacao-1.6.1/src/scripts/java.in | 16 ++++++++++++++-- | 18 | src/scripts/java.in | 15 +++++++++++++-- |
13 | 1 file changed, 14 insertions(+), 2 deletions(-) | 19 | 1 file changed, 13 insertions(+), 2 deletions(-) |
14 | 20 | ||
15 | diff --git cacao-1.6.1/src/scripts/java.in cacao-1.6.1/src/scripts/java.in | 21 | diff --git a/src/scripts/java.in b/src/scripts/java.in |
16 | index 0790f02..2118de7 100644 | 22 | index 0790f0255..a4f16ecdc 100644 |
17 | --- cacao-1.6.1/src/scripts/java.in | 23 | --- a/src/scripts/java.in |
18 | +++ cacao-1.6.1/src/scripts/java.in | 24 | +++ b/src/scripts/java.in |
19 | @@ -22,5 +22,17 @@ | 25 | @@ -22,5 +22,16 @@ |
20 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 26 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
21 | ## 02110-1301, USA. | 27 | ## 02110-1301, USA. |
22 | 28 | ||
23 | -IFS="" | 29 | -IFS="" |
24 | -exec $(dirname ${0})/cacao ${1+"$@"} | 30 | -exec $(dirname ${0})/cacao ${1+"$@"} |
25 | +SH_DIR=`dirname "$0"` | 31 | +SH_DIR=`dirname "$0"` |
@@ -35,7 +41,6 @@ index 0790f02..2118de7 100644 | |||
35 | +export BOOTCLASSPATH="${PARENT_DIR}/share/cacao/vm.zip:${PARENT_DIR}/share/classpath/glibj.zip" | 41 | +export BOOTCLASSPATH="${PARENT_DIR}/share/cacao/vm.zip:${PARENT_DIR}/share/classpath/glibj.zip" |
36 | +LIBRARY_PATH="-Djava.library.path=${PARENT_DIR}/lib/classpath" | 42 | +LIBRARY_PATH="-Djava.library.path=${PARENT_DIR}/lib/classpath" |
37 | +exec ${REAL_DIR}/cacao ${LIBRARY_PATH} ${1+"$@"} | 43 | +exec ${REAL_DIR}/cacao ${LIBRARY_PATH} ${1+"$@"} |
38 | + | 44 | -- |
39 | -- | 45 | 2.28.0 |
40 | 2.7.4 | ||
41 | 46 | ||
diff --git a/recipes-core/cacao/cacao-2d6f6c14daf9/system-boehm-gc.patch b/recipes-core/cacao/cacao/0002-cacao-use-system-s-boehm-garbage-collector.patch index c30f5be..102e9a7 100644 --- a/recipes-core/cacao/cacao-2d6f6c14daf9/system-boehm-gc.patch +++ b/recipes-core/cacao/cacao/0002-cacao-use-system-s-boehm-garbage-collector.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | cacao: use system's boehm garbage collector | 1 | From 7833101c8c8938d58a32e355b9af1b56e4229a87 Mon Sep 17 00:00:00 2001 |
2 | From: Hugo Vasconcelos Saldanha <hugo.saldanha@aker.com.br> | ||
3 | Date: Thu, 20 Aug 2020 13:50:47 +0200 | ||
4 | Subject: [PATCH 2/2] cacao: use system's boehm garbage collector | ||
2 | 5 | ||
3 | This is a Gentoo's patch [1] to force the use of system's bdwgc. | 6 | This is a Gentoo's patch [1] to force the use of system's bdwgc. |
4 | 7 | ||
@@ -10,11 +13,17 @@ with the system's version. | |||
10 | Upstream-Status: Inappropriate [not author] | 13 | Upstream-Status: Inappropriate [not author] |
11 | 14 | ||
12 | Signed-off-by: Hugo Vasconcelos Saldanha <hugo.saldanha@aker.com.br> | 15 | Signed-off-by: Hugo Vasconcelos Saldanha <hugo.saldanha@aker.com.br> |
16 | Signed-off-by: Richard Leitner <richard.leitner@skidata.com> | ||
17 | --- | ||
18 | configure.ac | 8 ++------ | ||
19 | src/mm/Makefile.am | 9 ++++----- | ||
20 | 2 files changed, 6 insertions(+), 11 deletions(-) | ||
13 | 21 | ||
14 | diff --git a/configure.ac b/configure.ac | 22 | diff --git a/configure.ac b/configure.ac |
23 | index aceb2033b..db8a9770e 100644 | ||
15 | --- a/configure.ac | 24 | --- a/configure.ac |
16 | +++ b/configure.ac | 25 | +++ b/configure.ac |
17 | @@ -691,6 +691,8 @@ | 26 | @@ -738,6 +738,8 @@ AC_CHECK_ENABLE_GCC_PR40134 |
18 | 27 | ||
19 | AC_CHECK_ENABLE_PIC_ASM | 28 | AC_CHECK_ENABLE_PIC_ASM |
20 | 29 | ||
@@ -23,7 +32,7 @@ diff --git a/configure.ac b/configure.ac | |||
23 | dnl Define version numbers. | 32 | dnl Define version numbers. |
24 | AC_VERSION_DETAIL | 33 | AC_VERSION_DETAIL |
25 | AC_VERSION_CONFIG | 34 | AC_VERSION_CONFIG |
26 | @@ -793,12 +795,6 @@ | 35 | @@ -855,12 +857,6 @@ AC_CONFIG_FILES([Makefile] |
27 | ) | 36 | ) |
28 | 37 | ||
29 | 38 | ||
@@ -37,9 +46,10 @@ diff --git a/configure.ac b/configure.ac | |||
37 | 46 | ||
38 | 47 | ||
39 | diff --git a/src/mm/Makefile.am b/src/mm/Makefile.am | 48 | diff --git a/src/mm/Makefile.am b/src/mm/Makefile.am |
49 | index 9d0945a29..cbd7dc963 100644 | ||
40 | --- a/src/mm/Makefile.am | 50 | --- a/src/mm/Makefile.am |
41 | +++ b/src/mm/Makefile.am | 51 | +++ b/src/mm/Makefile.am |
42 | @@ -35,14 +35,13 @@ | 52 | @@ -35,14 +35,13 @@ GC_FILE = \ |
43 | endif | 53 | endif |
44 | 54 | ||
45 | if ENABLE_GC_BOEHM | 55 | if ENABLE_GC_BOEHM |
@@ -58,3 +68,6 @@ diff --git a/src/mm/Makefile.am b/src/mm/Makefile.am | |||
58 | endif | 68 | endif |
59 | 69 | ||
60 | if ENABLE_GC_CACAO | 70 | if ENABLE_GC_CACAO |
71 | -- | ||
72 | 2.28.0 | ||
73 | |||
diff --git a/recipes-core/cacao/cacao_2d6f6c14daf9.bb b/recipes-core/cacao/cacao_git.bb index 0e50b68..fef7f34 100644 --- a/recipes-core/cacao/cacao_2d6f6c14daf9.bb +++ b/recipes-core/cacao/cacao_git.bb | |||
@@ -4,27 +4,25 @@ LICENSE = "GPL-2.0" | |||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" |
5 | SECTION = "interpreters" | 5 | SECTION = "interpreters" |
6 | 6 | ||
7 | DEPENDS_class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-initial-native classpath-native bdwgc-native virtual/java-initial-native" | 7 | DEPENDS:class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-initial-native classpath-native bdwgc-native virtual/java-initial-native" |
8 | PROVIDES_class-native = "virtual/java-native" | 8 | PROVIDES:class-native = "virtual/java-native" |
9 | 9 | ||
10 | DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc" | 10 | DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc" |
11 | RPROVIDES_${PN} = "java2-runtime" | 11 | RPROVIDES:${PN} = "java2-runtime" |
12 | 12 | ||
13 | SRC_URI = "https://bitbucket.org/cacaovm/cacao-staging/get/${PV}.zip \ | 13 | SRCREV = "6c4694f9bd175386a8c451531e9a5ad97aa23b6f" |
14 | file://system-boehm-gc.patch \ | 14 | SRC_URI = "git://bitbucket.org/cacaovm/cacao.git;protocol=https;branch=master \ |
15 | file://cacao-1.6.1-do-not-rely-on-absolute-paths.patch \ | 15 | file://0001-java.in-Do-not-use-hardcode-paths.patch \ |
16 | file://0002-cacao-use-system-s-boehm-garbage-collector.patch \ | ||
16 | " | 17 | " |
17 | S = "${WORKDIR}/cacaovm-cacao-staging-${PV}" | 18 | S = "${WORKDIR}/git" |
18 | |||
19 | SRC_URI[md5sum] = "5157d0bb9eb1332f7a6b6186eaac01aa" | ||
20 | SRC_URI[sha256sum] = "34b51d660d69c2a83225fd75eab5e1fac002fb5974cb4a74b7478baf923a76cd" | ||
21 | 19 | ||
22 | inherit java autotools-brokensep update-alternatives pkgconfig features_check | 20 | inherit java autotools-brokensep update-alternatives pkgconfig features_check |
23 | 21 | ||
24 | REQUIRED_DISTRO_FEATURES = "x11" | 22 | REQUIRED_DISTRO_FEATURES = "x11" |
25 | REQUIRED_DISTRO_FEATURES_class-native := "" | 23 | REQUIRED_DISTRO_FEATURES:class-native := "" |
26 | 24 | ||
27 | EXTRA_OECONF_class-native = "\ | 25 | EXTRA_OECONF:class-native = "\ |
28 | --enable-debug \ | 26 | --enable-debug \ |
29 | --with-vm-zip=${datadir}/cacao/vm.zip \ | 27 | --with-vm-zip=${datadir}/cacao/vm.zip \ |
30 | --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \ | 28 | --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \ |
@@ -35,7 +33,7 @@ EXTRA_OECONF_class-native = "\ | |||
35 | --disable-libjvm \ | 33 | --disable-libjvm \ |
36 | " | 34 | " |
37 | 35 | ||
38 | CACHED_CONFIGUREVARS_class-native += "ac_cv_prog_JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial" | 36 | CACHED_CONFIGUREVARS:class-native += "ac_cv_prog_JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial" |
39 | 37 | ||
40 | EXTRA_OECONF = "\ | 38 | EXTRA_OECONF = "\ |
41 | --with-vm-zip=${datadir}/cacao/vm.zip \ | 39 | --with-vm-zip=${datadir}/cacao/vm.zip \ |
@@ -48,21 +46,21 @@ EXTRA_OECONF = "\ | |||
48 | --disable-test-dependency-checks \ | 46 | --disable-test-dependency-checks \ |
49 | " | 47 | " |
50 | 48 | ||
51 | do_configure_prepend () { | 49 | do_configure:prepend () { |
52 | # upgrade m4 macros in source tree | 50 | # upgrade m4 macros in source tree |
53 | libtoolize --force --copy --install | 51 | libtoolize --force --copy --install |
54 | rm -f src/mm/boehm-gc/ltmain.sh | 52 | rm -f src/mm/boehm-gc/ltmain.sh |
55 | mkdir -p src/mm/boehm-gc/m4 | 53 | mkdir -p src/mm/boehm-gc/m4 |
56 | } | 54 | } |
57 | 55 | ||
58 | do_install_append_class-target() { | 56 | do_install:append:class-target() { |
59 | rm ${D}/${bindir}/java | 57 | rm ${D}/${bindir}/java |
60 | } | 58 | } |
61 | 59 | ||
62 | FILES_${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}" | 60 | FILES:${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}" |
63 | FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*" | 61 | FILES:${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*" |
64 | FILES_${PN}-doc += "${datadir}/gc" | 62 | FILES:${PN}-doc += "${datadir}/gc" |
65 | 63 | ||
66 | BBCLASSEXTEND = "native" | 64 | BBCLASSEXTEND = "native" |
67 | 65 | ||
68 | COMPATIBLE_MACHINE_aarch64 = "-" | 66 | COMPATIBLE_MACHINE:aarch64 = "-" |