257.53. kpty-6.31.0
KDE Frameworks: pseudo-terminal devices for terminal emulators
6.31.0-1 · LGPL-2.0-or-later AND GPL-2.0-or-later · 0.7 SBU · 147.9 KiB, 20 files · 43_toolkits, 132 of 344 · ports/core/kf6/kpty
Homepage: https://invent.kde.org/frameworks/kpty
Why it is in KDOS. The comment above the 61 ports from karchive to kfilemetadata in script/phases/43_toolkits/packages.d/kf6.txt:
The libraries KDE applications are built on, without Plasma.
KPty opens and drives pseudo-terminals for KDE programs: KPty and KPtyDevice own the master and slave ends, and KPtyProcess starts a program on one, with its window size and terminal modes. konsole and qmlkonsole run their shells through it, kdesu talks to sudo through it, and ark drives interactive archivers with it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, ki18n, gettext.
Required by (5): ark, kdesu, konsole, kwrited, qmlkonsole.
Sources: kpty-6.31.0.tar.xz (2.2 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kpty'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-D BUILD_TESTING=OFF \
-D CMAKE_DISABLE_FIND_PACKAGE_UTEMPTER=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_DISABLE_FIND_PACKAGE_UTEMPTER=ON— Never look for libutempter, the setgid helper that lets an unprivileged program record a terminal session inutmp. It is not a port, so the switch keeps the result from depending on what is installed in the build root. Without it KPty writes the record itself through the C library’sutmpxfunctions, which on musl record nothing, so a terminal tab does not appear inwho.-D KF_SKIP_PO_PROCESSING=ON— Build none of the gettext catalogues underpo/, whichki18n_install()would compile into.mofiles. The strings in the source are English, and the package-wide English-only rule (see Size and language policy) would remove every catalogue in another language.
Libraries: libKF6Pty.so.
Directories: /usr/include/KF6/KPty, /usr/lib/cmake/KF6Pty, /usr/share/licenses/kpty.