tinydtls package has undeclared dependencies #13121
Labels
Area: build system
Area: Build system
Area: pkg
Area: External package ports
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
When tinydtls is added to a minimal example, it won't build until some additional modules are enabled manually.
That's not a problem most of the time (when tinydtls is used as a DTLS library, there's bound to be something else that pulls in UDP sockets), but when using it only for its crypto primitives (like in bergzand/libcose#91), that's not the case.
Steps to reproduce the issue
In the hello-world example, add
USEPKG += tinydtls
underQUIET ?= 1
andmake all
Expected results
tinydtls pulls in any dependencies it has, or (if it can't make sane default decisions) errs at dependency checking time, telling the user to make a particular choice.
Actual results
As a workaround, you can add
USEMODULE += gnrc_sock
. That shifs the error towhich can be mitigated by a
USEMODULE += gnrc_ipv6
.Versions
Tested on Linux with native board and current RIOT master (7430ea9).
Steps forward
If the respective code sections are necessary for tinyDTLS to be buildable at all, please add dependencies from the pkg to the modules.
Otherwise, ifdef fences around them could allow slimmer builds for tinydtls-as-crypto-primitive cases (but I do see that they are corner cases right now, so "depend on the module with a note that the dependency could probably removed by putting more work into it" would work fine for me as well).
The text was updated successfully, but these errors were encountered: