Package Details: qt5-base-headless 5.11.2-1

Git Clone URL: https://aur.archlinux.org/qt5-base-headless.git (read-only)
Package Base: qt5-base-headless
Description: A cross-platform application and UI framework - headless build (no QtGui or QtWidgets)
Upstream URL: http://qt-project.org/
Licenses: custom, GPL3, LGPL3, FDL
Conflicts: qt5-base, qtchooser
Provides: qt5-base
Submitter: K900
Maintainer: K900
Last Packager: K900
Votes: 2
Popularity: 1.795614
First Submitted: 2018-11-02 11:02
Last Updated: 2018-11-02 11:02

Required by (1000)

Sources (1)

Latest Comments

buzo commented on 2018-12-05 16:36

The build fails with -system-harfbuzz: ERROR: Feature 'system-harfbuzz' was enabled, but the pre-condition 'features.harfbuzz && libs.harfbuzz' failed.

Also: ERROR: Feature 'sql-ibase' was enabled, but the pre-condition 'libs.ibase' failed.

Accessibility and FreeType are set to “yes” in the Configure summary shown during the build, so I disabled them explicitely. dbus, icu and pcre2 are due to errors from the namcap check. There is even another namcap error regarding glib2.

qt5-base-headless E: Dependency glib2 detected and not included (libraries ['usr/lib/libglib-2.0.so.0'] needed in files ['usr/lib/libQt5Core.so.5.11.2'])
qt5-base-headless E: Dependency icu detected and not included (libraries ['usr/lib/libicuuc.so.63', 'usr/lib/libicui18n.so.63'] needed in files ['usr/lib/libQt5Core.so.5.11.2'])
qt5-base-headless E: Dependency dbus detected and not included (libraries ['usr/lib/libdbus-1.so.3'] needed in files ['usr/lib/libQt5DBus.so.5.11.2'])
qt5-base-headless E: Dependency pcre2 detected and not included (libraries ['usr/lib/libpcre2-16.so.0'] needed in files ['usr/lib/libQt5Core.so.5.11.2'])

K900 commented on 2018-12-05 15:38

-no-accessibility, -no-freetype and -no-harfbuzz shouldn't be needed IIRC - the build system should disable them automatically since we're not building the top level modules. Also, are you sure dbus/icu and friends should be in optdepends and not makedepends?

buzo commented on 2018-12-05 15:31

This package does not build in a clean chroot, and namcap has a few complaints. Suggested fix:

diff --git a/PKGBUILD b/PKGBUILD
index [`26ae850`](https://aur.archlinux.org/cgit/aur.git/commit/?h=qt5-base-headless&id=26ae850)..52f97fe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,8 +15,9 @@ makedepends=('libmariadbclient' 'sqlite' 'unixodbc' 'postgresql-libs')
 optdepends=('postgresql-libs: PostgreSQL driver'
             'libmariadbclient: MariaDB driver'
             'unixodbc: ODBC driver'
-            'libfbclient: Firebird/iBase driver'
-            'freetds: MS SQL driver'
+            'dbus: Freedesktop.org message bus system'
+            'icu: International Components for Unicode library'
+            'pcre2: Perl 5-style regular expressions'
             'gtk3: GTK platform plugin')
 conflicts=('qtchooser' 'qt5-base')
 provides=('qt5-base')
@@ -45,20 +46,22 @@ build() {
     -datadir /usr/share/qt \
     -sysconfdir /etc/xdg \
     -examplesdir /usr/share/doc/qt/examples \
-    -plugin-sql-{psql,mysql,sqlite,odbc,ibase} \
+    -sql-{psql,mysql,sqlite,odbc} \
     -system-sqlite \
     -openssl-linked \
     -nomake examples \
     -no-rpath \
     -optimized-qmake \
     -dbus-linked \
-    -system-harfbuzz \
     -journald \
     -no-use-gold-linker \
     -reduce-relocations \
     \
     \
+    -no-accessibility \
+    -no-freetype \
     -no-gui \
+    -no-harfbuzz \
     -no-widgets \
     -no-xcb \
     -no-eglfs \