* ERROR: dev-java/oracle-javamail-1.5.6::gentoo failed (compile phase): * eant failed * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome_systemd-20191027-182629 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * clang: clang version 9.0.0 (tags/RELEASE_900/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/9/bin llvm: 9.0.0 Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.13.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Wed, 30 Oct 2019 18:45:58 +0000 emerge -qpvO dev-java/oracle-javamail [ebuild N ] dev-java/oracle-javamail-1.5.6 USE="source -doc"
Created attachment 594590 [details] emerge-info.txt
Created attachment 594592 [details] dev-java:oracle-javamail-1.5.6:20191030-195347.log
Created attachment 594594 [details] emerge-history.txt
Created attachment 594596 [details] environment
Created attachment 594598 [details] etc.portage.tbz2
Created attachment 594600 [details] logs.tbz2
this is obviously caused by the new javatoolkit. just tested that, 0.3.0-r9 works fine, 0.6.1+ breaks oracle-javamail.
*** Bug 733844 has been marked as a duplicate of this bug. ***
(In reply to Miroslav Šulc from comment #7) > this is obviously caused by the new javatoolkit. just tested that, 0.3.0-r9 > works fine, 0.6.1+ breaks oracle-javamail. But, is it really caused by javatoolkit? Or by something else? ebuild /var/db/repos/gentoo/dev-java/oracle-javamail/oracle-javamail-1.5.6.ebuild clean unpack * oracle-javamail-1.5.6.zip BLAKE2B SHA512 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * Using: openjdk-8 >>> Unpacking source... >>> Unpacking oracle-javamail-1.5.6.zip to /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work >>> Source unpacked in /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work Then, directly after unpacking: grep -nir push-to-maven /var/tmp/portage/ /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work/mbox.xml:216: <target name="push-to-maven-prepare" depends="-push-to-maven-init, mboxjar" /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work/mbox.xml:217: description="creates an image for the 'push-to-maven' goal"> /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work/mbox.xml:226: <target name="push-to-maven" depends="push-to-maven-prepare" /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work/build.xml:598: <target name="push-to-maven-prepare" depends="-push-to-maven-init, jar, src" /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work/build.xml:599: description="creates an image for the 'push-to-maven' goal"> /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work/build.xml:608: <target name="push-to-maven" depends="push-to-maven-prepare" /var/tmp/portage/dev-java/oracle-javamail-1.5.6/work/ant-common.xml:155:<target name="-push-to-maven-init" description="define a task for pushing bits to the maven repository">
yes, and then rewrite breaks the build.xml. anyway, we have a guy who works on a gsoc project that would make packaging java packages much easier and it would also avoid rewriting build.xml files so it would solve many of our problems.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb648cee79874097b2f6f1d020e14049757c8a71 commit bb648cee79874097b2f6f1d020e14049757c8a71 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-10-19 08:33:03 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-10-19 08:33:18 +0000 dev-java/oracle-javamail: revbump, attempt to fix with new javatoolkit Bug: https://bugs.gentoo.org/698954 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> .../oracle-javamail-1.5.6-r1.ebuild | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+)
Created attachment 667154 [details, diff] Patch for javatoolkit build.xml of dev-java/oracle-javamail-1.5.6 contains: <!DOCTYPE project [ <!ENTITY commonBuild SYSTEM "ant-common.xml"> ]> ... &commonBuild; And ant-common.xml contains necessary code. Python xml.sax module by default does not expand external entities since Python 3.6.7, 3.7.1 and 3.8.0: https://bugs.python.org/issue17239 3.6: https://github.com/python/cpython/commit/582d188e6e3487180891f1fc457a80dec8be26a8 3.7: https://github.com/python/cpython/commit/394e55a9279d17240ef6fe85d3b4ea3fe7b6dff5 3.8: https://github.com/python/cpython/commit/17b1d5d4e36aa57a9b25a0e694affbd1ee637e45
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=5480034ddf29a050671aa22effdd1cefb1a97f55 commit 5480034ddf29a050671aa22effdd1cefb1a97f55 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> AuthorDate: 2020-10-19 16:00:00 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2020-11-05 21:05:44 +0000 allow expanding external entities through SAX parser. Python xml.sax module by default does not expand external entities since Python 3.6.7, 3.7.1 and 3.8.0: https://bugs.python.org/issue17239 3.6: https://github.com/python/cpython/commit/582d188e6e3487180891f1fc457a80dec8be26a8 3.7: https://github.com/python/cpython/commit/394e55a9279d17240ef6fe85d3b4ea3fe7b6dff5 3.8: https://github.com/python/cpython/commit/17b1d5d4e36aa57a9b25a0e694affbd1ee637e45 build.xml files may contain external entities resolving to other .xml files in given package. Closes: https://bugs.gentoo.org/698954 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Patrice Clement <monsieurp@gentoo.org> src/py/javatoolkit/xml/SaxRewriter.py | 10 ++++---- src/py/javatoolkit/xml/sax.py | 44 +++++++++++++++++++++++++++++++++++ src/py/xml-rewrite-2.py | 17 ++++++++------ 3 files changed, 60 insertions(+), 11 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1252b96869bfea1a0326b55717db18cb775683e commit d1252b96869bfea1a0326b55717db18cb775683e Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2020-11-05 21:48:27 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2020-11-05 21:48:38 +0000 dev-java/javatoolkit: version bump. Bug: https://bugs.gentoo.org/698954 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> dev-java/javatoolkit/Manifest | 1 + dev-java/javatoolkit/javatoolkit-0.6.4.ebuild | 28 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+)