0/4] patches to work with poky/meta-oe denzil
From: Ting Liu <[email protected]>
This patchset is targeted to work with poky/meta-oe denzil branch. It is based on the commit:
f5f49c8 openjdk6: apply same fix for ucontext for cacao on arm to openjdk6 too
Tests for openjdk-6 had been done using poky (denzil) + meta-oe (denzil) + meta-java, on beagleboard and mpc8315e-rdb.
Ting Liu (4):
openjdk: not use update-alternatives class
llvm: not use pythonnative class
Revert "llvm: use spaces for python functions"
openjdk-6: Remove the Xp header and library configure checks
recipes-core/llvm/llvm.inc | 69 ++++++++++---------- ...the-autoconf-Xp-header-and-library-checks.patch | 21 ++++++ recipes-core/openjdk/openjdk-6-common.inc | 20 +++++- recipes-core/openjdk/openjdk-7-common.inc | 19 +++++- recipes-core/openjdk/openjdk-postinst.inc | 11 --- 5 files changed, 91 insertions(+), 49 deletions(-) create mode 100644 recipes-core/openjdk/openjdk-6-6b24/Remove-the-autoconf-Xp-header-and-library-checks.patch
Signature · 1 line
1.7.5.4
[meta-java][for denzil] 4/4] openjdk-6: Remove the Xp header and library configure checks
From: Ting Liu <[email protected]>
Xp isn't used anymore by recent jdk versions.
Reference: http://icedtea.classpath.org/hg/icedtea7/raw-rev/a9324fa05b9d
--- ...the-autoconf-Xp-header-and-library-checks.patch | 21 ++++++++++++++++++++ recipes-core/openjdk/openjdk-6-common.inc | 3 +- 2 files changed, 23 insertions(+), 1 deletions(-) create mode 100644 recipes-core/openjdk/openjdk-6-6b24/Remove-the-autoconf-Xp-header-and-library-checks.patch
recipes-core/openjdk/openjdk-6-6b24/Remove-the-autoconf-Xp-header-and-library-checks.patch new file +21 -0
@@ -0,0 +1,21 @@ +diff --git a/configure.ac b/configure.ac +index bd95501..8c7178c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -218,16 +218,6 @@ fi + AC_SUBST(XT_CFLAGS) + AC_SUBST(XT_LIBS) + +-dnl Check for libXp headers and libraries. +-PKG_CHECK_MODULES(XP, xp,[XP_FOUND=yes],[XP_FOUND=no]) +-if test "x${XP_FOUND}" = xno +-then +- AC_MSG_ERROR([Could not find Xp - \ +- Try installing libXp-devel.]) +-fi +-AC_SUBST(XP_CFLAGS) +-AC_SUBST(XP_LIBS) +- + dnl Check for libX11 headers and libraries. + PKG_CHECK_MODULES(X11, x11,[X11_FOUND=yes],[X11_FOUND=no]) + if test "x${X11_FOUND}" = xno
recipes-core/openjdk/openjdk-6-common.inc +2 -1
@@ -10,7 +10,7 @@ ICEDTEA = "icedtea6-${ICEDTEA_VERSION}" S = "${WORKDIR}/${ICEDTEA}" B = "${S}/build" -INC_PR = "r22" +INC_PR = "r23" SRC_URI = "\ ${ICEDTEA_URI} \
@@ -23,6 +23,7 @@ SRC_URI = "\ ${OEPATCHES} \ ${ICEDTEAPATCHES} \ file://jvm.cfg \ + file://Remove-the-autoconf-Xp-header-and-library-checks.patch \ " JDKPN = "openjdk-6"
Signature · 1 line
1.7.5.4
[meta-java][for denzil] 1/4] openjdk: not use update-alternatives class
In reply to [email protected]From: Ting Liu <[email protected]>
--- recipes-core/openjdk/openjdk-6-common.inc | 19 +++++++++++++++++-- recipes-core/openjdk/openjdk-7-common.inc | 19 +++++++++++++++++-- recipes-core/openjdk/openjdk-postinst.inc | 11 ----------- 3 files changed, 34 insertions(+), 15 deletions(-)
recipes-core/openjdk/openjdk-6-common.inc +17 -2
@@ -10,7 +10,7 @@ ICEDTEA = "icedtea6-${ICEDTEA_VERSION}" S = "${WORKDIR}/${ICEDTEA}" B = "${S}/build" -INC_PR = "r21" +INC_PR = "r22" SRC_URI = "\ ${ICEDTEA_URI} \
@@ -461,4 +461,19 @@ FILES_${JDKPN}-doc = "${JDK_HOME}/man" require openjdk-postinst.inc -ALTERNATIVE_PRIORITY = "20" +pkg_postinst_${JDKPN}-jre () { + update-alternatives --install ${bindir}/java java ${JDK_HOME}/jre/bin/java 15 +} + +pkg_prerm_${JDKPN}-jre () { + update-alternatives --remove java ${JDK_HOME}/jre/bin/java +} + +pkg_postinst_${JDKPN}-jdk () { + update-alternatives --install ${bindir}/javac javac ${JDK_HOME}/bin/javac 15 +} + +pkg_prerm_${JDKPN}-jdk () { + update-alternatives --remove javac ${JDK_HOME}/bin/javac +} +
recipes-core/openjdk/openjdk-7-common.inc +17 -2
@@ -10,7 +10,7 @@ ICEDTEA = "NEEDS TO BE SET" S = "${WORKDIR}/${ICEDTEA}" B = "${S}/build" -INC_PR = "r5" +INC_PR = "r6" SRC_URI = " \ ${ICEDTEA_URI} \
@@ -403,4 +403,19 @@ FILES_${JDKPN}-doc = "${JDK_HOME}/man" require openjdk-postinst.inc -ALTERNATIVE_PRIORITY = "50" +pkg_postinst_${JDKPN}-jre () { + update-alternatives --install ${bindir}/java java ${JDK_HOME}/jre/bin/java 15 +} + +pkg_prerm_${JDKPN}-jre () { + update-alternatives --remove java ${JDK_HOME}/jre/bin/java +} + +pkg_postinst_${JDKPN}-jdk () { + update-alternatives --install ${bindir}/javac javac ${JDK_HOME}/bin/javac 15 +} + +pkg_prerm_${JDKPN}-jdk () { + update-alternatives --remove javac ${JDK_HOME}/bin/javac +} +
recipes-core/openjdk/openjdk-postinst.inc +0 -11
@@ -72,14 +72,3 @@ pkg_prerm_${JDKPN}-vm-zero () { fi } -inherit update-alternatives - -ALTERNATIVE_${JDKPN}-jre = "java" -ALTERNATIVE_TARGET_${JDKPN}-jre = "${JDK_HOME}/jre/bin/java" - -ALTERNATIVE_${JDKPN}-jdk = "javac" -ALTERNATIVE_TARGET_${JDKPN}-jdk = "${JDK_HOME}/bin/javac" - -ALTERNATIVE_LINK_NAME[java] = "${bindir}/java" -ALTERNATIVE_LINK_NAME[javac] = "${bindir}/javac" -
Signature · 1 line
1.7.5.4
[meta-java][for denzil] 3/4] Revert "llvm: use spaces for python functions"
In reply to [email protected]From: Ting Liu <[email protected]>
This reverts commit 8e11ccd8a46abcf46fe3854d40ead208b5605b53.
Conflicts:
recipes-core/llvm/llvm.inc
--- recipes-core/llvm/llvm.inc | 65 ++++++++++++++++++++++--------------------- 1 files changed, 33 insertions(+), 32 deletions(-)
recipes-core/llvm/llvm.inc +33 -32
@@ -86,8 +86,9 @@ PACKAGES_virtclass-native = "" PACKAGES_DYNAMIC_virtclass-native = "" python populate_packages_prepend () { - libllvm_libdir = bb.data.expand('${libdir}/llvm${LLVM_RELEASE}', d) - do_split_packages(d, libllvm_libdir, '^lib(.*)\.so$', 'libllvm-%s', 'Split package for %s', allow_dirs=True) + libllvm_libdir = bb.data.expand('${libdir}/llvm${LLVM_RELEASE}', d) + + do_split_packages(d, libllvm_libdir, '^lib(.*)\.so$', 'libllvm-%s', 'Split package for %s', allow_dirs=True) } FILES_${PN} = ""
@@ -104,25 +105,25 @@ FILES_${PN}-dev = " \ " do_install() { - # Install into a private directory to be able to reorganize the files. + # Install into a private directory to be able to reorganize the files. - cd ${OECMAKE_BUILDPATH} + cd ${OECMAKE_BUILDPATH} - oe_runmake DESTDIR=${WORKDIR}/llvm-install install + oe_runmake DESTDIR=${WORKDIR}/llvm-install install - # Create our custom target directories - install -d ${D}${bindir}/llvm${LLVM_RELEASE} - install -d ${D}${includedir}/llvm${LLVM_RELEASE} - install -d ${D}${libdir}/llvm${LLVM_RELEASE} + # Create our custom target directories + install -d ${D}${bindir}/llvm${LLVM_RELEASE} + install -d ${D}${includedir}/llvm${LLVM_RELEASE} + install -d ${D}${libdir}/llvm${LLVM_RELEASE} - # Move headers into their own directory - cp -R ${WORKDIR}/llvm-install/${prefix}/include/llvm \ - ${D}${includedir}/llvm${LLVM_RELEASE}/ - cp -R ${WORKDIR}/llvm-install/${prefix}/include/llvm-c \ - ${D}${includedir}/llvm${LLVM_RELEASE}/ + # Move headers into their own directory + cp -R ${WORKDIR}/llvm-install/${prefix}/include/llvm \ + ${D}${includedir}/llvm${LLVM_RELEASE}/ + cp -R ${WORKDIR}/llvm-install/${prefix}/include/llvm-c \ + ${D}${includedir}/llvm${LLVM_RELEASE}/ - find ${WORKDIR}/llvm-install/${prefix}/lib -name "*" -maxdepth 1 -exec \ - install {} ${D}${libdir}/llvm${LLVM_RELEASE} \; + find ${WORKDIR}/llvm-install/${prefix}/lib -name "*" -maxdepth 1 -exec \ + install {} ${D}${libdir}/llvm${LLVM_RELEASE} \; # I dont know another way out. Binaries are installed into a special subdir find ${WORKDIR}/llvm-install/${prefix}/bin -name "*" -maxdepth 1 -exec \
@@ -148,7 +149,7 @@ do_install() { install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} install -m 0755 bin/llvm-config${LLVM_RELEASE} ${SYSROOT_DESTDIR}${bindir_crossscripts} } - + do_install_virtclass-native() { # Install into a private directory to be able to reorganize the files.
@@ -194,21 +195,21 @@ do_install_virtclass-native() { # Retrieve the target in a way that is compatible to the arch # value in llvm (>= 2.5) def get_llvm_arch(d): - import bb; - - arch = bb.data.getVar('TARGET_ARCH', d, 1) - if arch == "x86_64" or arch == "i486" or arch == "i586" or arch == "i686": - arch = "X86" - elif arch == "arm": - arch = "ARM" - elif arch == "mipsel" or arch == "mips": - arch = "mips" - elif arch == "powerpc" or arch == "powerpc64": - arch = "PowerPC" - else: - bb.error("%s does not support %s yet" % (bb.data.getVar('PN', d, 1), arch) ); - - return arch + import bb; + + arch = bb.data.getVar('TARGET_ARCH', d, 1) + if arch == "x86_64" or arch == "i486" or arch == "i586" or arch == "i686": + arch = "X86" + elif arch == "arm": + arch = "ARM" + elif arch == "mipsel" or arch == "mips": + arch = "mips" + elif arch == "powerpc" or arch == "powerpc64": + arch = "PowerPC" + else: + bb.error("%s does not support %s yet" % (bb.data.getVar('PN', d, 1), arch) ); + + return arch BBCLASSEXTEND = "native"
Signature · 1 line
1.7.5.4
[meta-java][for denzil] 2/4] llvm: not use pythonnative class
In reply to [email protected]From: Ting Liu <[email protected]>
--- recipes-core/llvm/llvm.inc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
recipes-core/llvm/llvm.inc +2 -2
@@ -26,13 +26,13 @@ LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=0ac5f799a2d89477c75b0a378b221855" DEPENDS = "llvm${LLVM_RELEASE}-native llvm-common" DEPENDS_virtclass-native = "llvm-common-native cmake-native" -INC_PR = "r2" +INC_PR = "r3" SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.tgz" S = "${WORKDIR}/llvm-${PV}" -inherit cmake perlnative pythonnative +inherit cmake perlnative # Defines the LLVM supported arches. By now we always build either for ${BUILD} # (native) or ${TARGET}. In the future it may make sense to enable all backends
Signature · 1 line
1.7.5.4
Re: [meta-java][for denzil] 2/4] llvm: not use pythonnative class
Quoted 1 line · On Fri, Feb 1, 2013 at 4:02 AM, <[email protected]> wrote:
From: Ting Liu <[email protected]>
This patch needs more explanation.
-M
Quoted 28 lines
Signed-off-by Ting Liu <[email protected]>--- recipes-core/llvm/llvm.inc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)recipes-core/llvm/llvm.inc +2
-3@@ -26,13 +26,13 @@ LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=0ac5f799a2d89477c75b0a378b221855" DEPENDS = "llvm${LLVM_RELEASE}-native llvm-common" DEPENDS_virtclass-native = "llvm-common-native cmake-native" -INC_PR = "r2" +INC_PR = "r3" SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.tgz" S = "${WORKDIR}/llvm-${PV}" -inherit cmake perlnative pythonnative +inherit cmake perlnative # Defines the LLVM supported arches. By now we always build either for ${BUILD} # (native) or ${TARGET}. In the future it may make sense to enable all backends --1.7.5.4