Open Firstyear opened 3 months ago
I would propose a --disable-useradd feature which allows this check to be skipped when not required.
These programs are already optional (i.e. Makefile considers errors non-fatal) and I think that configure.ac should be using AC_MSG_WARN
instead of AC_MSG_ERROR
.
https://github.com/tpm2-software/tpm2-tss/blob/6c46325b466f35d40c2ed1043bfdfcfb8a367a34/Makefile.am#L987-L988
See also https://github.com/NixOS/nixpkgs/pull/317786#issuecomment-2265608736
configure.ac contains the following test
This condition is impossible to satisfy on macos as none of these group managament commands are available. Additionally, this isn't needed for vendoring/bundled of the library such as in a development workflow.
I would propose a --disable-useradd feature which allows this check to be skipped when not required.