236.3. qtkeychain-0.17.0
Qt 6 API for storing passwords in the Secret Service, KWallet or a plain file
| Version | 0.17.0, release 1 |
| Shelf | security — Security applications: GnuPG and front-ends, password and secret managers, certificates, scanners, forensics and audit |
| Phase | 43_toolkits (Toolkits), 72 of 344 in build order |
| Licence | BSD-3-Clause |
| Homepage | https://github.com/frankosterfeld/qtkeychain |
| Build time | 2.0 SBU |
| Installed size | 344.7 KiB in 11 files |
| Recipe | ports/core/security/qtkeychain/kpkgbuild |
This port is a dependency of 21 ports; a page like this one carries a note in ports/core/security/qtkeychain/kfs.md saying why, and this one has none yet.
Sources
qtkeychain-0.17.0.tar.gz(68.0 KiB)
sha2563b85c3929034b0a99da777130c34d99f006fcd3a9d56564159399a33fee0e504
upstream: https://github.com/frankosterfeld/qtkeychain/archive/refs/tags/0.17.0.tar.gz
archive copy: sources-4/security--qtkeychain-0.17.0.tar.gz
Dependencies
Depends on: cmake, ninja, pkgconf, qt6-qtbase, libsecret, glib.
Required by (21): akonadi-import-wizard, calligra, itinerary, kasts, kate, kdepim-runtime, kio-gdrive, kldap, kmail, kmailtransport, krdc, krdp, ksshaskpass, ktextaddons, libquotient, nheko, pim-sieve-editor, plasma-nm, plasmatube, qgis, tokodon.
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/43_toolkits/phase.env && kpkg install qtkeychain'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/security/qtkeychain.
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/security/qtkeychain
echo '3b85c3929034b0a99da777130c34d99f006fcd3a9d56564159399a33fee0e504 qtkeychain-0.17.0.tar.gz' | 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/qtkeychain
SRC=$SRC_ROOT/qtkeychain-0.17.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf qtkeychain-0.17.0.tar.gz -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 BUILD_SHARED_LIBS=ON \
-D BUILD_TESTING=OFF \
-D BUILD_WITH_QT5=OFF \
-D LIBSECRET_SUPPORT=ON \
-D BUILD_TRANSLATIONS=OFF \
-D BUILD_TEST_APPLICATION=OFF \
-D BUILD_QTQUICK_DEMO=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
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/qtkeychain, 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 qtkeychain-0.17.0-1.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/qtkeychain, and runs the triggers its paths call for.
Contents
Installed libraries: libqt6keychain.so.
Installed directories: /usr/include/qt6keychain, /usr/lib/cmake/Qt6Keychain, /usr/share/licenses/qtkeychain.