First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 178953
Alias:
Product:
Component:
Status: RESOLVED
Resolution: TEST-REQUEST
Assigned To: OpenOffice Team <openoffice@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Juergen Rose <rose@rz.uni-potsdam.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 178953 depends on: Show dependency tree
Bug 178953 blocks:
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-05-18 00:05 0000
On several systems emerging of openoffice-2.2.0 fails if the java USE flag is
set.


Compiling 6 source files to
/var/tmp/portage/app-office/openoffice-2.2.0/work/ooo/build/OOF680_m14/hsqldb/unxlngi6.pro/misc/build/hsqldb/classes
/var/tmp/portage/app-office/openoffice-2.2.0/work/ooo/build/OOF680_m14/hsqldb/unxlngi6.pro/misc/build/hsqldb/src/org/hsqldb/store/BaseHashMap.java:866:
rank(int[
],int,int,int,int) in org.hsqldb.lib.ArrayCounter cannot be applied to
(int[],int,int,int,int,int)
        return ArrayCounter.rank(accessTable, hashIndex.newNodePointer,
                           ^
1 error

BUILD FAILED
...
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.11"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info


'java-config -L' gives:
The following VMs are available for generation-2:
1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2)      Sun JDK 1.5.0.11 [sun-jdk-1.5]
*)      Sun JDK 1.6.0 [sun-jdk-1.6]

I tried to change the VM to Blackdown JDK 1.4, I replaced Blackdown JDK 1.4 by
un JDK 1.4. But emerge openoffice fails every time on these machines with the
same error. On an other systems with almost the same configurations I could
emerge openoffice with the java flag. I could not find any java relevant
differences.

Reproducible: Always

------- Comment #1 From Vlastimil Babka (Caster) 2007-05-18 02:07:34 0000 -------
I think the difference is having full dev-java/ant-1.7.0 installed. If it's
there, it will put hsqldb of older version to its classpath through some
transitive dependency (which should be investigated) which will interfere
resolving when compiling the hsqldb bundled in openoffice. Older ant had
harcoded list of deps to put on classpath and hsqldb wasn't there.

The package that brought hsqldb was jaxme. The dependency was not actually
needed there, so I've revbumped jaxme to 0.3.1-r4 to remove the dep, so if you
emerge this version, it should allow you to emerge openoffice without problems.

To solve this problem more generally, the ebuild should
- export ANT_OPTS="-Dbuild.sysclasspath=ignore" somewhere src_compile(). This
will prevent resolving from ant's classpath.
- export ANT_TASKS="none" also in src_compile() which will tell >=ant-1.7.0 to
load only ant-core classes and no deps on classpath. Since openoffice depends
only on ant-core, this should be safe. But should be tested in case there
should actually be dependency on some optional ant tasks.

------- Comment #2 From Andreas Proschofsky 2007-09-20 07:27:50 0000 -------
*** Bug 185595 has been marked as a duplicate of this bug. ***

------- Comment #3 From Andreas Proschofsky 2007-10-30 18:06:53 0000 -------
Is this still a problem?

------- Comment #4 From Jakub Moc (RETIRED) 2008-03-05 01:27:43 0000 -------
Get back to us; thanks.

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