Add OpenBSD's doas(1) support
doas(1) http://man.openbsd.org/doas is a small utility which replace sudo(1) on OpenBSD in the base system.
Add a simple cmake build option KDESU_USE_DOAS_DEFAULT
to enable doas
support and adjust suprocess parts.
Env
System
OpenBSD 6.8-beta (GENERIC.MP) #56: Wed Sep 2 10:46:22 MDT 2020
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17023250432 (16234MB)
avail mem = 16492294144 (15728MB)
Compiler
clang --version
OpenBSD clang version 10.0.1
Target: amd64-unknown-openbsd6.7
Thread model: posix
InstalledDir: /usr/bin
Qt
qmake-qt5 -v
QMake version 3.1
Using Qt version 5.13.2 in /usr/local/lib/qt5
CMake
cmake --version
cmake version 3.17.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
ctest
See compiler error message:
===> Regression tests for kdesu-5.73.0
UpdateCTestConfiguration from :/usr/ports/pobj/kdesu-5.73.0/build-amd64/DartConfiguration.tcl
UpdateCTestConfiguration from :/usr/ports/pobj/kdesu-5.73.0/build-amd64/DartConfiguration.tcl
Test project /usr/ports/pobj/kdesu-5.73.0/build-amd64
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: kdesutest
1: Test command: /usr/ports/pobj/kdesu-5.73.0/build-amd64/bin/kdesutest
1: Environment variables:
1: QT_PLUGIN_PATH=/usr/ports/pobj/kdesu-5.73.0/build-amd64/bin:
1: Test timeout computed to be: 10000000
1: ********* Start testing of KDESu::KdeSuTest *********
1: Config: Using QtTest library 5.13.2, Qt 5.13.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.1 )
1: PASS : KDESu::KdeSuTest::initTestCase()
1: PASS : KDESu::KdeSuTest::sudoGoodPassword()
1: PASS : KDESu::KdeSuTest::sudoBadPassword()
1: PASS : KDESu::KdeSuTest::suGoodPassword()
1: PASS : KDESu::KdeSuTest::suBadPassword()
1: PASS : KDESu::KdeSuTest::cleanupTestCase()
1: Totals: 6 passed, 0 failed, 0 skipped, 0 blacklisted, 682ms
1: ********* Finished testing of KDESu::KdeSuTest *********
1/1 Test #1: kdesutest ........................ Passed 0.71 sec
100% tests passed, 0 tests failed out of 1
Background Information
I am working on the KDE/Qt packages for OpenBSD. I am an active maintainer of CMake, Qt and KDE Frameworks and KDE Applications on OpenBSD. I want to help with this PR to achieve better support for KDE on OpenBSD.