Re: building editors/libreoffice fails with: unknown USE_QT component 'tools' invalid
Date: Sat, 25 Oct 2025 09:34:56 UTC
On Sat, 25 Oct 2025 08:27:26 +0200
Matthias Apitz <guru@unixarea.de> wrote:
> El día sábado, octubre 25, 2025 a las 03:39:55a. m. +0900, Tomoaki AOKI escribió:
>
> > So you'd better posting to freebsd-ports ML rather than freebsd-current.
> >
> > If the issue was related with /usr/local/lib/compat/pkg, it could be
> > fit here (freebsd-current), as in such cases mechanism to always make
> > the directory at the end of library search path would be wanted,
> > which should be in base.
> >
> >
> > Looking into Mk/Uses/qt.mk, the "tools" in USE_QT are expanded into
> > devel/qt6-tools and it exists. ("tools:build" means it's only applicable
> > for build time.) qt5 doesn't have component "tool", but it's specified
> > only for QT6 option in editors/libreoffice/Makefile.
> >
> > And as mine was configured with old default (still specifying QT5),
> > tried new default (enabling GTK3 and switching QT5 to QT6),
> > fetch succeeded and fetch-recursive, too (if specifying
> > "DISABLE_VULNERABILITIES=yes" in the command line, due to libxslt
> > vulnerability). My ports tree is at commit 0722733030c8.
> >
> > Not yet tried building, though, as my poudriere builders are too
> > busy as of OSVERSION (comes from __FreeBSD_version) bump on stable/15.
>
> I found an older PR in
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275711
> with exactly the same subject:
> editors/libreoffice cannot be installed: unknown USE_QT component 'tools'
>
> btw: this can't be found with Googl with a searchlike this:
> libreoffice "cannot be installed:" unknown USE_QT component"
Maybe it would be a side effect to prevent too messy AI crawler
DoS attacks. Polite robots would possibly no longer crawl there
as of the configuration. (Recently and finally, Anubis is introduced.)
Maybe even Anubis would NOT be effective enough, as attackers (AI
companies) would find way to mimic something.
> Anyway, it gave me a hint and I looked into the very old ports options,
> and solved the issue with:
>
> # ls -l /usr/local/etc/poudriere.d/160-CURRENT-options/editors_libreoffice/options /usr/local/etc/poudriere.d/150-CURRENT-options/editors_libreoffice/options /var/db/ports/editors_libreoffice/options
> -rw-r--r-- 1 root wheel 540 Feb 1 2021 /usr/local/etc/poudriere.d/150-CURRENT-options/editors_libreoffice/options
> -rw-r--r-- 1 root wheel 540 Feb 1 2021 /usr/local/etc/poudriere.d/160-CURRENT-options/editors_libreoffice/options
> -rw-r--r-- 1 root wheel 540 Feb 1 2021 /var/db/ports/editors_libreoffice/options
>
> i.e. all my ports options for editors/libreoffice, in all jails have
> been outdated.
>
> # cat /var/db/ports/editors_libreoffice/options
> # This file is auto-generated by 'make config'.
> # Options for libreoffice-7.0.3.1_2
> _OPTIONS_READ=libreoffice-7.0.3.1_2
> _FILE_COMPLETE_OPTIONS_LIST=COINMP CUPS DOCS GNOME GTK3 JAVA KF5 MMEDIA PGSQL QT5 SDK TEST WEBDAV
> OPTIONS_FILE_UNSET+=COINMP
> OPTIONS_FILE_SET+=CUPS
> OPTIONS_FILE_SET+=DOCS
> OPTIONS_FILE_UNSET+=GNOME
> OPTIONS_FILE_UNSET+=GTK3
> OPTIONS_FILE_UNSET+=JAVA
> OPTIONS_FILE_UNSET+=KF5
> OPTIONS_FILE_SET+=MMEDIA
> OPTIONS_FILE_UNSET+=PGSQL
> OPTIONS_FILE_SET+=QT5
> OPTIONS_FILE_UNSET+=SDK
> OPTIONS_FILE_UNSET+=TEST
> OPTIONS_FILE_UNSET+=WEBDAV
>
> I run a 'make config' and marked in addition 'KF5':
>
> ...
> │ │─────────────────── Select Qt GUI engine version ─────────────────────│ │
> │ │ (*) QT5 Qt5 GUI toolkit support │ │
> │ │new ( ) QT6 Qt6 GUI toolkit support (default visual style) │ │
> │ │────────────────── Select KDE GUI engine version ─────────────────────│ │
> │ │ ( ) KF5 KF5/Qt5 GUI toolkit support (implies QT5) │ │
> │ │new ( ) KF6 KF6/Qt6 GUI toolkit support (implies QT6) │ │
> │ └─────────────────────────────────────────────────────────────────100%─┘ │
>
> and all seems to be fine. Test with poudriere still pending.
>
> Thanks
>
> matthias
>
> --
> Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
> Public GnuPG key: http://www.unixarea.de/key.pub
If you don't need per-builder-jail config and need bare metal builds
(make, portupgrade, pkg_replace, portmaster,...) with same options,
you can make /usr/local/etc/poudriere.d/options to be a symlink to
/var/db/ports.
My options for editors/libreoffice that is going to be used for next
builds is like below.
# This file is auto-generated by 'make config'.
# Options for libreoffice-25.8.2.2
_OPTIONS_READ=libreoffice-25.8.2.2
_FILE_COMPLETE_OPTIONS_LIST=COINMP CUPS DOCS GNOME GTK3 GTK4 JAVA LTO
MARIADB MMEDIA PDFIUM PGSQL SDK TEST WEBDAV QT5 QT6 KF5 KF6
OPTIONS_FILE_UNSET+=COINMP OPTIONS_FILE_SET+=CUPS
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_UNSET+=GNOME
OPTIONS_FILE_SET+=GTK3
OPTIONS_FILE_UNSET+=GTK4
OPTIONS_FILE_SET+=JAVA
OPTIONS_FILE_UNSET+=LTO
OPTIONS_FILE_UNSET+=MARIADB
OPTIONS_FILE_SET+=MMEDIA
OPTIONS_FILE_SET+=PDFIUM
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SDK
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_UNSET+=WEBDAV
OPTIONS_FILE_UNSET+=QT5
OPTIONS_FILE_SET+=QT6
OPTIONS_FILE_UNSET+=KF5
OPTIONS_FILE_UNSET+=KF6
At least `make DISABLE_VULNERABILITIES=yes fetch-recursive` at
/usr/ports/editors/libreoffice did not complained with it.
And what differs with my currently installed one is
for GTK3 and QT6. GTK3 is unset and QT5 instead of QT6
for the build done.
--
Tomoaki AOKI <junchoon@dec.sakura.ne.jp>