302.6. quassel-0.14.0
IRC client (Qt 5) — the monolithic client, the core that stays connected, and the client for it
| Version | 0.14.0, release 2 |
| Shelf | chat — Instant messaging, IRC, XMPP, Matrix, fediverse and voice clients, with their protocol and E2E libraries |
| Phase | 44_apps (Applications), 33 of 422 in build order |
| Licence | GPL-2.0-only OR GPL-3.0-only |
| Homepage | https://quassel-irc.org/ |
| Build time | 4.5 SBU |
| Installed size | 11.2 MiB in 1091 files |
| Recipe | ports/core/chat/quassel/kpkgbuild |
About
Quassel IRC is an IRC client split in two: a core that stays connected to the networks and keeps the backlog, and a client that attaches to the core from wherever the user is. The port builds all three programs upstream offers: quasselcore, the core on its own; quasselclient, which connects to a core; and quassel, the two in one process for a single machine. It is a Qt 5 application.
Sources
quassel-0.14.0.tar.bz2(4.6 MiB)
sha256bbd46ca429c1518480904c9e2b0ab3a0412fe197f3ce4879974e06ed3a0093a3
upstream: https://www.quassel-irc.org/pub/quassel-0.14.0.tar.bz2
archive copy: sources-1/chat--quassel-0.14.0.tar.bz2
Dependencies
Depends on: cmake, ninja, pkgconf, qt5-qtbase, qt5-qttools, qt5-qtmultimedia, qt5-qtsvg, qt5-qtwayland, boost, zlib, qca-qt5, sonnet-qt5, libdbusmenu-qt5, hicolor-icon-theme.
Required by: no port names it.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install quassel'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/chat/quassel.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/chat/quassel
echo 'bbd46ca429c1518480904c9e2b0ab3a0412fe197f3ce4879974e06ed3a0093a3 quassel-0.14.0.tar.bz2' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/quassel
SRC=$SRC_ROOT/quassel-0.14.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf quassel-0.14.0.tar.bz2 -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D USE_CCACHE=OFF \
-D WANT_CORE=ON \
-D WANT_QTCLIENT=ON \
-D WANT_MONO=ON \
-D WITH_KDE=OFF \
-D WITH_BUNDLED_ICONS=ON \
-D WITH_OXYGEN_ICONS=OFF \
-D WITH_WEBKIT=OFF \
-D WITH_WEBENGINE=OFF \
-D WITH_LDAP=OFF \
-D EMBED_DATA=OFF \
-D BUILD_TESTING=OFF \
-D CMAKE_DISABLE_FIND_PACKAGE_LibsnoreQt5=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qca-qt5=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt5Multimedia=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt5DBus=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF5Sonnet=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_dbusmenu-qt5=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
for _o in "$PKG"/usr/bin/quassel* "$PKG"/usr/lib/libquassel-*.so.$version; do
case $(readelf -d "$_o") in *libldap*|*libssl.so.4*|*libcrypto.so.4*) exit 1 ;; esac
done
_apps="$PKG/usr/share/applications"
cat > "$_apps/quassel.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Quassel IRC
GenericName=IRC Client
Comment=IRC client with its own core, in one program
Exec=quassel
Icon=quassel
Terminal=false
StartupWMClass=quassel
Categories=Qt;Network;Chat;IRCClient;
Keywords=irc;chat;channel;quassel;
DESKTOP
cat > "$_apps/quasselclient.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Quassel IRC (Client only)
GenericName=IRC Client
Comment=Connect to a Quassel core that stays online
Exec=quasselclient
Icon=quassel
Terminal=false
StartupWMClass=quasselclient
Categories=Qt;Network;Chat;IRCClient;
Keywords=irc;chat;channel;quassel;core;
DESKTOP
chmod 644 "$_apps/quassel.desktop" "$_apps/quasselclient.desktop"
The switches, and why each is set:
-D USE_CCACHE=OFF— do not wrap the compiler in ccache, which upstream does by default when it finds it.-D WANT_CORE=ON— build the core, and with-D WANT_QTCLIENT=ONand-D WANT_MONO=ONthe client-only and the monolithic programs. All three are upstream’s defaults, named.-D WITH_KDE=OFF— no integration with the KDE Frameworks runtime; upstream’s default, named. Spell checking, which that integration would otherwise bring, comes from Sonnet on its own (below).-D WITH_BUNDLED_ICONS=ON— install the icons Quassel needs from the Breeze and Breeze Dark themes, which it carries under3rdparty/icons, into its own data directory,/usr/share/quassel/icons, where they cannot conflict with a system theme; without them upstream warns that a Breeze or Oxygen theme must be installed. It is upstream’s default, and-D WITH_OXYGEN_ICONS=OFFleaves out the Oxygen set, also by default.-D WITH_WEBENGINE=OFF— no previews of links in the chat view, and with-D WITH_WEBKIT=OFFnot through the legacy WebKit either. Previews need Qt 5’s WebEngine or WebKit module, and the tree carries neither. WebEngine is on by default upstream and used when found; WebKit is off.-D WITH_LDAP=OFF— no LDAP sign-in for core users. Upstream’s default is on, used if the library is present, and the tree’s openldap links OpenSSL 4 while Quassel’s Qt 5 links OpenSSL 3; one process would load both.-D EMBED_DATA=OFF— install the icons and other data as files instead of compiling them into the binaries; upstream’s default on Linux, named.-D CMAKE_DISABLE_FIND_PACKAGE_LibsnoreQt5=ON— skip the search for the snorenotify notification framework, which the tree does not carry; notifications go through D-Bus.-D CMAKE_REQUIRE_FIND_PACKAGE_Qca-qt5=ON— make a missing qca-qt5 a configure error. Upstream finds it quietly and marks it “Required for encryption support”: the message encryption keyed per channel or nick (/setkey,/keyx), which would otherwise drop out without a word.-D CMAKE_REQUIRE_FIND_PACKAGE_Qt5Multimedia=ON— likewise for Qt Multimedia, which plays the audio notifications.-D CMAKE_REQUIRE_FIND_PACKAGE_Qt5DBus=ON— likewise for Qt D-Bus, needed for D-Bus notifications and the tray icon.-D CMAKE_REQUIRE_FIND_PACKAGE_KF5Sonnet=ON— likewise for sonnet-qt5, the spell checker in the input line. Quassel looks for Sonnet only once it has found extra-cmake-modules, which comes into the build root as a dependency of sonnet-qt5; without it the search is skipped and this switch has nothing to enforce.-D CMAKE_REQUIRE_FIND_PACKAGE_dbusmenu-qt5=ON— likewise for libdbusmenu-qt5, which gives the D-Bus tray icon its context menu.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/quassel, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf quassel-0.14.0-2.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/quassel, and runs the triggers its paths call for.
Contents
Installed programs: quassel, quasselclient, quasselcore.
Installed libraries: libquassel-client.so, libquassel-common.so, libquassel-core.so, libquassel-qtui.so, libquassel-uisupport.so.
Installed directories: /usr/share/licenses/quassel, /usr/share/quassel.
Notes
After the install, build.sh reads the dynamic section of every program and of the libquassel-* libraries, and fails the build if any of them needs libldap or an OpenSSL 4 library (libssl.so.4, libcrypto.so.4). Qt 5 is built against the openssl3 slot, and musl’s loader has one symbol namespace, so with both libcrypto sonames in one process each would resolve the other’s calls; see A second version beside the first.
build.sh writes the two desktop entries upstream installs, quassel.desktop and quasselclient.desktop, over upstream’s, each with its own StartupWMClass.