You are not logged in.
I've got Java7 installed rather than openjdk. The libreoffice meta package seems to want to install openjdk. Is there any way to get it to use Java instead?
Last edited by ryanklee (2011-10-04 18:24:54)
Offline
This might help:
Registered Linux User 159445.
Offline
This might help:
I doubt it, java and libreoffice thing is pretty new.
@ryanklee
Do you mean
:: There are 2 providers available for java-environment:
:: Repository testing
1) jdk7-openjdk
:: Repository extra
2) openjdk6
Enter a number (default=1):
?
Last edited by karol (2011-10-04 17:51:10)
Offline
HeSaid wrote:This might help:
I doubt it, java and libreoffice thing is pretty new.
@ryanklee
Do you mean:: There are 2 providers available for java-environment: :: Repository testing 1) jdk7-openjdk :: Repository extra 2) openjdk6 Enter a number (default=1):
?
This is the output I am referring to:
[ryanklee@kleebox .ec2]$ sudo clyde -S libreoffice
:: libreoffice package not found, searching for group...
:: group libreoffice (including ignored packages):
libreoffice-base libreoffice-calc libreoffice-common
libreoffice-draw libreoffice-gnome libreoffice-impress
libreoffice-kde4 libreoffice-math libreoffice-sdk
libreoffice-sdk-doc libreoffice-writer
:: Install whole content? [Y/n]
resolving dependencies...
looking for inter-conflicts...
:: openjdk6 and jre are in conflict (java-runtime). Remove jre? [Y/n] n
error: failed to prepare transaction (conflicting dependencies)
:: openjdk6: conflicts with jre (java-runtime)
Offline
Have you tried removing jre just for the installation and putting it back (and removing openjdk6) later?
Offline
Have you tried removing jre just for the installation and putting it back (and removing openjdk6) later?
No, I haven't. It did occur to me that that might work. However, it seems a little hack-ish and something that ought to be able to be avoided. So, if there's another, saner way, I suppose I'd like to know what it is.
Offline
You can have a look at https://aur.archlinux.org/packages.php?ID=50317 and maybe modify it a bit to suit your needs.
Official packages can't depend on AUR packages, so you're pretty much on your own wrt to Oracle Java.
Offline
Official packages can't depend on AUR packages, so you're pretty much on your own wrt to Oracle Java.
Oh, that makes much more sense. I didn't recall that Java7 was in the AUR, though it should have. Your previously given solution seems best in the light of this condition. Thanks.
Last edited by ryanklee (2011-10-04 18:25:12)
Offline
karol wrote:Official packages can't depend on AUR packages, so you're pretty much on your own wrt to Oracle Java.
Oh, that makes much more sense. I didn't recall that Java7 was in the AUR, though it should have. Your previously given solution seems best in the light of this condition. Thanks.
Some info about java situation from Arch ML:
http://mailman.archlinux.org/pipermail/ … 21296.html
http://mailman.archlinux.org/pipermail/ … 21671.html
Last edited by karol (2011-10-04 18:28:55)
Offline
For the record: removing jre, installing openjdk6 and then re-installing jre after the installation of the libreoffice meta package worked only if after the libreoffice installation libreoffice-sdk and libreoffice-sdk-doc were also removed, both of which are dependent on openjdk6.
I considered using fake-java package you linked to above, but I'd like to know when these dependencies are an issue and deal with them ad-hoc.
Last edited by ryanklee (2011-10-04 19:33:03)
Offline
For the record: removing jre, installing openjdk6 and then re-installing jre after the installation of the libreoffice meta package worked only if after the libreoffice installation libreoffice-sdk and libreoffice-sdk-doc were also removed, both of which are dependent on openjdk6.
I just hit the same issue...I had (Oracle) JRE installed and pacman refused to install libreoffice without replacing jre with one of the free options. Instead of uninstalling jre and then reinstalling it again, just avoid installing the sdk-packages (eg. instead of accepting the default full list of packages in the "libreoffice" group, accept everything except "libreoffice-sdk" and "libreoffice-sdk-doc". Then pacman will leave your Java-installation as it is.
[user@home ~]# pacman -S libreoffice
:: There are 12 members in group libreoffice:
:: Repository extra
1) libreoffice-base 2) libreoffice-calc 3) libreoffice-common 4) libreoffice-draw 5) libreoffice-gnome 6) libreoffice-impress 7) libreoffice-kde4 8) libreoffice-math
9) libreoffice-postgresql-connector 10) libreoffice-sdk 11) libreoffice-sdk-doc 12) libreoffice-writer
Enter a selection (default=all): 1 2 3 4 5 6 7 8 9 12
Offline