Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256700 - openoffice-3.x doesn't register jars under /usr/lib/openoffice/ure/share/java/
Summary: openoffice-3.x doesn't register jars under /usr/lib/openoffice/ure/share/java/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-28 21:56 UTC by Serkan Kaba (RETIRED)
Modified: 2009-04-12 20:05 UTC (History)
1 user (show)

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


Attachments
openoffice.ebuild.patch (openoffice.ebuild.patch,895 bytes, patch)
2009-03-28 05:12 UTC, Serkan Kaba (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Serkan Kaba (RETIRED) gentoo-dev 2009-01-28 21:56:21 UTC
Only jars under /usr/lib/openoffice/basis3.0/program/classes/ are registered.
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2009-01-29 08:07:01 UTC
Problem with the java-set-classpath script, should be fixed now
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2009-01-29 08:35:13 UTC
I was meaning the java-pkg_regjar line in the ebuild, that records already installed jars to package.env.
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2009-01-29 08:49:43 UTC
(In reply to comment #2)
> I was meaning the java-pkg_regjar line in the ebuild, that records already
> installed jars to package.env.
> 

Sorry, your description was a little bit on the short side so I immediately jumped to classpath-fix.

Besides that I'm not quite sure which ones do have to be recorded. All jars? Even the ones used in the help?

Advice and patch always appreciated ;)
Comment 4 Serkan Kaba (RETIRED) gentoo-dev 2009-01-29 11:18:44 UTC
(In reply to comment #3)
> (In reply to comment #2)
> Besides that I'm not quite sure which ones do have to be recorded. All jars?
> Even the ones used in the help?
Probably not, jars containing class files and any other files that are referenced by the classes (l10n resources etc.) are needed.
> Advice and patch always appreciated ;)
I'll check the contents of the files and send a patch.

I actually noticed the issue scanning for missing classes with java-dep-check-0.3 in java installed packages in my system.

Here's the report it generated
http://paste.linux-sevenler.org/index.php?id=31962
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2009-01-29 17:47:37 UTC
They all contain java classes only. So changing
use java && java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/basis3.0/program/classes/*.jar

to

if use java; then
	java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/basis3.0/program/classes/*.jar
	java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar
fi

will fix the issue. Thanks in advance.
Comment 6 Serkan Kaba (RETIRED) gentoo-dev 2009-03-27 18:32:19 UTC
(In reply to comment #5)
After this I got a single missing class "Base64" reported. After examining it, I found out that it's not packaged at all in the final jars. So I reported the issue[1] upstream.

1: http://qa.openoffice.org/issues/show_bug.cgi?id=100620
Comment 7 Serkan Kaba (RETIRED) gentoo-dev 2009-03-28 04:58:35 UTC
(In reply to comment #6)
> (In reply to comment #5)
> After this I got a single missing class "Base64" reported. After examining it,
> I found out that it's not packaged at all in the final jars. So I reported the
> issue[1] upstream.
> 
> 1: http://qa.openoffice.org/issues/show_bug.cgi?id=100620
> 

The patch in the bug fixes the issue, I'll attach a diff against 3.0.1 using patch.
Comment 8 Serkan Kaba (RETIRED) gentoo-dev 2009-03-28 05:12:16 UTC
Created attachment 186510 [details, diff]
openoffice.ebuild.patch
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2009-04-12 20:05:04 UTC
This is all fixed with 3.1 beta4, thanks for the patch!