kumquat-buildroot/package/tpm2-tss/tpm2-tss.mk
Fabrice Fontaine d1fc278f6d Revert "package/tpm2-tss: bump version to 3.2.0"
This reverts commit ed13a65a08 as it
has the following non trivial issues:
 - pkgconfig files have no version number if we run autoreconf
   (https://github.com/tpm2-software/tpm2-tss/issues/2329) resulting in
   the following build failures with tpm2-{abrmd,pkcs11} or libsecret:

   configure: error: Package requirements (tss2-esys >= 2.0) were not met:

   Package dependency requirement 'tss2-esys >= 2.0' could not be satisfied.
   Package 'tss2-esys' has version '', required version is '>= 2.0'

 - addgroup/groupadd and adduser/useradd are mandatory since
   7fde604383:

    configure: error: addgroup or groupadd are needed.

It seems better to find an upstreamable solution to both issues before
bumping.

Fixes:
 - http://autobuild.buildroot.org/results/d4d6807af3493deb47951c6f11f427040e5c5e11
 - http://autobuild.buildroot.org/results/a304e45bacb8cd7e7ea9bc49e4a8ec9359ca0a3a
 - http://autobuild.buildroot.org/results/be0befa81e955ac8cf16f9d20723f9b9b174e012
 - http://autobuild.buildroot.org/results/d4ebee400423f6df51613193c86db3c58c94ff88

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-04-04 09:27:21 +02:00

45 lines
1.5 KiB
Makefile

################################################################################
#
# tpm2-tss
#
################################################################################
TPM2_TSS_VERSION = 3.1.0
TPM2_TSS_SITE = https://github.com/tpm2-software/tpm2-tss/releases/download/$(TPM2_TSS_VERSION)
TPM2_TSS_LICENSE = BSD-2-Clause
TPM2_TSS_LICENSE_FILES = LICENSE
TPM2_TSS_CPE_ID_VENDOR = tpm2_software_stack_project
TPM2_TSS_CPE_ID_PRODUCT = tpm2_software_stack
TPM2_TSS_INSTALL_STAGING = YES
TPM2_TSS_DEPENDENCIES = openssl host-pkgconf
# 0001-configure-Only-use-CXX-when-fuzzing.patch
TPM2_TSS_AUTORECONF = YES
# systemd-sysusers and systemd-tmpfiles are only used at install time
# to trigger the creation of users adn tmpfiles, which we do not care
# about at build time. groupadd, useradd, and setfacl are used in the
# fallback path when systemd-sysusers or systemd-tmpfiles are missing
# and their failure is ignored anyway.
TPM2_TSS_CONF_OPTS = \
ac_cv_prog_result_groupadd=yes \
ac_cv_prog_result_setfacl=yes \
ac_cv_prog_systemd_sysusers=no \
ac_cv_prog_systemd_tmpfiles=no \
ac_cv_prog_result_useradd=yes \
--with-crypto=ossl \
--disable-doxygen-doc \
--disable-defaultflags
# uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used
TPM2_TSS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"
ifeq ($(BR2_PACKAGE_TPM2_TSS_FAPI),y)
TPM2_TSS_DEPENDENCIES += json-c libcurl
TPM2_TSS_CONF_OPTS += --enable-fapi
else
TPM2_TSS_CONF_OPTS += --disable-fapi
endif
$(eval $(autotools-package))