Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KDE Su
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Frameworks
  • KDE Su
  • Merge requests
  • !5

Add OpenBSD's doas(1) support

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Rafael Sadowski requested to merge rsadowski/kdesu:openbsd-doas-support into master Sep 05, 2020
  • Overview 18
  • Commits 4
  • Changes 5

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.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: openbsd-doas-support