domoticz: fix build and add test.sh
authorAlexandru Ardelean <redacted>
Tue, 28 Apr 2026 05:39:57 +0000 (08:39 +0300)
committerAlexandru Ardelean <redacted>
Sun, 3 May 2026 17:59:28 +0000 (20:59 +0300)
commitb6f828b331a8d73c73daca9707173160c02603b7
tree499bab709da569cee078d0d5ae66ca35ed014890
parentc3edf23676067b76f75ecef0ee8aa03cd6513a02
domoticz: fix build and add test.sh

boost::asio::post() without an explicit executor fails to compile with
Boost >= 1.82 due to changes in the executor model: bare lambdas no
longer have an implicit system executor that satisfies the
blocking.never requirement.

Pass io_context_ explicitly as the first argument so the handler is
dispatched on the correct io_context thread, which is the original
intent of the call (making stop() safe to call from any thread).

Add test.sh
domoticz is a daemon requiring a database and network port; it does not
implement a --version flag. Verify the binary is present and executable.

Disable LTO to fix link failure on i386 with musl fortify
Suggested via https://github.com/openwrt/packages/pull/29239
Also tested.

Signed-off-by: Alexandru Ardelean <redacted>
utils/domoticz/Makefile
utils/domoticz/patches/002-fix-boost-asio-post-executor.patch [new file with mode: 0644]
utils/domoticz/test.sh [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT