Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612284 - dev-java/javacup-0.11b_p20151001 : * eant failed
Summary: dev-java/javacup-0.11b_p20151001 : * eant failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-11 07:38 UTC by Toralf Förster
Modified: 2017-03-12 05:52 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,5.64 KB, text/plain)
2017-03-11 07:38 UTC, Toralf Förster
Details
dev-java:javacup-0.11b_p20151001:20170311-065542.log (dev-java:javacup-0.11b_p20151001:20170311-065542.log,2.64 KB, text/plain)
2017-03-11 07:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,59.95 KB, text/plain)
2017-03-11 07:38 UTC, Toralf Förster
Details
environment (environment,152.53 KB, text/plain)
2017-03-11 07:39 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,21.68 KB, application/x-bzip)
2017-03-11 07:39 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-03-11 07:38:48 UTC
Total time: 0 seconds
 * ERROR: dev-java/javacup-0.11b_p20151001::gentoo failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named plasma-abi32+64_20170309-193709) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-03-11 07:38:51 UTC
Created attachment 466658 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-03-11 07:38:54 UTC
Created attachment 466660 [details]
dev-java:javacup-0.11b_p20151001:20170311-065542.log
Comment 3 Toralf Förster gentoo-dev 2017-03-11 07:38:58 UTC
Created attachment 466662 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-03-11 07:39:01 UTC
Created attachment 466664 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-03-11 07:39:04 UTC
Created attachment 466666 [details]
etc.portage.tbz2
Comment 6 Greg Turner 2017-03-11 09:55:28 UTC
I have this disease as well.  It's a crippling problem, as there is no way to have ant without javacup and tons of things have ant dependencies.  The strange thing is that nobody else seems to be complaining about it, suggesting that some idiosyncracy of Toralf's and my configurations is involved.
Comment 7 James Le Cuirot gentoo-dev 2017-03-11 10:26:32 UTC
(In reply to Greg Turner from comment #6)
> I have this disease as well.  It's a crippling problem, as there is no way
> to have ant without javacup and tons of things have ant dependencies.  The
> strange thing is that nobody else seems to be complaining about it,
> suggesting that some idiosyncracy of Toralf's and my configurations is
> involved.

I made these changes ages ago and you're right that no one else has complained but I've managed to reproduce it so something must have changed. I'll look in detail later.
Comment 8 James Le Cuirot gentoo-dev 2017-03-11 11:52:01 UTC
I've narrowed down the cause. It's mgorny's eval cleanup in b8fd8d3124411a8b046898a1c578fe6295e96dd0. If you run with JAVA_PKG_DEBUG=yes then you'll see this, which looks very odd. Notice the single quotes.

dropping /var/tmp/portage/dev-java/javacup-0.11b_p20151001/work/'/usr/share/ant-core/lib/ant.jar from path as it doesn't exist
dropping /var/tmp/portage/dev-java/javacup-0.11b_p20151001/work/dist/java-cup-11b.jar' from path as it doesn't exist
Comment 9 James Le Cuirot gentoo-dev 2017-03-11 11:54:22 UTC
mgorny, please see above.
Comment 10 James Le Cuirot gentoo-dev 2017-03-11 11:59:47 UTC
Wait, I see the problem. There's a couple of instances of '\${gentoo.classpath}' in java-ant-2.eclass. It's easy enough to fix in the 2nd gen rewriter case (though I don't think this is used any more) but the 3rd gen case (which is used here) is a bit more involved. I won't have time till tonight.
Comment 11 James Le Cuirot gentoo-dev 2017-03-11 23:02:50 UTC
I did some checks and remove the 2nd gen code. It should have gone years ago. I've fixed the 3rd gen code by making bsfix_extra_args an array.
Comment 12 Greg Turner 2017-03-12 05:52:45 UTC
That did the trick for me.  Thanks, James, for being such a responsive maintainer -- who knows how long it would have taken me to figure out a way to kludge around this, probably a long time.