Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23874 - ant-1.5.3 won't build correctly with sun-jdk-1.4.2 (not yet in portage tree)
Summary: ant-1.5.3 won't build correctly with sun-jdk-1.4.2 (not yet in portage tree)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 23701
  Show dependency tree
 
Reported: 2003-07-02 08:40 UTC by Carsten Frewert
Modified: 2003-08-08 16:57 UTC (History)
0 users

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


Attachments
proposal for ant-1.5.3-r5.ebuild (ant-1.5.3-r5.ebuild,2.56 KB, text/plain)
2003-07-02 16:29 UTC, Carsten Frewert
Details
files/build.sh-exit-fix.patch.gz (build.sh-exit-fix.patch.gz,245 bytes, patch)
2003-07-02 16:31 UTC, Carsten Frewert
Details | Diff
files/1.5.3/javah-backport-for-sun-jdk142.patch.gz (javah-backport-for-sun-jdk142.patch.gz,905 bytes, application/x-gzip)
2003-07-02 16:55 UTC, Carsten Frewert
Details
files/build.sh-exit-fix.patch.gz (build.sh-exit-fix.patch.gz,245 bytes, application/x-gzip)
2003-07-02 16:56 UTC, Carsten Frewert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Frewert 2003-07-02 08:40:48 UTC
2 Problems:
a) 'emerge ant' prints errors in the compile stage, but happily continues 
    and merges the broken ant to the live filesystem

b) The ant sources up to and including 1.5.3 cannot be compiled with the 
   new sun-jdk-1.4.2, as there have been incompatible changes in at least 
   one internal class.

Ant's build.sh causes a) by exiting with status 0 in spite of errors.
The ebuild calls "build.sh || die", so emerge goes on installing.

Problem b) is solved in the ant sources from CVS.

I will add patches solving both issues for ant-1.5.3 soon.

Reproducible: Always
Steps to Reproduce:
1. get the ebuild and related files from PR 23701
2. emerge sun-jdk-1.4.2 ant set it as system-vm
3. emerge ant

Actual Results:  
The ant build-script complains about 2 errors and finally says 
| ... Failed Building Ant Distribution !
| Bootstrap FAILED

emerge goes on:
| >>> dev-java/ant-1.5.3-r4 merged.

The installed ant ist totally broken:
$ ant
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main



Expected Results:  
The emerge should not continue with install/qmerge but fail.
Comment 1 Carsten Frewert 2003-07-02 16:29:42 UTC
Created attachment 14126 [details]
proposal for ant-1.5.3-r5.ebuild
Comment 2 Carsten Frewert 2003-07-02 16:31:33 UTC
Created attachment 14127 [details, diff]
files/build.sh-exit-fix.patch.gz

Fix for problem a)
Comment 3 Carsten Frewert 2003-07-02 16:55:47 UTC
Created attachment 14129 [details]
files/1.5.3/javah-backport-for-sun-jdk142.patch.gz

Backport from ant CVS sources. 
Patched ant-1.5.3 sources will compile with all JDKs including sun-jdk-1.4.2.
Comment 4 Carsten Frewert 2003-07-02 16:56:28 UTC
Created attachment 14130 [details]
files/build.sh-exit-fix.patch.gz
Comment 5 Adrian Almenar 2003-08-08 16:22:59 UTC
i will check these patches and if they work ok. 
then i can movo to testing sun-jdk-1.4.2 and ant 1.5.3 with the patches. 
Comment 6 Adrian Almenar 2003-08-08 16:57:41 UTC
Checked those files, and worked like a charm. 
I tested the most important features of ant, build it with any jdk, and it 
worked very well. So putting it on testing.