Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123585 - ebuild should check for java before setting OPERA_FORCE_JAVA_ENABLED
Summary: ebuild should check for java before setting OPERA_FORCE_JAVA_ENABLED
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Matthijs (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 122036
Blocks: 122766
  Show dependency tree
 
Reported: 2006-02-21 01:04 UTC by genbug
Modified: 2006-08-18 15:45 UTC (History)
1 user (show)

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 genbug 2006-02-21 01:04:03 UTC
recent ebuilds of opera assume that java is installed and try to preload it . They should check to see if there is something to preload.


# java workaround
sed -i -e 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' ${D}/opt/opera/bin/opera


bash-3.1#ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: i
gnored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.
bash-3.1#

I have opera configured internally with java off . Could forcing JAVA enabled maybe one cause of frequent crashes of opera?

 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
       -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \

Thanks
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2006-02-21 02:51:27 UTC
does opera not start for you or are those messages just on the console? If they are only on the console it's completly harmless, the check has always been in the ebuild.
Comment 2 genbug 2006-02-21 03:05:30 UTC
No, opera starts OK.

I have ignored this for a while but I have one or two crashes a day on opera and thought this may be a cause since I imagine it's a less tested senario with most users probably having some form of java on the system.

This may be due to the GLIB leak that 8.52 is supposed to fix. 

Once the ebuild stops sandboxing I'll test that out.

Thanks for your help.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2006-08-18 15:45:50 UTC
A couple of versions onward and with no information that actually shows that the lack or presence of libawt caused opera to crash, I am closing this bug. I have never experienced this problem myself, I must say, and I cannot reproduce it even now.