[Buildroot] [PATCH 1/1] package/tpm2-tss: needs host-acl

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Oct 18 20:34:58 UTC 2021


On Wed, 13 Oct 2021 08:54:46 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Add host-acl mandatory dependency for setfacl to avoid the following
> build failure since bump to version 3.1.0 in commit
> 470e2e9bc5211184431fbc868359a9d695e624f4 and
> https://github.com/tpm2-software/tpm2-tss/commit/9d42f4dbde6a94724e95d57c333cda7711dda57c:

So this commit adds:

# Check all tools used by make install
AS_IF([test "$HOSTOS" = "Linux"],
      [ERROR_IF_NO_PROG([groupadd])
       ERROR_IF_NO_PROG([useradd])
       ERROR_IF_NO_PROG([id])
       ERROR_IF_NO_PROG([chown])
       ERROR_IF_NO_PROG([chmod])
       ERROR_IF_NO_PROG([mkdir])
       ERROR_IF_NO_PROG([setfacl])])

But in the context of Buildroot, using groupadd, useradd, chown, chmod,
setfacl at install time cannot work, since we're not doing "make
install" as root.

So are we sure that adding host-acl as a dependency to get a host
variant of setfacl is really the good solution?

How is it handled for groupadd/useradd/chown/chmod today ?

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com


More information about the buildroot mailing list