All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Orling <timothy.t.orling@linux.intel.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-java][master][pyro][PATCH 1/4] xom: unblacklist and update to v1.2.10
Date: Sun, 21 May 2017 16:25:52 -0700	[thread overview]
Message-ID: <20170521232555.30221-2-timothy.t.orling@linux.intel.com> (raw)
In-Reply-To: <20170521232555.30221-1-timothy.t.orling@linux.intel.com>

- License checksum changed (updated year)
- Add SUMMARY and expand DESCRIPTION
- Clone jaxen dependency from github, update to v1.1.6
- Move SRC_URI checksums to recommended location in recipe
- Add virtual/javac-native to DEPENDS for RSS

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
---
 .../04_remove_sun_import.patch                     |  0
 recipes-core/xml-commons/xom_1.1.bb                | 54 ----------------------
 recipes-core/xml-commons/xom_1.2.10.bb             | 50 ++++++++++++++++++++
 3 files changed, 50 insertions(+), 54 deletions(-)
 rename recipes-core/xml-commons/{xom-1.1 => xom-1.2.10}/04_remove_sun_import.patch (100%)
 delete mode 100644 recipes-core/xml-commons/xom_1.1.bb
 create mode 100644 recipes-core/xml-commons/xom_1.2.10.bb

diff --git a/recipes-core/xml-commons/xom-1.1/04_remove_sun_import.patch b/recipes-core/xml-commons/xom-1.2.10/04_remove_sun_import.patch
similarity index 100%
rename from recipes-core/xml-commons/xom-1.1/04_remove_sun_import.patch
rename to recipes-core/xml-commons/xom-1.2.10/04_remove_sun_import.patch
diff --git a/recipes-core/xml-commons/xom_1.1.bb b/recipes-core/xml-commons/xom_1.1.bb
deleted file mode 100644
index c37965b..0000000
--- a/recipes-core/xml-commons/xom_1.1.bb
+++ /dev/null
@@ -1,54 +0,0 @@
-DESCRIPTION = "Tree-based API for processing XML with Java"
-LICENSE = "LGPL-2.1"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=456080cf80cd56d4d58118c1d10d824f"
-
-HOMEPAGE = "http://xom.nu"
-
-SRC_URI = "\
-	http://www.cafeconleche.org/XOM/${P}-src.tar.gz;name=archive \
-	http://dist.codehaus.org/jaxen/distributions/jaxen-1.1.1-src.tar.gz;name=jaxen \
-	file://04_remove_sun_import.patch \
-	"
-
-# DEBUG: Executing shell function do_compile
-# ----------
-# 1. ERROR in src/nu/xom/UnicodeUtil.java (at line 0)
-# 	/* Copyright 2005 Elliotte Rusty Harold
-# 	^
-# Internal compiler error: java.lang.StackOverflowError at org.eclipse.jdt.internal.compiler.ast.Expression.checkNPE(Expression.java:511)
-# ----------
-# Exception in thread "main" java.lang.StackOverflowError
-#    at org.eclipse.jdt.internal.compiler.ast.Expression.checkNPE(Expression.java:511)
-PNBLACKLIST[xom] ?= "BROKEN: do_compile fails with internal javac error"
-
-S = "${WORKDIR}/XOM"
-
-inherit java-library
-
-DEPENDS = "fastjar-native xerces-j xalan-j"
-
-do_compile() {
-    mkdir -p build
-
-    oe_makeclasspath cp -s xercesImpl xalan2
-    cp=build:$cp
-
-    scp="${WORKDIR}/jaxen-1.1.1/src/java/main"
-
-    javac -sourcepath src:$scp -cp $cp -d build `find src -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)`
-    javac -sourcepath fatsrc:$scp -cp $cp -d build `find fatsrc -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)`
-    javac -sourcepath src15:$scp -cp $cp -d build `find src15 -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)`
-
-    (cd src && find . -name "*.properties" -exec cp {} ../build/{} \;)
-
-    # Remove Jaxen classes from build
-    rm -rf build/org/jaxen
-    rm -rf build/org/w3c
-
-    fastjar -C build -c -f ${JARFILENAME} .
-}
-
-SRC_URI[archive.md5sum] = "e5ae82568d7b1faeb950140c34fbbcb1"
-SRC_URI[archive.sha256sum] = "d648fd1f7b7437123afa63df06f6a6409a0487c99ca8f8beba75aaa474d65818"
-SRC_URI[jaxen.md5sum] = "b598ae6b7e765a92e13667b0a80392f4"
-SRC_URI[jaxen.sha256sum] = "f24ae604a20da87e3716bb1d441c483e56479eaef4e99888f41be06059790bca"
diff --git a/recipes-core/xml-commons/xom_1.2.10.bb b/recipes-core/xml-commons/xom_1.2.10.bb
new file mode 100644
index 0000000..0e923d4
--- /dev/null
+++ b/recipes-core/xml-commons/xom_1.2.10.bb
@@ -0,0 +1,50 @@
+SUMMARY = "Tree-based API for processing XML with Java"
+DESCRIPTION = "XML object model which is a tree-based API for processing XML \
+with Java that strives for correctness, simplicity, and performance."
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3f18f166096348ef9d457214a2484816"
+
+HOMEPAGE = "http://xom.nu"
+
+# jaxen recipe depends on xom, avoid circular dependency
+# upstream jaxen moved to github, do not count on ephemeral github archives
+SRCNAME_jaxen = "jaxen"
+SRCREV_jaxen = "7d7755ac8b19daa2ff6f319f432b864cc72d89b6"
+PV_jaxen = "1.1.6"
+
+SRC_URI = "\
+	http://www.cafeconleche.org/XOM/${P}-src.tar.gz;name=archive \
+	git://github.com/codehaus/${SRCNAME_jaxen};name=jaxen \
+	file://04_remove_sun_import.patch \
+"
+SRC_URI[archive.md5sum] = "9f3a2ae827a9f6826fe76e4b7b0c22b3"
+SRC_URI[archive.sha256sum] = "39985c2debb8044005fd07b09cb06f10e75652b3c048c9b4431434215332bc85"
+
+S = "${WORKDIR}/XOM"
+
+inherit java-library
+
+DEPENDS = "fastjar-native virtual/javac-native xerces-j xalan-j"
+
+do_compile() {
+    mkdir -p build
+
+    oe_makeclasspath cp -s xercesImpl xalan2
+    cp=build:$cp
+
+    mv ${WORKDIR}/git/jaxen ${WORKDIR}/jaxen-${PV_jaxen}
+    rm -rf ${WORKDIR}/git
+    scp="${WORKDIR}/jaxen-${PV_jaxen}/src/java/main"
+
+    javac -sourcepath src:$scp -cp $cp -d build `find src -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)`
+    javac -sourcepath fatsrc:$scp -cp $cp -d build `find fatsrc -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)`
+    javac -sourcepath src15:$scp -cp $cp -d build `find src15 -name "*.java" -and -not \( -wholename "*tests*" -or -wholename "*samples*" -or -wholename "*tools*" \)`
+
+    (cd src && find . -name "*.properties" -exec cp {} ../build/{} \;)
+
+    # Remove Jaxen classes from build
+    rm -rf build/org/jaxen
+    rm -rf build/org/w3c
+
+    fastjar -C build -c -f ${JARFILENAME} .
+}
-- 
2.9.4



  reply	other threads:[~2017-05-21 23:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-21 23:25 [meta-java][master][pyro][PATCH 0/4] xml-commons: unblacklist Tim Orling
2017-05-21 23:25 ` Tim Orling [this message]
2017-05-21 23:25 ` [meta-java][master][pyro][PATCH 2/4] jaxen: unblacklist and update to v1.1.6 Tim Orling
2017-05-21 23:25 ` [meta-java][master][pyro][PATCH 3/4] dom4j: unblacklist and fix build Tim Orling
2017-05-21 23:25 ` [meta-java][master][pyro][PATCH 4/4] jdom: unblacklist and update to v1.1.3 Tim Orling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170521232555.30221-2-timothy.t.orling@linux.intel.com \
    --to=timothy.t.orling@linux.intel.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.