Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16723 - openoffice-1.0.2 does not apply 1.4 patches when used with >=sun-j2sdk-1.4
Summary: openoffice-1.0.2 does not apply 1.4 patches when used with >=sun-j2sdk-1.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High blocker (vote)
Assignee: Seth Chandler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-03 04:51 UTC by Zhen Lin
Modified: 2003-03-03 12:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhen Lin 2003-03-03 04:51:04 UTC
This is due to the fact that the search pattern for 1.4 is 'jdk-1.4', not
'j(2s)?dk-1.4' to allow for sun-j2sdk and FORCE_JAVA=yes

Reproducible: Always
Steps to Reproduce:
1. Set the Java VM to >=sun-j2sdk-1.4
2. export FORCE_JAVA=yes; emerge openoffice
3. Sit back and watch for 1 - 2 hours.

Actual Results:  
1.4 syntactical error:
return (URLStreamHandler)handlerClass.newInstance();;
                                                    ^


Expected Results:  
Compiled nicely

A patch that can be used:
--- openoffice-1.0.2.ebuild.orig        2003-03-01 02:50:48.000000000 +0800
+++ openoffice-1.0.2.ebuild     2003-03-03 17:46:50.000000000 +0800
@@ -224,7 +224,7 @@
        cd ${S}
  
        # Seth -- Dec 1 2002
-       if [ "$(echo ${JAVA_BINARY} | grep "jdk-1.4")" ]
+       if [ "$(echo ${JAVA_BINARY} | egrep 'j(2s)?dk-1.4')" ]
        then
                epatch ${FILESDIR}/${PV}/${PN}-1.0.1-fix-jdk-1.4.0.patch
        fi
Comment 1 Seth Chandler 2003-03-03 12:01:27 UTC
fixed in cvs