[oe-commits] org.oe.dev disapproval of revision 'ba3fd04d7fb91b031d23b8b8abdfd77186ece799'
thebohemian commit
oe at amethyst.openembedded.net
Thu Jun 26 23:57:32 UTC 2008
disapproval of revision 'ba3fd04d7fb91b031d23b8b8abdfd77186ece799'
Author: thebohemian at openembedded.org
Branch: org.openembedded.dev
Revision: 712c277589bb760f0e4a027003fe203e9db758d7
ViewMTN: http://monotone.openembedded.org/revision/info/712c277589bb760f0e4a027003fe203e9db758d7
Files:
1
packages/cacao/cacao_0.99.1.bb
packages/cacao/cacaoh-native_0.99.1.bb
packages/cacao/files/cacao-0.98+hg20080519-build-java-runtime-library-classes.patch
packages/cacao/files/cacao-0.99-build-java-runtime-library-classes.patch
packages/cacao/files/cacao-0.98+svn-libdir.diff
packages/cacao/files/cacao-hg20080519-classpath_var.patch
packages/cacao/files/cacao-hg20080519-libdir.patch
packages/cacao/cacao.inc
packages/cacao/cacao_0.98+hg20071001.bb
packages/cacao/cacao_0.98+hg20080519.bb
packages/cacao/cacaoh-native.inc
Diffs:
#
# mt diff -rba3fd04d7fb91b031d23b8b8abdfd77186ece799 -r712c277589bb760f0e4a027003fe203e9db758d7
#
#
#
# delete "packages/cacao/cacao_0.99.1.bb"
#
# delete "packages/cacao/cacaoh-native_0.99.1.bb"
#
# delete "packages/cacao/files/cacao-0.98+hg20080519-build-java-runtime-library-classes.patch"
#
# delete "packages/cacao/files/cacao-0.99-build-java-runtime-library-classes.patch"
#
# add_file "packages/cacao/files/cacao-0.98+svn-libdir.diff"
# content [b97c32544ee97fef51a7222eb879ce6e68e3d1d4]
#
# add_file "packages/cacao/files/cacao-hg20080519-classpath_var.patch"
# content [62477b682d6cb20be67ab015423d22c6412ac5f8]
#
# add_file "packages/cacao/files/cacao-hg20080519-libdir.patch"
# content [7b12857a339294deb7df47da33c5e9db8290107a]
#
# patch "packages/cacao/cacao.inc"
# from [44ce965971f392ff3be288e7b9b3f44fd01a5c69]
# to [d1fb162242cfc59d0aecad7027643cdec90b4b4d]
#
# patch "packages/cacao/cacao_0.98+hg20071001.bb"
# from [9bdf5633757ed3e83764bf8121e01f802736554c]
# to [ac5e51b47c7d3446078d237ac95abd0fa9c668cc]
#
# patch "packages/cacao/cacao_0.98+hg20080519.bb"
# from [fa6b0f11ad259a1b9380f5c77debc6c109d15a06]
# to [a332104661010fe20cb8578a21fb16b673c5c620]
#
# patch "packages/cacao/cacaoh-native.inc"
# from [c9a5b15f7ac1b2a3f993d18c8e902c40052a0d20]
# to [21cb933b74df6d2ac41c9593d5df8f193f74b51a]
#
============================================================
--- packages/cacao/files/cacao-0.98+svn-libdir.diff b97c32544ee97fef51a7222eb879ce6e68e3d1d4
+++ packages/cacao/files/cacao-0.98+svn-libdir.diff b97c32544ee97fef51a7222eb879ce6e68e3d1d4
@@ -0,0 +1,30 @@
+Index: cacao-trunk/src/vm/properties.c
+===================================================================
+--- cacao-trunk.orig/src/vm/properties.c 2007-08-31 13:20:41.000000000 +0200
++++ cacao-trunk/src/vm/properties.c 2007-09-04 14:54:19.000000000 +0200
+@@ -210,15 +210,22 @@
+
+ # if defined(WITH_CLASSPATH_GNU)
+
+- boot_library_path = CLASSPATH_LIBDIR"/classpath";
++ boot_library_path = CLASSPATH_LIBDIR"/classpath:OE_LIBDIR_JNI";
+
+ # elif defined(WITH_CLASSPATH_SUN)
+
+- boot_library_path = CLASSPATH_LIBDIR;
++ boot_library_path = CLASSPATH_LIBDIR":OE_LIBDIR_JNI";
+
+ # elif defined(WITH_CLASSPATH_CLDC1_1)
+
+- /* No boot_library_path required. */
++ /* No boot_library_path required.
++ Well, don't be that strict on Debian-like
++ environments. Setting this to /usr/lib/jni
++ makes it unneccessary to fumble with
++ LD_LIBRARY_PATH to get things like MIDPath
++ running.
++ */
++ boot_library_path = "OE_LIBDIR_JNI";
+
+ # else
+ # error unknown classpath configuration
============================================================
--- packages/cacao/files/cacao-hg20080519-classpath_var.patch 62477b682d6cb20be67ab015423d22c6412ac5f8
+++ packages/cacao/files/cacao-hg20080519-classpath_var.patch 62477b682d6cb20be67ab015423d22c6412ac5f8
@@ -0,0 +1,67 @@
+Index: cacao/configure.ac
+===================================================================
+--- cacao.orig/configure.ac 2008-05-21 14:16:33.000000000 +0800
++++ cacao/configure.ac 2008-05-21 15:57:42.000000000 +0800
+@@ -772,6 +772,7 @@
+
+ AC_CHECK_WITH_JAVA_RUNTIME_LIBRARY_PREFIX
+ AC_CHECK_WITH_JAVA_RUNTIME_LIBRARY_CLASSES
++AC_CHECK_WITH_TARGET_JAVA_RUNTIME_LIBRARY_CLASSES
+
+ if test x"${ENABLE_JRE_LAYOUT}" = "xno"; then
+ AC_CHECK_WITH_JAVA_RUNTIME_LIBRARY_LIBDIR
+Index: cacao/m4/java-runtime-library.m4
+===================================================================
+--- cacao.orig/m4/java-runtime-library.m4 2008-05-21 14:16:34.000000000 +0800
++++ cacao/m4/java-runtime-library.m4 2008-05-21 16:18:23.000000000 +0800
+@@ -106,6 +106,29 @@
+ ])
+
+
++dnl where are Java runtime library classes installed on the target
++
++AC_DEFUN([AC_CHECK_WITH_TARGET_JAVA_RUNTIME_LIBRARY_CLASSES],[
++AC_MSG_CHECKING(where Java runtime library classes are installed on the target)
++AC_ARG_WITH([target-java-runtime-library-classes],
++ [AS_HELP_STRING(--with-target-java-runtime-library-classes=<path>,path to Java runtime library classes (includes the name of the file and may be flat) [[default=(gnuclasspath:${JAVA_RUNTIME_LIBRARY_PREFIX}/share/classpath/glibj.zip,openjdk:${JAVA_RUNTIME_LIBRARY_PREFIX}/control/build/${OS_DIR}-${JAVA_ARCH}/classes,*:${JAVA_RUNTIME_LIBRARY_PREFIX})]])],
++ [TARGET_JAVA_RUNTIME_LIBRARY_CLASSES=${withval}],
++ [case "${WITH_JAVA_RUNTIME_LIBRARY}" in
++ gnuclasspath)
++ TARGET_JAVA_RUNTIME_LIBRARY_CLASSES=${JAVA_RUNTIME_LIBRARY_PREFIX}/share/classpath/glibj.zip
++ ;;
++ openjdk)
++ TARGET_JAVA_RUNTIME_LIBRARY_CLASSES=${JAVA_RUNTIME_LIBRARY_PREFIX}/control/build/${OS_DIR}-${JAVA_ARCH}/classes
++ ;;
++ *)
++ TARGET_JAVA_RUNTIME_LIBRARY_CLASSES=${JAVA_RUNTIME_LIBRARY_PREFIX}
++ ;;
++ esac])
++AC_MSG_RESULT(${TARGET_JAVA_RUNTIME_LIBRARY_CLASSES})
++AC_DEFINE_UNQUOTED([TARGET_JAVA_RUNTIME_LIBRARY_CLASSES], "${TARGET_JAVA_RUNTIME_LIBRARY_CLASSES}", [Java runtime library classes on the target])
++AC_SUBST(TARGET_JAVA_RUNTIME_LIBRARY_CLASSES)
++])
++
+ dnl where are Java runtime library native libraries installed
+
+ AC_DEFUN([AC_CHECK_WITH_JAVA_RUNTIME_LIBRARY_LIBDIR],[
+Index: cacao/src/vm/properties.c
+===================================================================
+--- cacao.orig/src/vm/properties.c 2008-05-21 14:16:34.000000000 +0800
++++ cacao/src/vm/properties.c 2008-05-21 16:16:24.000000000 +0800
+@@ -295,14 +295,14 @@
+ len =
+ strlen(CACAO_VM_ZIP) +
+ strlen(":") +
+- strlen(JAVA_RUNTIME_LIBRARY_CLASSES) +
++ strlen(TARGET_JAVA_RUNTIME_LIBRARY_CLASSES) +
+ strlen("0");
+
+ boot_class_path = MNEW(char, len);
+
+ strcpy(boot_class_path, CACAO_VM_ZIP);
+ strcat(boot_class_path, ":");
+- strcat(boot_class_path, JAVA_RUNTIME_LIBRARY_CLASSES);
++ strcat(boot_class_path, TARGET_JAVA_RUNTIME_LIBRARY_CLASSES);
+
+ # elif defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
+
============================================================
--- packages/cacao/files/cacao-hg20080519-libdir.patch 7b12857a339294deb7df47da33c5e9db8290107a
+++ packages/cacao/files/cacao-hg20080519-libdir.patch 7b12857a339294deb7df47da33c5e9db8290107a
@@ -0,0 +1,30 @@
+Index: cacao/src/vm/properties.c
+===================================================================
+--- cacao.orig/src/vm/properties.c 2008-05-21 15:26:21.000000000 +0800
++++ cacao/src/vm/properties.c 2008-05-21 15:28:59.000000000 +0800
+@@ -211,15 +211,22 @@
+
+ # if defined(WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH)
+
+- boot_library_path = JAVA_RUNTIME_LIBRARY_LIBDIR"/classpath";
++ boot_library_path = JAVA_RUNTIME_LIBRARY_LIBDIR"/classpath:OE_LIBDIR_JNI";
+
+ # elif defined(WITH_JAVA_RUNTIME_LIBRARY_OPENJDK)
+
+- boot_library_path = JAVA_RUNTIME_LIBRARY_LIBDIR;
++ boot_library_path = JAVA_RUNTIME_LIBRARY_LIBDIR":OE_LIBDIR_JNI";
+
+ # elif defined(WITH_JAVA_RUNTIME_LIBRARY_CLDC1_1)
+
+- /* No boot_library_path required. */
++ /* No boot_library_path required.
++ Well, don't be that strict on Debian-like
++ environments. Setting this to /usr/lib/jni
++ makes it unneccessary to fumble with
++ LD_LIBRARY_PATH to get things like MIDPath
++ running.
++ */
++ boot_library_path = "OE_LIBDIR_JNI";
+
+ # else
+ # error unknown classpath configuration
============================================================
--- packages/cacao/cacao.inc 44ce965971f392ff3be288e7b9b3f44fd01a5c69
+++ packages/cacao/cacao.inc d1fb162242cfc59d0aecad7027643cdec90b4b4d
@@ -15,33 +15,17 @@ inherit java autotools update-alternativ
inherit java autotools update-alternatives
-# Old and new options do not interfere.
EXTRA_OECONF = "\
${@['','--enable-softfloat'][bb.data.getVar('TARGET_FPU',d,1) == 'soft']} \
--enable-debug \
- --with-vm-zip=${datadir}/cacao/vm.zip \
--with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-${PV} \
- ${OLD_CACAO_OECONF} \
- ${NEW_CACAO_OECONF} \
- "
-
-# Options needed for Cacao < 0.99 (including hg snapshots)
-OLD_CACAO_OECONF = "\
--with-classpath-includedir=${STAGING_INCDIR}/classpath \
--with-classpath-classes=${STAGING_DATADIR}/classpath/glibj.zip \
--with-target-classpath-classes=${datadir}/classpath/glibj.zip \
- --with-classpath-libdir=${libdir_jni}:${libdir} \
+ --with-vm-zip=${datadir}/cacao/vm.zip \
+ --with-classpath-libdir=${libdir} \
"
-# Options needed for Cacao >= 0.99
-NEW_CACAO_OECONF = "\
- --with-build-java-runtime-library-classes=${STAGING_DATADIR}/classpath/glibj.zip \
- --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
- --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \
- --with-jni_md_h=${STAGING_INCDIR}/classpath \
- --with-jni_h=${STAGING_INCDIR}/classpath \
- "
-
PACKAGES = "${PN} ${PN}-doc ${PN}-dbg"
FILES_${PN} = "${bindir}/${PN} ${libdir}/lib*.so* ${datadir}/${PN}"
@@ -52,3 +36,16 @@ ALTERNATIVE_PRIORITY = "10"
ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}"
ALTERNATIVE_PATH = "${bindir}/cacao"
ALTERNATIVE_PRIORITY = "10"
+
+do_configure_prepend() {
+ # Replaces the placeholder OE_LIBDIR_JNI with the JNI library directory
+ # configured in OE.
+ if [ -e src/vm/properties.c ]; then
+ sed -i -e "s|OE_LIBDIR_JNI|${libdir_jni}|" src/vm/properties.c
+ fi
+
+ if [ -e src/vm/properties.c ]; then
+ sed -i -e "s|OE_LIBDIR_JNI|${libdir_jni}|" src/vm/vm.c
+ fi
+}
+
============================================================
--- packages/cacao/cacao_0.98+hg20071001.bb 9bdf5633757ed3e83764bf8121e01f802736554c
+++ packages/cacao/cacao_0.98+hg20071001.bb ac5e51b47c7d3446078d237ac95abd0fa9c668cc
@@ -1,9 +1,10 @@ require cacao.inc
require cacao.inc
-PR = "r9"
+PR = "r8"
SRC_URI = "\
http://jalimo.evolvis.org/repository/sources/cacao-${PV}.tar.bz2;md5sum=9ff10c929bd0cbf15909107c1aff7518 \
+ file://cacao-0.98+svn-libdir.diff;patch=1 \
file://cacao-0.98+svn-classpath_var.patch;patch=1 \
file://cacao-0.98+hg-arm-cacheflush-fix.patch;patch=1 \
file://cacao-0.98+hg-attachthread.patch;patch=1 \
============================================================
--- packages/cacao/cacao_0.98+hg20080519.bb fa6b0f11ad259a1b9380f5c77debc6c109d15a06
+++ packages/cacao/cacao_0.98+hg20080519.bb a332104661010fe20cb8578a21fb16b673c5c620
@@ -1,11 +1,24 @@ require cacao.inc
require cacao.inc
-PR = "r1"
+PR = "r0"
SRC_URI = "http://downloads.openmoko.org/sources/cacao-0.98+hg20080519.tar.gz;md5sum=1c6e0530be63ec8a4c0ab2935c2fdc8f \
- file://cacao-${PV}-build-java-runtime-library-classes.patch;patch=1 \ \
+ file://cacao-hg20080519-classpath_var.patch;patch=1 \
+ file://cacao-hg20080519-libdir.patch;patch=1 \
"
S = "${WORKDIR}/cacao"
+EXTRA_OECONF = "\
+ ${@['','--enable-softfloat'][bb.data.getVar('TARGET_FPU',d,1) == 'soft']} \
+ --enable-debug \
+ --with-vm-zip=${datadir}/cacao/vm.zip \
+ --with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-${PV} \
+ --with-java-runtime-library-classes=${STAGING_DATADIR}/classpath/glibj.zip \
+ --with-target-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
+ --with-java-runtime-library-libdir=${libdir} \
+ --with-jni_md_h=${STAGING_INCDIR}/classpath \
+ --with-jni_h=${STAGING_INCDIR}/classpath \
+ "
+
DEFAULT_PREFERENCE = "-1"
============================================================
--- packages/cacao/cacaoh-native.inc c9a5b15f7ac1b2a3f993d18c8e902c40052a0d20
+++ packages/cacao/cacaoh-native.inc 21cb933b74df6d2ac41c9593d5df8f193f74b51a
@@ -11,15 +11,10 @@ EXTRA_OECONF = " \
inherit autotools native
EXTRA_OECONF = " \
- --with-classpath-includedir=${STAGING_INCDIR}/classpath \
- --with-classpath-classes=${STAGING_DATADIR}/classpath/glibj.zip \
- \
- --with-java-runtime-library-classes=${STAGING_DATADIR}/classpath/glibj.zip \
- --with-jni_md_h=${STAGING_INCDIR}/classpath \
- --with-jni_h=${STAGING_INCDIR}/classpath \
- "
+ --with-classpath-includedir=${STAGING_INCDIR}/classpath \
+ --with-classpath-classes=${STAGING_DATADIR}/classpath/glibj.zip \
+ "
-
do_compile() {
# Compile the header generator only (and what is needed for it).
oe_runmake -C src/toolbox libtoolbox.la
More information about the Openembedded-commits
mailing list