[Buildroot] [RESEND PATCH 8/8] package/tpm2-tss: Correctly depend on util-linux-libs for fapi support

John Ernberg john.ernberg at actia.se
Tue May 19 08:30:03 UTC 2026


Hi Arnout,

On 5/18/26 10:00 PM, Arnout Vandecappelle wrote:
> 
> 
> On 10/05/2026 21:38, John Ernberg wrote:
>> tpm2-tss is a dependency of systemd, which when enabled becomes a
>> dependency of util-linux.
>>
>> tpm2-tss only really wants libuuid, so depend on util-linux-libs instead
>> breaking the dependency cycle.
>>
>> Signed-off-by: John Ernberg <j at j-ernberg.se>
>> ---
>>
>> RESEND:
>>   - Forgot to subscribe this e-mail to the list
>>
>>   package/tpm2-tss/tpm2-tss.mk | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/package/tpm2-tss/tpm2-tss.mk b/package/tpm2-tss/tpm2-tss.mk
>> index 08ff401328..11da37a5b4 100644
>> --- a/package/tpm2-tss/tpm2-tss.mk
>> +++ b/package/tpm2-tss/tpm2-tss.mk
>> @@ -33,7 +33,7 @@ TPM2_TSS_CONF_OPTS = \
>>   TPM2_TSS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"
>>
>>   ifeq ($(BR2_PACKAGE_TPM2_TSS_FAPI),y)
>> -TPM2_TSS_DEPENDENCIES += json-c libcurl util-linux
>> +TPM2_TSS_DEPENDENCIES += json-c libcurl util-linux-libs
> 
>   This also requires selecting UTIL_LINUX_LIBS in Config.in, otherwise 
> you get
> the following error when only tpm2-tss is selected (and not e.g. systemd).
> 
> *** util-linux-libs is in the dependency chain of tpm2-tss that has 
> added it to
> its _DEPENDENCIES variable without selecting it or depending on it from 
> Config.in.
> 

I did not see that error when I was testing my patch. Is there something 
specific I can run that I overlooked to better catch these things before 
sending the patches?

Thanks! // John Ernberg


More information about the buildroot mailing list