Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60769 - Installation of cyrus-sasl and/or creation of /usr/lib/java.... stops OO from working
Summary: Installation of cyrus-sasl and/or creation of /usr/lib/java.... stops OO from...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Net-Mail Packages
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-18 06:23 UTC by Mark Palmer
Modified: 2004-08-29 21:48 UTC (History)
2 users (show)

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


Attachments
cyrus-sasl-2.1.19/java/README (README,880 bytes, text/plain)
2004-08-25 22:12 UTC, Tuan Van (RETIRED)
Details
cyrus-sasl-java.patch" (cyrus-sasl-java.patch,1.11 KB, patch)
2004-08-27 04:00 UTC, Thomas Matthijs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Palmer 2004-08-18 06:23:22 UTC
I hade a working setup of OpenOffice

after I emerged postfix with SASL support which emerged Cyrus-sasl, open office failed to work:

this is the error that I got:

You are starting this version of OpenOffice.org for the first time
As the user install has changed again you will have to redo your settings
Gnome session manager detected - session management disabled
running openoffice.org setup...
/usr/bin/ooffice: line 170: 3717 Segmentation fault /opt/OpenOffice.org/program/setup ${UPDATEFLAG} -R:/etc/openoffice/autoresponse-1.1.1.conf 1>&/dev/null
setup failed.. abort

I tracked the problem down to the creation of 

/usr/lib/java and files in that directory by cyrus-sasl.

After I removed this directory I was able to continue using OpenOffice.

I think the existence of /usr/lib/java it fooling openoffice into thinking that this is where java is installled

Reproducible: Always
Steps to Reproduce:
1. emerge cyrus-sasl
2. launce openoffice
3. it just hanges

Actual Results:  
I looked at the error message and did a strace /opt/OpenOffice/program/setup

where I saw the reference to /usr/lib/java/ which only cyrus-sasl files in it.
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-08-18 11:09:45 UTC
This is not cyrus-sasl bug. Reassign to OpenOffice team.
BTW, you can do `echo "dev-libs/cyrus-sasl -java" >> /etc/portage/package.use` to disable java support and emerge cyrus-sasl again.
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-19 02:15:15 UTC
Well, the way those java classes are installed is certainly far from clean. The problem is that it is quite hard to change openoffice to do anything different.
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-08-25 22:12:33 UTC
Created attachment 38224 [details]
cyrus-sasl-2.1.19/java/README

Paul, I don't know thw good place to put these files. I you  (or someone) could
tell me where is the good home for them, I'll be happy to take back the bug.
Attached is the cyrus-sasl's java README.
Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-27 02:35:08 UTC
The first thing that would help is just a .jar archive. That archive can just live in for example /usr/lib/cyrus-sasl.jar. Also a file for java-config needs to be created so java-config can find the package. For that a small file needs to be created in /usr/share/cyrus-sasl.env with for example the following contents:
DESCRIPTION=The java bindings for cyrus-sasl version ${PV}
CLASSPATH=:/usr/lib/cyrus-sasl.jar
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-27 03:24:15 UTC
you can use the java-pkg eclass for this
just call java-pkg_dojar thejar.jar in src_install
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-27 04:00:45 UTC
Created attachment 38288 [details, diff]
cyrus-sasl-java.patch"

patch to install the java files correctly
everything java using cyrus-sasl should then include
`java-config -p cyrus-sasl-2` in it's classpath
Comment 7 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-27 13:59:57 UTC
better change that jar line to
jar -cvf ${PN}.jar -C java $(find java -name "*.class")
or cd into it and keep it simple ;-)
Comment 8 Tuan Van (RETIRED) gentoo-dev 2004-08-29 21:48:00 UTC
taking the bug back.
Comment 9 Tuan Van (RETIRED) gentoo-dev 2004-08-29 21:48:34 UTC
fixed in cyrus-sasl-2.1.19-r1. Please test.