Re: building editors/libreoffice fails with: unknown USE_QT component 'tools' invalid

From: Matthias Apitz <guru_at_unixarea.de>
Date: Sat, 25 Oct 2025 06:27:26 UTC
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"

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