package/tpm2-tss: override auto-detection of groupadd and systemd
tpm2-tss is looking for systemd_sysusers and systemd_tmpfiles, but those two are not mandatory. However, it might find those from the host. But that is not an issue in the end, because they are only used to instanciate the users and create the tmpfiles. At build time on the host, we do not need them, and on the target, if systemd is being used, then they will be instanciated/created at boot. If they are not found, then the fallback paths are taken, and those fallback paths are those using the setfacl and groupadd and useradd tools, which we already know are going to fail but that we do not care. So, we can safely force those two to =no to avoid the install trying to use the system-wide tools, or even the ones we build as part of host-systemd ourselves. Eventually, when systemd-tmpfiles of systemd-sysusers are missing, the fallback paths use useradd, and configure unconditionally checks for it, so as for groupadd and setfacl in commits d9123dd7 (package/tpm2-tss: fix build on host without setfacl) and c8f847c4 (package/tpm2-tss: fix build on host without groupadd), we just fake the detection of groupadd. Fixes: - http://autobuild.buildroot.org/results//97bfa8f7dcb12e36bd63c9d06fb39418070d840b Signed-off-by:Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by:
Yann E. MORIN <yann.morin.1998@free.fr>
Loading
Please register or sign in to comment