libreoffice

0 views
Skip to first unread message

LuMiWa

unread,
Apr 8, 2025, 3:03:08 PMApr 8
to FreeBSD Questions
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]:


--
“Never let your sense of morals prevent you from doing what is right.”
― Isaac Asimov, Foundation

Gary Aitken

unread,
Apr 8, 2025, 7:44:32 PMApr 8
to LuMiWa, FreeBSD Questions
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

Not sure if that explains what you're seeing or not.

Gary

LuMiWa

unread,
Apr 9, 2025, 5:51:23 AMApr 9
to ques...@freebsd.org, fre...@dreamchaser.org
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?

ax disroo

unread,
Apr 9, 2025, 3:02:40 PMApr 9
to LuMiWa, FreeBSD Questions
> On Apr 8, 2025, at 9:02 AM, LuMiWa wrote:
>
> On FreeBSD 14.2-RELEASE-p1, use binary packages. Why libreoffice
> install openjdk17 and openjdk8, please?


Same is happening here. When checked, only found that openjdk8 is a dependency of libreoffice. Will look again …

- ax

ax disroo

unread,
Apr 9, 2025, 4:13:11 PMApr 9
to LuMiWa, FreeBSD Questions
“openjdk8” is (“libjawt.so” via “pkg info -r openjdk8”) in {build,run}-depend list (on FreeBSD stable/14 “m270477-860c84bc7618”) for “editors/libreoffice” port v25.2.2.2.
:-/


LuMiWa

unread,
Apr 9, 2025, 4:45:38 PMApr 9
to ques...@freebsd.org, ax disroo
On Wed, 9 Apr 2025 10:12:07 -1000
ax disroo <ax...@disroot.org> wrote:


> > …
> > Same is happening here. When checked, only found that openjdk8 is a
> > dependency of libreoffice. Will look again …
>
> “openjdk8” is (“libjawt.so” via “pkg info -r openjdk8”) in
> {build,run}-depend list (on FreeBSD stable/14 “m270477-860c84bc7618”)
> for “editors/libreoffice” port v25.2.2.2. :-/
>
>

Link to freshports: https://www.freshports.org/editors/libreoffice/

I am using 14.2-RELEASE

Where could I find official about openjdk8 (libjawt.co)? Thank you.

Gary Aitken

unread,
Apr 9, 2025, 5:27:02 PMApr 9
to LuMiWa, ques...@freebsd.org
> 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

ax disroo

unread,
Apr 9, 2025, 6:20:29 PMApr 9
to LuMiWa, FreeBSD Questions
On Apr 9, 2025, at 10:12 AM, ax disroo wrote:
> On Apr 9, 2025, at 9:02 AM, ax disroo wrote:
>>>> On Apr 8, 2025, at 9:02 AM, LuMiWa wrote:
>>>
>>> On FreeBSD 14.2-RELEASE-p1, use binary packages. Why libreoffice
>>> install openjdk17 and openjdk8, please?
>> …
>> Same is happening here. When checked, only found that openjdk8 is a dependency of libreoffice. Will look again …
>
> “openjdk8” is (“libjawt.so” via “pkg info -r openjdk8”) in {build,run}-depend list

Correction: “openjdk8” comes up only as build time dependency (“pretty-print-build-depends-list”), not in “*-run-depends-*”.

LuMiWa

unread,
Apr 9, 2025, 6:46:20 PMApr 9
to ques...@freebsd.org, fre...@dreamchaser.org
On Wed, 9 Apr 2025 13:26:18 -0800
pkg info | grep jdk
openjdk17-17.0.14+7.1 Java Development Kit 17

pkg info -d libreoffice
libreoffice-25.2.2.2:
xcb-util-wm-0.4.2
qt5-x11extras-5.15.16p0_1
libxcb-1.17.0
libXrender-0.9.12
libXrandr-1.5.4
libXinerama-1.1.5,1
libXext-1.3.6,1
libX11-1.8.12,1
libSM-1.2.6,1
libICE-1.1.1,1
qt5-widgets-5.15.16p130_1
qt5-gui-5.15.16p130_2
libXaw-1.0.16,2
twemoji-color-font-ttf-15.1.0
linuxlibertine-g-20120116_2
liberation-fonts-ttf-2.1.5,2
GentiumBasic-1102_1
fontconfig-2.15.0_3,1
dejavu-2.37_3
crosextrafonts-carlito-20130920_4
crosextrafonts-caladea-20130214_4
serf-1.3.10_1
zxing-cpp-2.3.0
redland-1.0.17_6
raptor2-2.0.16_4
mythes-1.2.4_7
libxslt-1.1.42
libxml2-2.11.9
libwps-0.4.14
libwpd010-0.10.3_7
libvisio01-0.1.8_1
libstaroffice-0.0.7_1
librevenge-0.0.5
libqxp-0.0.0_25
libodfgen01-0.1.8_2
libnumbertext-1.0.11
libmwaw03-0.3.22
libexttextcat-3.4.6
libepubgen-0.1.1_1
libe-book-0.1.3_29
libabw-0.1.3_3
hyphen-2.8.8
hunspell-1.7.2_1
expat-2.7.1
clucene-2.3.3.4_21
xmlsec1-1.3.6
nss-3.110
libgpg-error-1.51
libassuan-3.0.2
libargon2-20190702_1
gpgme-cpp-1.24.2
gpgme-1.24.2
libpagemaker-0.0.4_11
libmspub01-0.1.4_25
harfbuzz-icu-10.3.0
harfbuzz-10.3.0
freetype2-2.13.3
cups-2.4.11_1
qt5-network-5.15.16p130_1
openldap26-client-2.6.9_1
libcmis-0.6.2_4
gstreamer1-plugins-1.26.0
gstreamer1-1.26.0
shared-mime-info-2.4_1
Box2D-2.4.1
lp_solve-5.5.2.5_1
python311-3.11.11
openjdk17-17.0.14+7.1
webp-1.5.0
tiff-4.7.0
poppler-25.02.0
png-1.6.47
openjpeg-2.5.3
libzmf-0.0.2_30
libwpg03-0.3.4
libglvnd-1.7.0
libfreehand-0.1.2_27
libetonyek01-0.1.12,1
libepoxy-1.5.10
libcdr01-0.1.8_1
libGLU-9.0.3
lcms2-2.17
jpeg-turbo-3.1.0
graphite2-1.3.14
glew-2.2.0_3
cairo-1.18.2,3
curl-8.12.1
xdg-utils-1.2.1
qt5-core-5.15.16p130_1
nspr-4.36
libunwind-20240221_2
liborcus-0.19.2_4
libltdl-2.5.4
liblangtag-0.6.7
icu-76.1,1
glib-2.82.4_1,2
gettext-runtime-0.23.1
desktop-file-utils-0.28
boost-libs-1.87.0_1
apr-1.7.5.1.6.3_4
abseil-20250127.0
libICE-1.1.1,1 (libICE.so.6)
qt5-core-5.15.16p130_1 (libQt5Core.so.5)
qt5-gui-5.15.16p130_2 (libQt5Gui.so.5)
qt5-network-5.15.16p130_1 (libQt5Network.so.5)
qt5-widgets-5.15.16p130_1 (libQt5Widgets.so.5)
qt5-x11extras-5.15.16p0_1 (libQt5X11Extras.so.5)
libSM-1.2.6,1 (libSM.so.6)
libX11-1.8.12,1 (libX11-xcb.so.1)
libX11-1.8.12,1 (libX11.so.6)
libXext-1.3.6,1 (libXext.so.6)
libXinerama-1.1.5,1 (libXinerama.so.1)
libXrandr-1.5.4 (libXrandr.so.2)
libXrender-0.9.12 (libXrender.so.1)
zxing-cpp-2.3.0 (libZXing.so.3)
libabw-0.1.3_3 (libabw-0.1.so.1)
libargon2-20190702_1 (libargon2.so.0)
boost-libs-1.87.0_1 (libboost_date_time.so.1.87.0)
boost-libs-1.87.0_1 (libboost_locale.so.1.87.0)
Box2D-2.4.1 (libbox2d.so.2)
cairo-1.18.2,3 (libcairo.so.2)
libcdr01-0.1.8_1 (libcdr-0.1.so.1)
clucene-2.3.3.4_21 (libclucene-contribs-lib.so.1)
clucene-2.3.3.4_21 (libclucene-core.so.1)
clucene-2.3.3.4_21 (libclucene-shared.so.1)
libcmis-0.6.2_4 (libcmis-0.6.so.6)
cups-2.4.11_1 (libcups.so.2)
curl-8.12.1 (libcurl.so.4)
libe-book-0.1.3_29 (libe-book-0.1.so.1)
libepoxy-1.5.10 (libepoxy.so.0)
libepubgen-0.1.1_1 (libepubgen-0.1.so.1)
libetonyek01-0.1.12,1 (libetonyek-0.1.so.1)
expat-2.7.1 (libexpat.so.1)
libxslt-1.1.42 (libexslt.so.0)
libexttextcat-3.4.6 (libexttextcat-2.0.so.0)
fontconfig-2.15.0_3,1 (libfontconfig.so.1)
libfreehand-0.1.2_27 (libfreehand-0.1.so.1)
freetype2-2.13.3 (libfreetype.so.6)
glib-2.82.4_1,2 (libglib-2.0.so.0)
glib-2.82.4_1,2 (libgobject-2.0.so.0)
gpgme-cpp-1.24.2 (libgpgmepp.so.6)
graphite2-1.3.14 (libgraphite2.so.3)
gstreamer1-plugins-1.26.0 (libgstaudio-1.0.so.0)
gstreamer1-1.26.0 (libgstbase-1.0.so.0)
gstreamer1-plugins-1.26.0 (libgstpbutils-1.0.so.0)
gstreamer1-1.26.0 (libgstreamer-1.0.so.0)
gstreamer1-plugins-1.26.0 (libgstvideo-1.0.so.0)
harfbuzz-icu-10.3.0 (libharfbuzz-icu.so.0)
harfbuzz-10.3.0 (libharfbuzz.so.0)
hunspell-1.7.2_1 (libhunspell-1.7.so.0)
hyphen-2.8.8 (libhyphen.so.0)
icu-76.1,1 (libicui18n.so.76)
icu-76.1,1 (libicuuc.so.76)
gettext-runtime-0.23.1 (libintl.so.8)
jpeg-turbo-3.1.0 (libjpeg.so.8)
liblangtag-0.6.7 (liblangtag.so.1)
openldap26-client-2.6.9_1 (liblber.so.2)
lcms2-2.17 (liblcms2.so.2)
lcms2-2.17 (liblcms2_fast_float.so.1)
lcms2-2.17 (liblcms2_threaded.so.1)
openldap26-client-2.6.9_1 (libldap.so.2)
lp_solve-5.5.2.5_1 (liblpsolve55.so)
libltdl-2.5.4 (libltdl.so.7)
libmspub01-0.1.4_25 (libmspub-0.1.so.1)
libmwaw03-0.3.22 (libmwaw-0.3.so.3)
mythes-1.2.4_7 (libmythes-1.2.so.0)
nspr-4.36 (libnspr4.so)
nss-3.110 (libnss3.so)
nss-3.110 (libnssutil3.so)
libnumbertext-1.0.11 (libnumbertext-1.0.so.0)
libodfgen01-0.1.8_2 (libodfgen-0.1.so.1)
openjpeg-2.5.3 (libopenjp2.so.7)
liborcus-0.19.2_4 (liborcus-0.18.so.0)
liborcus-0.19.2_4 (liborcus-parser-0.18.so.0)
libpagemaker-0.0.4_11 (libpagemaker-0.0.so.0)
nspr-4.36 (libplc4.so)
nspr-4.36 (libplds4.so)
png-1.6.47 (libpng16.so.16)
poppler-25.02.0 (libpoppler-cpp.so.2)
poppler-25.02.0 (libpoppler.so.146)
libqxp-0.0.0_25 (libqxp-0.0.so.0)
raptor2-2.0.16_4 (libraptor2.so.0)
redland-1.0.17_6 (librdf.so.0)
librevenge-0.0.5 (librevenge-0.0.so.0)
librevenge-0.0.5 (librevenge-stream-0.0.so.0)
nss-3.110 (libsmime3.so)
nss-3.110 (libssl3.so)
libstaroffice-0.0.7_1 (libstaroffice-0.0.so.0)
tiff-4.7.0 (libtiff.so.6)
libvisio01-0.1.8_1 (libvisio-0.1.so.1)
webp-1.5.0 (libwebp.so.7)
libwpd010-0.10.3_7 (libwpd-0.10.so.10)
libwpg03-0.3.4 (libwpg-0.3.so.3)
libwps-0.4.14 (libwps-0.4.so.4)
libxcb-1.17.0 (libxcb.so.1)
libxml2-2.11.9 (libxml2.so.2)
xmlsec1-1.3.6 (libxmlsec1-nss.so.1)
xmlsec1-1.3.6 (libxmlsec1.so.1)
libxslt-1.1.42 (libxslt.so.1)
libzmf-0.0.2_30 (libzmf-0.0.so.0)

I did delete openjdk8 and java-zoneinfo but if I run

pkg install -f 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.
Checking integrity... done (0 conflicting)
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
java-zoneinfo: 2021.e [FreeBSD]
openjdk8: 8.442.06.1_1 [FreeBSD]

Installed packages to be REINSTALLED:
libreoffice-25.2.2.2 [FreeBSD]

Number of packages to be installed: 2
Number of packages to be reinstalled: 1

The process will require 193 MiB more space.

Proceed with this action? [y/N]: N

But I never had this problem before and I didn't have installed
openjdk8 just openjdk17.

And pkg check -ad
Checking all packages: 100%
libreoffice is missing a required shared library: libjawt.so

Missing library libjawt.so I have as long as I have FreeBSD and
Libreoffice.

LuMiWa

unread,
Apr 9, 2025, 7:01:44 PMApr 9
to Gary Aitken, ques...@freebsd.org
I did reinstall libreoffice and it pull again openjdk8 and
java-zoneinfo.

pkg info -r openjdk8
openjdk8-8.442.06.1_1:
libreoffice-25.2.2.2 (libjawt.so)

pkg check -ad
Checking all packages: 100%

And openjdk8 is just for libjawt.so?


Thank you.

Gary Aitken

unread,
Apr 10, 2025, 12:35:56 AMApr 10
to LuMiWa, ques...@freebsd.org
On 4/9/25 15:01, LuMiWa wrote:
> On Wed, 9 Apr 2025 13:26:18 -0800
> Gary Aitken <fre...@dreamchaser.org> wrote:

> I did reinstall libreoffice and it pull again openjdk8 and
> java-zoneinfo.
>
> pkg info -r openjdk8
> openjdk8-8.442.06.1_1:
> libreoffice-25.2.2.2 (libjawt.so)
>
> pkg check -ad
> Checking all packages: 100%
>
> And openjdk8 is just for libjawt.so?

That appears to be the case;
it is not required in 13.4-RELEASE,
but the pkg in 13.4 is libreoffice 24.8.4.2

I can't speak to the build dependencies as I don't have the fbsd 14 ports Makefile.

Gary



Edward Sanford Sutton, III

unread,
May 30, 2025, 5:05:56 AMMay 30
to ques...@freebsd.org
On 4/9/25 15:19, ax disroo wrote:
> On Apr 9, 2025, at 10:12 AM, ax disroo wrote:
>> On Apr 9, 2025, at 9:02 AM, ax disroo wrote:
>>>>> On Apr 8, 2025, at 9:02 AM, LuMiWa wrote:
>>>>
>>>> On FreeBSD 14.2-RELEASE-p1, use binary packages. Why libreoffice
>>>> install openjdk17 and openjdk8, please?
>>> …
>>> Same is happening here. When checked, only found that openjdk8 is a dependency of libreoffice. Will look again …
>>
>> “openjdk8” is (“libjawt.so” via “pkg info -r openjdk8”) in {build,run}-depend list
>
> Correction: “openjdk8” comes up only as build time dependency (“pretty-print-build-depends-list”), not in “*-run-depends-*”.

openjdk8 is brought in to satisfy build dependency of apache-ant (now
behind releases by almost 2 years but an update won't address this
issue). libreoffice build log has

"checking for JAWT lib... -L/usr/local/openjdk17/lib/ -ljawt"

and later in the build it occurs once more as

S=/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-25.2.3.2 &&
I=$S/instdir && W=$S/workdir && cc -shared -Wl,-z,noexecstack
-Wl,-z,origin '-Wl,-rpath,$ORIGIN' -Wl,-rpath-link,$I/program
-fstack-protector-strong -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc
-Wl,--hash-style=gnu -Wl,-Bsymbolic-functions
-L$W/LinkTarget/StaticLibrary -L$I/sdk/lib -L$I/program -L$I/program
-L/usr/local/lib -Wl,--undefined-version -Wl,--undefined-version
-fstack-protector-strong -L/usr/local/lib -L/usr/local/lib
$W/CObject/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.o
-Wl,--start-group -pthread -L/usr/local/openjdk17/lib/ -ljawt
-Wl,--end-group -Wl,--no-as-needed -o $I/program/libofficebean.s

Reviewing ldd -a output I find:

/usr/local/lib/libreoffice/program/libofficebean.so:
libjawt.so => /usr/local/openjdk8/lib/amd64/libjawt.so
(0x11c8a2ff0000)
libthr.so.3 => /lib/libthr.so.3 (0x11c8a47ac000)
libc.so.7 => /lib/libc.so.7 (0x11c8a545f000)

which I presume is related to

[build LNK] Library/libofficebean.so
S=/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-25.2.3.2 &&
I=$S/instdir && W=$S/workdir && cc -shared -Wl,-z,noexecstack
-Wl,-z,origin '-Wl,-rpath,$ORIGIN' -Wl,-rpath-link,$I/program
-fstack-protector-strong -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc
-Wl,--hash-style=gnu -Wl,-Bsymbolic-functions
-L$W/LinkTarget/StaticLibrary -L$I/sdk/lib -L$I/program -L$I/program
-L/usr/local/lib -Wl,--undefined-version -Wl,--undefined-version
-fstack-protector-strong -L/usr/local/lib -L/usr/local/lib
$W/CObject/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.o
-Wl,--start-group -pthread -L/usr/local/openjdk17/lib/ -ljawt
-Wl,--end-group -Wl,--no-as-needed -o $I/program/libofficebean.so

I'm too inexperienced in compiling/linking to say why it gets the other
path or how to fix it but would like to learn. Knowing how to force such
sequencing is necessary to try to get some ports to build properly
despite being build without a clean build environment such as poudriere
or synth provides; some compile against local code, libraries, and even
run locally installed executables when different ones exist in the work
directory.

Workarounds could be either getting apache-ant to not depend on a single
version of java for its dependency if we can control the dependency
order so java is installed first or create flavors of apache-ant per
java version.

LuMiWa

unread,
May 31, 2025, 6:00:51 AMMay 31
to Edward Sanford Sutton, III, ques...@freebsd.org
I do not understand how are packages built.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286055


--
“Life isn't about finding yourself. Life is about creating yourself.”
― George Bernard Shaw

Reply all
Reply to author
Forward
0 new messages