First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 23874
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Carsten Frewert <gentoo@frewert.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ant-1.5.3-r5.ebuild proposal for ant-1.5.3-r5.ebuild text/plain Carsten Frewert 2003-07-02 16:29 0000 2.56 KB Details
build.sh-exit-fix.patch.gz files/build.sh-exit-fix.patch.gz patch Carsten Frewert 2003-07-02 16:31 0000 245 bytes Details | Diff
javah-backport-for-sun-jdk142.patch.gz files/1.5.3/javah-backport-for-sun-jdk142.patch.gz application/x-gzip Carsten Frewert 2003-07-02 16:55 0000 905 bytes Details
build.sh-exit-fix.patch.gz files/build.sh-exit-fix.patch.gz application/x-gzip Carsten Frewert 2003-07-02 16:56 0000 245 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 23874 depends on: Show dependency tree
Bug 23874 blocks: 23701
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: 2003-07-02 08:40 0000
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 From Carsten Frewert 2003-07-02 16:29:42 0000 -------
Created an attachment (id=14126) [edit]
proposal for ant-1.5.3-r5.ebuild

------- Comment #2 From Carsten Frewert 2003-07-02 16:31:33 0000 -------
Created an attachment (id=14127) [edit]
files/build.sh-exit-fix.patch.gz

Fix for problem a)

------- Comment #3 From Carsten Frewert 2003-07-02 16:55:47 0000 -------
Created an attachment (id=14129) [edit]
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 From Carsten Frewert 2003-07-02 16:56:28 0000 -------
Created an attachment (id=14130) [edit]
files/build.sh-exit-fix.patch.gz

------- Comment #5 From Adrian Almenar 2003-08-08 16:22:59 0000 -------
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 From Adrian Almenar 2003-08-08 16:57:41 0000 -------
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. 

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