package/tpm2-tss: fix build on host without useradd
PATCH 1/1 package/tpm2-tss: fix build on host without useradd
Override check for useradd as already done for setfacl since commit d9123dd79956124ab1b39427764882b61fe44261 to avoid the following build failure:
checking for useradd... no
configure: error: Missing required program 'useradd': ensure it is installed and on PATH.
Fixes:
- http://autobuild.buildroot.org/results//97bfa8f7dcb12e36bd63c9d06fb39418070d840b
--- package/tpm2-tss/tpm2-tss.mk | 1 + 1 file changed, 1 insertion(+)
package/tpm2-tss/tpm2-tss.mk +1 -0
@@ -19,6 +19,7 @@ TPM2_TSS_AUTORECONF = YES TPM2_TSS_CONF_OPTS = \ ac_cv_prog_result_groupadd=yes \ ac_cv_prog_result_setfacl=yes \ + ac_cv_prog_result_useradd=yes \ --with-crypto=ossl \ --disable-doxygen-doc \ --disable-defaultflags
Signature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedFabrice, All,
On 2021-11-09 08:10 +0100, Fabrice Fontaine spake thusly:
Quoted 6 lines
Override check for useradd as already done for setfacl since commit
d9123dd79956124ab1b39427764882b61fe44261to avoid the following build failure:checking for useradd... no
configure: error: Missing required program 'useradd': ensure it is installed and on PATH.
It is also 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.
Applied to master with those two added to the list, plus a comment to explain why, also in t e commit log. Thanks!
Regards,
Yann E. MORIN.
Quoted 27 lines
Fixes:
- http://autobuild.buildroot.org/results//97bfa8f7dcb12e36bd63c9d06fb39418070d840bSigned-off-by Fabrice Fontaine <[email protected]>--- package/tpm2-tss/tpm2-tss.mk | 1 + 1 file changed, 1 insertion(+)package/tpm2-tss/tpm2-tss.mk +1
-0@@ -19,6 +19,7 @@ TPM2_TSS_AUTORECONF = YES TPM2_TSS_CONF_OPTS = \ ac_cv_prog_result_groupadd=yes \ ac_cv_prog_result_setfacl=yes \ + ac_cv_prog_result_useradd=yes \ --with-crypto=ossl \ --disable-doxygen-doc \ --disable-defaultflagsSignature · 6 lines
2.33.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot