Package Details: gdbuspp-git 3-1

Git Clone URL: https://aur.archlinux.org/gdbuspp-git.git (read-only, click to copy)
Package Base: gdbuspp-git
Description: glib2 D-Bus C++ interface
Upstream URL: https://codeberg.org/OpenVPN/gdbuspp
Keywords: c++ d-bus glib2 openvpn
Licenses: AGPL-3.0-only
Conflicts: gdbuspp
Provides: gdbuspp
Submitter: rzvncj
Maintainer: rzvncj
Last Packager: rzvncj
Votes: 0
Popularity: 0.000000
First Submitted: 2024-05-28 10:30 (UTC)
Last Updated: 2024-12-09 22:43 (UTC)

Required by (2)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

gandriyko commented on 2024-05-29 17:40 (UTC) (edited on 2024-05-29 17:40 (UTC) by gandriyko)

when install via paru everything is OK.

But using pikaur I receive:

==> Starting check()...
ninja: Entering directory `/home/andrew/.cache/pikaur/build/gdbuspp-git/src/gdbuspp-git/build'
ninja: no work to do.
 1/10 gdbuspp:standalone / regression-glib2-utils         OK              0.00s
 2/10 gdbuspp:standalone / test-data-types-plain          OK              0.00s
 3/10 gdbuspp / test-data-types-dbus                      FAIL            2.01s   exit status 1
>>> MALLOC_PERTURB_=70 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /home/andrew/.cache/pikaur/build/gdbuspp-git/src/gdbuspp-git/tests/scripts/run-simple-server-test /home/andrew/.cache/pikaur/build/gdbuspp-git/src/gdbuspp-git/build/test_data-types --simple-service

 4/10 gdbuspp / service-tests                             FAIL            2.06s   exit status 1
>>> MALLOC_PERTURB_=190 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /home/andrew/.cache/pikaur/build/gdbuspp-git/src/gdbuspp-git/tests/scripts/run-simple-server-test /home/andrew/.cache/pikaur/build/gdbuspp-git/src/gdbuspp-git/tests/scripts/test-simple-service-1

^CWARNING: Received SIGTERM, exiting
 5/10 gdbuspp / proxy-tests                               INTERRUPT       1.04s   killed by signal 15 SIGTERM
>>> MALLOC_PERTURB_=99 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /home/andrew/.cache/pikaur/build/gdbuspp-git/src/gdbuspp-git/tests/scripts/run-simple-server-test /home/andrew/.cache/pikaur/build/gdbuspp-git/src/gdbuspp-git/tests/scripts/test-proxy

thesharkcharles commented on 2024-05-28 21:35 (UTC)

Spot on, that's absolutely fixed it. Thanks mate!

rzvncj commented on 2024-05-28 21:31 (UTC) (edited on 2024-05-28 22:16 (UTC) by rzvncj)

There was a systemd update today (which I've also applied, which made it possible to reproduce your reported issue), and it requires a machine restart. Once I've rebooted, the tests are fine.

Please reboot your machine when possible and confirm that the tests no longer fail. Thanks!

rzvncj commented on 2024-05-28 21:17 (UTC)

Thanks for the report!

I've updated the dependencies list to include python-xmltodict, and have temporarily disabled the checks until we figure out what causes the failure.

thesharkcharles commented on 2024-05-28 20:57 (UTC) (edited on 2024-05-28 20:59 (UTC) by thesharkcharles)

I've had two issues building this package:

python-xmltodict needed to be manually installed, so I think needs to be added as a dependency of this project; and some of the proxy-utils tests fail for a reason I can't discern:

==================================== 6/10 ====================================
test:         gdbuspp / proxy-utils
start time:   20:49:32
duration:     3.71s
result:       exit status 1
command:      MALLOC_PERTURB_=241 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /home/ah/.cache/yay/gdbuspp-git/src/gdbuspp-git/tests/scripts/run-simple-server-test /home/ah/.cache/yay/gdbuspp-git/src/gdbuspp-git/build/test_proxy_utils
----------------------------------- stdout -----------------------------------
Starting simple-server: ./test_simple-service
** Internal tests - DBus::Object::Manager::GetObject() / DBus::Object::Manager::GetAllObjects()
   Collected paths:
       - /gdbuspp/tests/simple1
       - /gdbuspp/tests/simple1/method_failures
       - /gdbuspp/tests/simple1/methods
       - /gdbuspp/tests/simple1/properties
   Validating paths and objects from DBus::Object::Manager::GetAllObjects()
       - Looking up /gdbuspp/tests/simple1 ... found,  object match passed
       - Looking up /gdbuspp/tests/simple1/method_failures ... found,  object match passed
       - Looking up /gdbuspp/tests/simple1/methods ... found,  object match passed
       - Looking up /gdbuspp/tests/simple1/properties ... found,  object match passed
** Internal tests PASSED

Bus name acquired: net.openvpn.gdbuspp.test.simple
Simple Service PID: 23216
-----------------------------------------------------------
###  Running test: /home/ah/.cache/yay/gdbuspp-git/src/gdbuspp-git/build/test_proxy_utils

[PASS] {result=pass, expected=pass} Expecting exception string["Service 'non.existing.service' cannot be reached"] bad proxy: non.existing.service
[PASS] {result=pass, expected=pass} Expecting exception string["Invalid DBus::Proxy::Client object"] bad query: non.existing.service
[PASS] {result=pass, expected=pass} query->CheckObjectExists('/gdbuspp/tests/simple1', 'gdbuspp.test.simple1')  -- Proxy: Proxy(Connection(BusType::SESSION), 'net.openvpn.gdbuspp.test.simple')
[PASS] {result=fail, expected=fail} query->CheckObjectExists('/nonexisting/path', 'gdbuspp.test.simple1')  -- Proxy: Proxy(Connection(BusType::SESSION), 'net.openvpn.gdbuspp.test.simple')
[PASS] {result=fail, expected=fail} query->CheckObjectExists('/gdbuspp/tests/simple1', 'no.such.interface')  -- Proxy: Proxy(Connection(BusType::SESSION), 'net.openvpn.gdbuspp.test.simple')
[PASS] {result=fail, expected=fail} query->CheckObjectExists('/nonexisting/path', 'no.such.interface')  -- Proxy: Proxy(Connection(BusType::SESSION), 'net.openvpn.gdbuspp.test.simple')
[PASS] {result=pass, expected=pass} query->ServiceVersion('/gdbuspp/tests/simple1', 'gdbuspp.test.simple1')  -- Proxy: Proxy(Connection(BusType::SESSION), 'net.openvpn.gdbuspp.test.simple')
[PASS] {result=pass, expected=pass} Expecting exception string["Object path/interface does not exists"] query->ServiceVersion('/nonexisting/path', 'no.such.interface')  -- Proxy: Proxy(Connection(BusType::SESSION), 'net.openvpn.gdbuspp.test.simple')
[PASS] {result=pass, expected=pass} query->Introspect('/gdbuspp/tests/simple1')  -- Proxy: Proxy(Connection(BusType::SESSION), 'net.openvpn.gdbuspp.test.simple')
[PASS] {result=fail, expected=fail} query->Introspect('/nonexisting/path')  -- Proxy: Proxy(Connection(BusType::SESSION), 'net.openvpn.gdbuspp.test.simple')


..
..     ## Result: FAIL
..

-----------------------------------------------------------

/home/ah/.cache/yay/gdbuspp-git/src/gdbuspp-git/tests/scripts/run-simple-server-test: Test failed: 1
----------------------------------- stderr -----------------------------------
** EXCEPTION **  [Proxy::Utils::DBusQuery] Failed querying service 'org.freedesktop.systemd1': The name is not activatable
** EXCEPTION **  RawError: 'Failed querying service 'org.freedesktop.systemd1': The name is not activatable'
==============================================================================