Re: libreoffice

From: Gary Aitken <freebsd_at_dreamchaser.org>
Date: Wed, 09 Apr 2025 21:26:18 UTC
On 4/9/25 01:50, LuMiWa wrote:
> On Tue, 8 Apr 2025 15:43:40 -0800
> Gary Aitken <freebsd@dreamchaser.org> wrote:
> 
>> On 4/8/25 11:02, LuMiWa wrote:
>>> On FreeBSD 14.2-RELEASE-p1, use binary packages. Why libreoffice
>>> install openjdk17 and openjdk8, please?
>>>
>>> pkg install libreoffice
>>> Updating FreeBSD repository catalogue...
>>> FreeBSD repository is up to date.
>>> Updating FreeBSD-kmods repository catalogue...
>>> FreeBSD-kmods repository is up to date.
>>> All repositories are up to date.
>>> The following 3 package(s) will be affected (of 0 checked):
>>>
>>> New packages to be INSTALLED:
>>> 	libreoffice: 25.2.2.2 [FreeBSD]
>>> 	openjdk17: 17.0.14+7.1 [FreeBSD]
>>> 	openjdk8: 8.442.06.1_1 [FreeBSD]
>>>
>>> Number of packages to be installed: 3
>>>
>>> The process will require 912 MiB more space.
>>> 141 MiB to be downloaded.
>>>
>>> Proceed with this action? [y/N]:
>>
>> I'm running 13.4-RELEASE, and there I only see openjdk17:
>>
>> $ pkg info -d libreoffice | grep jdk
>>           openjdk17-17.0.13+11.1
>>
>> However, I also have mysql-connector-j installed for connecting to
>> mysql, and that depends on openjdk8:
>>
>> $ pkg info -r openjdk8
>> openjdk8-8.432.06.1:
>>           junit-4.12
>>           hamcrest-1.3
>>           apache-commons-httpclient-3.1_3
>>           apache-commons-logging-1.2
>>           apache-commons-codec-1.16.0
>>           apache-ant-1.10.13_1
>>           mysql-connector-j-9.0.0
>>           protobuf-java-3.25.3
>>           slf4j-1.7.21
>>           c3p0-0.9.5.3
>>           pdftk-3.3.3_1
>>           bouncycastle-1.71_1
>>           apache-commons-lang3-3.17.0
>>           javamail-1.6.2_1
>>

> Thank you for respond but in my case pkg pull both openjdks for
> libreoffice installation. I didn't install any new app and I do not
> have openjdk8 on my system very long time. When I want to pkg delete
> openjdk8 it want to delete also libreoffice?? Than I delete both
> openjdk and libreoffice and it pull again. But after delete openjdk8
> pkg check -ad I didn't get any missing. Is this a problem with pkg?

Can you please attach the output of these commands:

pkg info | grep jdk
pkg info -d libreoffice
pkg info -r openjdk8

Gary