Bug 5917 - No java in firefox - Pre 2 Final DVD 64 KDE
Summary: No java in firefox - Pre 2 Final DVD 64 KDE
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: D Morgan
QA Contact:
URL:
Whiteboard:
Keywords:
: 4578 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-15 15:47 CEST by claire robinson
Modified: 2012-06-12 20:52 CEST (History)
3 users (show)

See Also:
Source RPM: firefox or icedtea-web
CVE:
Status comment:


Attachments
report.bug.gz from installation (423.79 KB, application/x-gzip)
2012-05-15 16:24 CEST, claire robinson
Details

Description claire robinson 2012-05-15 15:47:44 CEST
Default KDE installation from Prerelease 2 Final DVD x86_64

No java in firefox. Tested at http://javatester.org/version.html and http://java.com/en/download/testjava.jsp


$ rpm -qa |grep openjdk
java-1.6.0-openjdk-devel-1.6.0.0-31.b24.1.mga2
java-1.7.0-openjdk-1.7.0.3-2.1.1.mga2
java-1.6.0-openjdk-1.6.0.0-31.b24.1.mga2

$ rpm -qa |grep iced
icedtea-web-1.2-2.mga2
Comment 1 Manuel Hiebel 2012-05-15 15:50:32 CEST
anything in about:plugins ?
Comment 2 claire robinson 2012-05-15 15:54:10 CEST
Skype buttons for Kopete
DivX web player
VLC multimedia plugin (compatible Totem 3.4.1)
Quicktime plug-in 7.6.6
Windows media player plug-in 10 (compatible; Totem)
Comment 3 Manuel Hiebel 2012-05-15 15:59:59 CEST
and 'update-alternatives --config java' ?

Assignee: bugsquad => dmorganec

Comment 4 claire robinson 2012-05-15 16:04:32 CEST
# update-alternatives --config java

There are 2 programs which provide `java'.

  Selection    Command
-----------------------------------------------
      1        /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
*+    2        /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java

Enter to keep the default[*], or type selection number:
Comment 5 claire robinson 2012-05-15 16:05:57 CEST
Changed it to 1 and still no java
Comment 6 claire robinson 2012-05-15 16:07:03 CEST
# update-alternatives --config java

There are 2 programs which provide `java'.

  Selection    Command
-----------------------------------------------
*     1        /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
 +    2        /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
Comment 7 Sander Lepik 2012-05-15 16:08:27 CEST
https://www.mageia.org/pipermail/mageia-discuss/20120515/007294.html

And what is 'update-alternatives --config libjavaplugin.so.x86_64' showing to you?

CC: (none) => sander.lepik

Comment 8 Sander Lepik 2012-05-15 16:12:39 CEST
Might it be possible that icedtea-web was installed before java and that's why it's broken? Requires must be set so that java is installed first and then icedtea-web?
Comment 9 claire robinson 2012-05-15 16:20:08 CEST
# update-alternatives --config java

There are 2 programs which provide `java'.

  Selection    Command
-----------------------------------------------
      1        /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
*+    2        /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java

Enter to keep the default[*], or type selection number:


# update-alternatives --config libjavaplugin.so.x86_64
No alternatives for libjavaplugin.so.x86_64.
Comment 10 claire robinson 2012-05-15 16:24:46 CEST
Created attachment 2316 [details]
report.bug.gz from installation
Comment 11 Sander Lepik 2012-05-15 16:34:01 CEST
From that report:

installing java-access-bridge-1.26.2-4.mga2.x86_64.rpm java-1.6.0-openjdk-1.6.0.0-31.b24.1.mga2.x86_64.rpm rhino-1.7-1.mga2.noarch.rpm x11-font-bitstream-type1-1.0.3-1.mga1.noarch.rpm x11-font-xfree86-type1-1.0.4-1.mga1.noarch.rpm x11-font-type1-1.0.0-8.mga1.noarch.rpm java-1.7.0-openjdk-1.7.0.3-2.1.1.mga2.x86_64.rpm timezone-java-2012c-1.mga2.x86_64.rpm lcms2-2.3-1.mga2.x86_64.rpm from /tmp/image/media/core
starting installing packages
created transaction for installing on /mnt (remove=0, install=0, upgrade=9)
timezone-java-2012c-1.mga2.x86_64
rhino-1.7-1.mga2.noarch
lcms2-2.3-1.mga2.x86_64
x11-font-xfree86-type1-1.0.4-1.mga1.noarch
x11-font-bitstream-type1-1.0.3-1.mga1.noarch
x11-font-type1-1.0.0-8.mga1.noarch
java-access-bridge-1.26.2-4.mga2.x86_64
java-1.6.0-openjdk-1.6.0.0-31.b24.1.mga2.x86_64
java-1.7.0-openjdk-1.7.0.3-2.1.1.mga2.x86_64

installing perl-ExtUtils-PkgConfig-1.120.0-2.mga1.noarch.rpm perl-Pango-1.223-1.mga2.x86_64.rpm kpartx-0.4.9-1.mga2.x86_64.rpm perl-Glib-1.251.0-2.mga2.x86_64.rpm perl-Gtk2-1.242.0-2.mga2.x86_64.rpm icedtea-web-1.2-2.mga2.x86_64.rpm perl-ExtUtils-Depends-0.304.0-2.mga1.noarch.rpm perl-Cairo-1.90.0-1.mga2.x86_64.rpm from /tmp/image/media/core
starting installing packages
created transaction for installing on /mnt (remove=0, install=0, upgrade=8)
perl-ExtUtils-Depends-0.304.0-2.mga1.noarch
perl-ExtUtils-PkgConfig-1.120.0-2.mga1.noarch
perl-Glib-1.251.0-2.mga2.x86_64
perl-Cairo-1.90.0-1.mga2.x86_64
perl-Pango-1.223-1.mga2.x86_64
perl-Gtk2-1.242.0-2.mga2.x86_64
icedtea-web-1.2-2.mga2.x86_64
kpartx-0.4.9-1.mga2.x86_64
update-alternatives: unable to make /usr/lib64/mozilla/plugins/libjavaplugin.so.rpm-tmp a symlink to ../../../.../etc/alternatives/libjavaplugin.so.x86_64: No such file or directory

So java seems to be installed first but it fails to update alternatives :/
Comment 12 Anne Nicolas 2012-05-16 00:18:51 CEST
Strange... Just tested with both DVD 32 and 64 and all is working perfectly here

CC: (none) => ennael1

Comment 13 Dave Hodgins 2012-05-16 01:06:31 CEST
The problem on a clean install, is that icedtea-web is getting installed before
firefox, so /usr/lib/mozilla/plugins doesn't exist.

icedtea-web needs a requires on firefox.

CC: (none) => davidwhodgins

Comment 14 Dave Hodgins 2012-05-16 02:56:46 CEST
Actually, rather then a requires on firefox, I guess it should be set up
like flash-player-plugin, where multiple packages own
/usr/lib/mozilla/plugins.
Comment 15 Anne Nicolas 2012-05-16 08:49:49 CEST
fixed in icedtea-web-1.2-3.mga2

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 16 Sander Lepik 2012-05-16 09:01:52 CEST
I'm not so sure about it.

I would say there are two bugs remaining.

# Post requires alternatives to install plugin alternative.
Requires(postun): update-alternatives

# Postun requires alternatives to uninstall plugin alternative.
Requires(postun): update-alternatives

First one should be "Requires(post)" not "Requires(postun)".

And 

# For the mozilla plugin dir
Requires:       mozilla-filesystem%{?_isa}

should be done the same way, so that it's sure that mozilla-filesystem is installed before icedtea-web. At the moment it requires this package but doesn't guarantee that it's actually installed before.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 17 D Morgan 2012-05-16 09:52:06 CEST
should be ok now. Thanks for your remarks.
Comment 18 Sander Lepik 2012-05-16 10:05:07 CEST
Yeah, that should work.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 19 Manuel Hiebel 2012-06-12 20:52:22 CEST
*** Bug 4578 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.