Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510128 - dev-java/jruby-1.6.8-r1 - javac: .../work/jruby-1.6.8/src/org/jruby/anno/AnnotationBinder.java:3: error: package com.sun.mirror.apt does not exist
Summary: dev-java/jruby-1.6.8-r1 - javac: .../work/jruby-1.6.8/src/org/jruby/anno/Anno...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-12 07:23 UTC by Geoff Madden
Modified: 2014-05-13 16:41 UTC (History)
1 user (show)

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


Attachments
emerge info for jruby-1.6.8-r1 (emerge.inf,4.61 KB, text/plain)
2014-05-12 07:23 UTC, Geoff Madden
Details
build log for jruby (build.log,30.21 KB, text/plain)
2014-05-12 07:26 UTC, Geoff Madden
Details
environment file (environment,150.99 KB, text/plain)
2014-05-12 07:27 UTC, Geoff Madden
Details
results of -pv --tree (tree.inf,618 bytes, text/plain)
2014-05-13 02:56 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Madden 2014-05-12 07:23:49 UTC
Created attachment 376760 [details]
emerge info for jruby-1.6.8-r1

with emerge rubygems the first package to be installed is jruby which wont compile .Hence ruby isn't installed.
Comment 1 Geoff Madden 2014-05-12 07:26:32 UTC
Created attachment 376762 [details]
build log for jruby
Comment 2 Geoff Madden 2014-05-12 07:27:54 UTC
Created attachment 376764 [details]
environment file
Comment 3 Hans de Graaff gentoo-dev Security 2014-05-12 17:45:40 UTC
(In reply to Geoff Madden from comment #0)

> with emerge rubygems the first package to be installed is jruby which wont
> compile .Hence ruby isn't installed.

This should only happen when you have explicitly listed jruby in your RUBY_TARGETS (in /etc/portage/make.conf).
Comment 4 Hans de Graaff gentoo-dev Security 2014-05-12 17:51:58 UTC
(In reply to Hans de Graaff from comment #3)

> This should only happen when you have explicitly listed jruby in your
> RUBY_TARGETS (in /etc/portage/make.conf).

According to your emerge --info you don't have this. What exactly are you trying to emerge, and with which package manager?

Also, which jdk do you have installed?
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-12 22:04:44 UTC
(In reply to Hans de Graaff from comment #4)
> What exactly are you trying to emerge, and with which package manager?

According to the Description; Portage and rubygems, with `emerge rubygems`.

> Also, which jdk do you have installed?

According to the build log, oracle-jdk-bin-1.8.0.5.

A search yields http://ant.1045680.n5.nabble.com/Java8-and-APT-td5714777.html
which seems to suggest that apt and associated API (com.sun.mirror.apt) are to be removed in a major JDK release, in other words, Oracle JDK 1.8; I suppose the story is similar for the other errors.

Testing this; it works on Oracle JDK 1.7, but breaks on Oracle JDK 1.8.

(In reply to Hans de Graaff from comment #3)
> This should only happen when you have explicitly listed jruby in your
> RUBY_TARGETS (in /etc/portage/make.conf).

Yeah, this is odd; `emerge -pv --tree --unordered-display rubygems` could tell.
Comment 6 Geoff Madden 2014-05-13 02:56:30 UTC
Created attachment 376808 [details]
results of -pv --tree
Comment 7 Geoff Madden 2014-05-13 02:57:29 UTC
I'll give it a try again with just rubygems this time
Comment 8 Geoff Madden 2014-05-13 03:48:18 UTC
HMMMM might have been more complicated by the fact that ruby 21 wasn't installed. 
I installed the oraclejdk 7u55 and set that as the VM then ran emerge ruby,which installed 21,& although jruby installed ok there were a heap of error msg's about missing definitions,but these were apparantly ignored,and jruby completed successfully in 1m.
Not able to show the errors as things were cleared up after install.
Comment 9 Geoff Madden 2014-05-13 03:53:03 UTC
Also jruby appeared to be looking for jdk1.5 according to the elog
Comment 10 Geoff Madden 2014-05-13 03:54:40 UTC
ERROR: dev-java/jruby-1.6.8-r1::gentoo failed (compile phase):
eant failed

Call stack:
ebuild.sh, line 93: Called src_compile
environment, line 3964: Called eant 'jar' '-Djdk1.5+=true' '-Dgenerate-ri-cache.hasrun=true'
environment, line 648: Called die
The specific snippet of code:
ant ${antflags} "${@}" || die "eant failed"

If you need support, post the output of `emerge --info '=dev-java/jruby-1.6.8-r1::gentoo'`,
the complete build log and the output of `emerge -pqv '=dev-java/jruby-1.6.8-r1::gentoo'`.
The complete build log is located at '/var/tmp/portage/dev-java/jruby-1.6.8-r1/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/dev-java/jruby-1.6.8-r1/temp/environment'.
Working directory: '/var/tmp/portage/dev-java/jruby-1.6.8-r1/work/jruby-1.6.8'
S: '/var/tmp/portage/dev-java/jruby-1.6.8-r1/work/jruby-1.6.8'
Comment 11 Hans de Graaff gentoo-dev Security 2014-05-13 04:57:47 UTC
(In reply to Tom Wijsman (TomWij) from comment #5)

> A search yields http://ant.1045680.n5.nabble.com/Java8-and-APT-td5714777.html
> which seems to suggest that apt and associated API (com.sun.mirror.apt) are
> to be removed in a major JDK release, in other words, Oracle JDK 1.8; I
> suppose the story is similar for the other errors.

That was also my conclusion when I did some searching yesterday. I've updated the jruby 1.6 ebuild to depend on <virtual/jre-1.8 and <virtual/jdk-1.8 to reflect this.

Given that we are trying to get rid of jruby 1.6 I don't think we need to look at additional fixes for this.
Comment 12 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-13 16:41:58 UTC
(In reply to Geoff Madden from comment #8)
> a heap of error msg's about missing definitions

This is probably the javadoc compilation, where these can be safely ignored; I'm not sure why it is throwing these, or whether there is a way to mute them.

(In reply to Hans de Graaff from comment #11)
> Given that we are trying to get rid of jruby 1.6 I don't think we need to
> look at additional fixes for this.

True, though note that jruby 1.7 supports >=virtual/jdk-1.8 only at the moment; whether that can be made to work with >=virtual/jdk-1.7, I have no idea...