Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542064 - >=dev-java/xml-xmlbeans:1 - can't build with Java 8
Summary: >=dev-java/xml-xmlbeans:1 - can't build with Java 8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
: 549098 565652 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-04 08:10 UTC by Stefan Schmid
Modified: 2016-03-06 13:02 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,7.26 KB, text/x-log)
2015-03-04 08:10 UTC, Stefan Schmid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Schmid 2015-03-04 08:10:59 UTC
Created attachment 398000 [details]
build.log

With Java 8 (dev-java/oracle-jdk-bin) can't portage build this Package (all Versions).
Comment 1 James Le Cuirot gentoo-dev 2015-05-10 12:35:49 UTC
Before anyone wastes too much time on this, upstream is dead. It's required by things that are probably also dead or outdated.
Comment 2 James Le Cuirot gentoo-dev 2015-05-14 13:58:41 UTC
*** Bug 549098 has been marked as a duplicate of this bug. ***
Comment 3 Markus Rathgeb 2015-06-19 18:03:48 UTC
If you set the "javascript" USE flag globally and ant installed (dev-java/ant sets +bfs and so depend on ant-apache-bsf) you will "need" this package.

 dev-java/ant-apache-bsf-1.9.2::gentoo  USE="javascript* -python -tcl" 0 KiB
  dev-java/bsf-2.4.0-r1:2.3::gentoo  USE="javascript* -doc -examples -python -source -tcl" 0 KiB
   dev-java/rhino-1.7.2-r2:1.6::gentoo  USE="-doc -examples -source" 0 KiB
    dev-java/xml-xmlbeans-1.0.4_pre20041217-r1:1::gentoo  USE="-doc -source" 0 KiB

So, perhaps we should drop the package and the support from tree (pre20041217 indicates this is rather old) and if upstream is dead, too...
Comment 4 Scott Alfter 2015-07-01 15:27:17 UTC
(In reply to James Le Cuirot from comment #1)
> Before anyone wastes too much time on this, upstream is dead. It's required
> by things that are probably also dead or outdated.

...which, in turn, are required by things that aren't.  I ran into this while getting things set up to build code for some of my Bitcoin miners, which are controlled by routers that run OpenWRT:

http://wiki.openwrt.org/doc/howto/buildroot.exigence

Their Gentoo-specific documentation calls for installing some prerequisites with the following incantation before grabbing their source tree from GitHub:

echo \
    app-arch/{bzip2,fastjar,sharutils,unzip,zip} \
    app-text/asciidoc dev-java/{icedtea:7,jikes,oracle-jdk-bin} \
    dev-libs/{libusb-compat,libxslt,openssl} dev-util/intltool \
    dev-vcs/{git,mercurial} net-misc/{rsync,wget} \
    net-wireless/b43-fwcutter sys-apps/{gawk,util-linux} \
    sys-devel/{bc,bin86,binutils,dev86,flex,gcc[gcj],gettext} \
    sys-libs/{ncurses,zlib} virtual/{cdrtools,perl-ExtUtils-MakeMaker} \
    x11-libs/gtk+:2 \
        | sed 's/\s/\n/g' \
            | sort \
                | sudo tee /etc/portage/sets/openwrt-prerequisites \
                    && sudo emerge -DuvNa '@openwrt-prerequisites'

This is what triggered an error for me.  Switching the system VM from oracle-jdk-bin-1.8 to oracle-jdk-bin-1.7 got the build back on track.
Comment 5 James Le Cuirot gentoo-dev 2015-08-05 14:59:56 UTC
(In reply to Scott Alfter from comment #4)
> (In reply to James Le Cuirot from comment #1)
> > Before anyone wastes too much time on this, upstream is dead. It's required
> > by things that are probably also dead or outdated.
> 
> ...which, in turn, are required by things that aren't.  I ran into this
> while getting things set up to build code for some of my Bitcoin miners,
> which are controlled by routers that run OpenWRT.

I'm sorry but as much as I respect the OpenWRT project (I use it myself), the Java parts of that incantation are just nonsensical. Why would you need icedtea *and* Oracle's JDK? And Jikes!? Jikes is beyond dead, the last release was 10 years ago! Their Debian dependency list references just the Jikes parser generator so perhaps the compiler itself isn't used but whatever requires that really should use something else now. In any case, I have built OpenWRT on Gentoo many times and at least for the parts you're likely to select, I'm pretty certain you don't need Java at all. As for where xml-xmlbeans comes into it, I have no idea. It's not obvious from that list.
Comment 6 darkbasic 2015-08-10 13:21:12 UTC
I'm afraid we can't get rid of dev-java/xml-xmlbeans so easily:

gentoo-desktop ~ # equery depends dev-java/xml-xmlbeans
 * These packages depend on dev-java/xml-xmlbeans:
dev-java/rhino-1.7.2-r2 (=dev-java/xml-xmlbeans-1*)

gentoo-desktop ~ # equery depends dev-java/rhino
 * These packages depend on dev-java/rhino:
app-office/libreoffice-4.4.5.2 (libreoffice_extensions_scripting-javascript ? dev-java/rhino:1.6)
dev-java/icedtea-7.2.6.1 (javascript ? dev-java/rhino:1.6)
dev-java/icedtea-web-1.5.1-r1 (javascript ? dev-java/rhino:1.6)
dev-java/netbeans-ide-8.0.2 (dev-java/rhino:1.6)

I can get rid of the javascript use flag, but still netbeans needs it.
Comment 7 James Le Cuirot gentoo-dev 2015-08-10 13:36:05 UTC
(In reply to darkbasic from comment #6)
> I'm afraid we can't get rid of dev-java/xml-xmlbeans so easily

We are aware of the rdeps. Rhino has just been bumped and the newest version doesn't use this.
Comment 8 darkbasic 2015-08-11 06:34:49 UTC
Really? Because I still can't find any :1.6 version of Rhino which doesn't rely on dev-java/xml-xmlbeans:1 :(
Comment 9 James Le Cuirot gentoo-dev 2015-08-11 08:14:54 UTC
mons(In reply to darkbasic from comment #8)
> Really? Because I still can't find any :1.6 version of Rhino which doesn't
> rely on dev-java/xml-xmlbeans:1 :(

monsieurp, is there a reason why you bumped the rhino SLOT from 1.6?
Comment 10 Patrice Clement gentoo-dev 2015-08-11 08:22:03 UTC
well I figured it must be a different API now since the xml-xmlbeans support was dropped, isn't it?
Comment 11 James Le Cuirot gentoo-dev 2015-08-11 09:40:43 UTC
(In reply to Patrice Clement from comment #10)
> well I figured it must be a different API now since the xml-xmlbeans support
> was dropped, isn't it?

From what I can see, the dependence on xmlbeans was entirely internal. In any case, we do allow for a little change, as long as it doesn't affect any existing revdeps and there aren't many to test here.
Comment 12 Patrice Clement gentoo-dev 2015-08-12 19:18:24 UTC
| Author: Patrice Clement <monsieurp@gentoo.org>
| Date:   Wed Aug 12 16:04:13 2015 +0000
|
|     dev-java/rhino: reduce SLOT back to 1.6.
|
|     Package-Manager: portage-2.2.18
|     Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
|
|  create mode 100644 dev-java/rhino/rhino-1.7.7-r1.ebuild
Comment 13 Andrew John Hughes 2015-08-13 01:54:08 UTC
Where is 1.7.7 coming from? Looking on https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Download_Rhino, I see up to 1.7.6, with 1.7.5 (1.7R5) being the latest 'qualified release'.
Comment 14 Patrice Clement gentoo-dev 2015-08-13 07:14:50 UTC
(In reply to Andrew John Hughes from comment #13)
> Where is 1.7.7 coming from? Looking on
> https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/
> Download_Rhino, I see up to 1.7.6, with 1.7.5 (1.7R5) being the latest
> 'qualified release'.

https://github.com/mozilla/rhino/releases/tag/Rhino1_7_7_RELEASE
Comment 15 Patrice Clement gentoo-dev 2015-10-28 21:20:25 UTC
I have just stabilised rhino-1.7.7 and the only dep still relying on xml-xmlbeans now is sci-mathematics/isabelle, which is a MOOOOOONSTER ebuild.

Dear sci devs, would kindly bump isabelle?

http://www.cl.cam.ac.uk/research/hvg/Isabelle/index.html

There's a 2015 version and I'm pretty sure you guys can do away with the xml-xmlbeans dep by now. We would like to see off this ebuild ASAP and remove it from Portage as it has been moved into the Attic by the Apache folks (see http://xmlbeans.apache.org/). We will then mask xml-xmlbeans once you've completed the bump and stabilised isabelle. Thank you!
Comment 16 Patrice Clement gentoo-dev 2015-12-06 13:50:48 UTC
*** Bug 565652 has been marked as a duplicate of this bug. ***
Comment 17 Patrice Clement gentoo-dev 2015-12-10 13:38:52 UTC
(In reply to Patrice Clement from comment #15)
> I have just stabilised rhino-1.7.7 and the only dep still relying on
> xml-xmlbeans now is sci-mathematics/isabelle, which is a MOOOOOONSTER ebuild.
> 
> Dear sci devs, would you kindly bump isabelle?
> 
> http://www.cl.cam.ac.uk/research/hvg/Isabelle/index.html
> 
> There's a 2015 version and I'm pretty sure you guys can do away with the
> xml-xmlbeans dep by now. We would like to see off this ebuild ASAP and
> remove it from Portage as it has been moved into the Attic by the Apache
> folks (see http://xmlbeans.apache.org/). We will then mask xml-xmlbeans once
> you've completed the bump and stabilise isabelle. Thank you!

Please?
Comment 18 James Le Cuirot gentoo-dev 2016-03-06 13:02:22 UTC
isabelle has been bumped and :1 has been removed. Closing.