First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 196080
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christoph Brill (egore) <egore@gmx.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ecj.patch Patches build.xml to use 1.3, not 1.2 patch 2010dli@tjhsst.edu 2007-10-28 15:56 0000 596 bytes Details | Diff
ant-core-1.7.0.ebuild Ebuild using ecj.patch text/plain 2010dli@tjhsst.edu 2007-10-28 15:56 0000 2.52 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 196080 depends on: Show dependency tree
Bug 196080 blocks: 21477
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-16 18:54 0000
I tried to build ant-core-1.7.0 with ecj today. Gentoo uses a "custom"
build.xml that uses source=1.2 as parameter for ant. Ecj rejects this source
level with the message:

build-core:
Compiling 50 source files to
/var/tmp/portage/dev-java/ant-core-1.7.0/work/apache-ant-1.7.0/build/classes
source level should be comprised in between '1.3' and '1.6' (or '5', '5.0',
..., '7' or '7.0'): 1.2

It would be good to use source=1.3 in this case.

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Petteri Räty 2007-10-16 19:45:23 0000 -------
I thought the ant-core ebuild built it always with javac?

------- Comment #2 From Christoph Brill (egore) 2007-10-17 09:15:46 0000 -------
Using gcj to build ant-core it's build with ecj first.

------- Comment #3 From Roy Wright 2007-10-18 07:12:23 0000 -------
I'm seeing the same issue.

At the end of the build, the following is emitted:

!!! When you file a bug report, please include the following information:
GENTOO_VM=gcj-jdk-4.3  CLASSPATH="."
JAVA_HOME="/usr/lib/gcj-4.3.0_alpha20070921"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

The interesting part is the JAVACFLAGS="source 1.4 -target 1.4"

Looking at the eclasses, I'm thinking that java-pkg_get-source and
java-pkg_get-target are being set to 1.4.  I did not see where javac.source and
javac.target properties are being rewritten in the build.xml.

I tried overriding JAVA_PKG_WANT_SOURCE.  The original error didn't change (but
the JAVACFLAGS did reflect the new value).

------- Comment #4 From 2010dli@tjhsst.edu 2007-10-28 04:32:38 0000 -------
Some relevant lines from
/var/tmp/portage/dev-java/ant-core-1.7.0/work/apache-ant-1.7.0/build.xml:
...
<project name="apache-ant" default="main" basedir=".">
...
  <!--
       ===================================================================
         Set the properties that control various build options
       ===================================================================
  -->
...
  <property name="javac.target" value="1.2"/>
  <property name="javac.source" value="1.2"/>
...

------- Comment #5 From 2010dli@tjhsst.edu 2007-10-28 15:56:12 0000 -------
Created an attachment (id=134543) [details]
Patches build.xml to use 1.3, not 1.2

------- Comment #6 From 2010dli@tjhsst.edu 2007-10-28 15:56:43 0000 -------
Created an attachment (id=134544) [details]
Ebuild using ecj.patch

------- Comment #7 From 2010dli@tjhsst.edu 2007-10-28 15:57:37 0000 -------
The patch I just uploaded modifies the relevant lines in build.xml that cause
ecj to fail.

------- Comment #8 From Hanno Meyer-Thurow 2008-03-04 11:20:30 0000 -------
Or you add 'java-ant_bsfix_one build.xml' at the end of src_unpack().
But please fix this annoying problem, thanks! :)

------- Comment #9 From Andrew John Hughes 2008-04-13 21:43:46 0000 -------
Adding 

sed -i 's#1\.2#1.3#' build.xml

to the end of src_unpack also solves this.
Why is this being built with such an old bytecode version in the first place?

------- Comment #10 From Vlastimil Babka (Caster) 2008-07-16 21:25:26 0000 -------
(In reply to comment #8)
> Or you add 'java-ant_bsfix_one build.xml' at the end of src_unpack().
> But please fix this annoying problem, thanks! :)

That's the right way :) Fixed in CVS in ant-core-1.7.1-r1, thanks!

First Last Prev Next    No search results available      Search page      Enter new bug