* [Buildroot] [PATCH 1/1] package/tpm2-openssl: bump version to 1.3.0
@ 2026-09-11 22:10 Bernd Kuhls
2026-09-16 19:26 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2026-09-11 22:10 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
https://github.com/tpm2-software/tpm2-openssl/releases/tag/1.3.0
Updated license hash due to copyright year bump:
https://github.com/tpm2-software/tpm2-openssl/commit/3fb3a5ff7fcd9921ad6e933aed8f34e8e63d46db
Removed -Werror -Wall from Makefile.{am, in} which was added by upstream
commit https://github.com/tpm2-software/tpm2-openssl/commit/c3a8758cad1520d36d6cb87aa87ff8012f3283d8
first included in this release.
This fixes a build error seen with the Gitlab pipelines for
bootlin-aarch64-glibc-old:
src/tpm2-provider-encoder.c:
In function ‘tpm2_rsa_encoder_encode_SubjectPublicKeyInfo_der’:
src/tpm2-provider-encoder.c:86:71: error: the comparison will always
evaluate as ‘true’ for the address of ‘tpm2_rsa_encode_public_
SubjectPublicKeyInfo_der’ will never be NULL [-Werror=address]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/e66004a22a3133e7c49ede80bca9d13780df0201
package/tpm2-openssl/tpm2-openssl.hash | 4 ++--
package/tpm2-openssl/tpm2-openssl.mk | 7 ++++++-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/package/tpm2-openssl/tpm2-openssl.hash b/package/tpm2-openssl/tpm2-openssl.hash
index ee15ee885f..36ef705069 100644
--- a/package/tpm2-openssl/tpm2-openssl.hash
+++ b/package/tpm2-openssl/tpm2-openssl.hash
@@ -1,3 +1,3 @@
# Locally computed:
-sha256 2ee15da2dceae1466ffba868e75a00b119d752babc1b6a2792286336a3324fb0 tpm2-openssl-1.2.0.tar.gz
-sha256 7ffba9d66226eb67abb9747ce1cd47477d566143a8ded597bbd974c6fb5fe9f5 LICENSE
+sha256 9a9aca55d4265ec501bcf9c56d21d6ca18dba902553f21c888fe725b42ea9964 tpm2-openssl-1.3.0.tar.gz
+sha256 355dd0ed306eaba0b7397542973b0bdcce84fed036a58f94be8cf7d75f42deba LICENSE
diff --git a/package/tpm2-openssl/tpm2-openssl.mk b/package/tpm2-openssl/tpm2-openssl.mk
index ed590c2f47..5c87cc4a64 100644
--- a/package/tpm2-openssl/tpm2-openssl.mk
+++ b/package/tpm2-openssl/tpm2-openssl.mk
@@ -4,13 +4,18 @@
#
################################################################################
-TPM2_OPENSSL_VERSION = 1.2.0
+TPM2_OPENSSL_VERSION = 1.3.0
TPM2_OPENSSL_SITE = https://github.com/tpm2-software/tpm2-openssl/releases/download/$(TPM2_OPENSSL_VERSION)
TPM2_OPENSSL_LICENSE = BSD-3-Clause
TPM2_OPENSSL_LICENSE_FILES = LICENSE
TPM2_OPENSSL_INSTALL_STAGING = YES
TPM2_OPENSSL_DEPENDENCIES = host-pkgconf openssl tpm2-tss
+define TPM2_OPENSSL_DISABLE_WERROR
+ $(SED) 's/-Werror -Wall //g' -i $(@D)/Makefile.*
+endef
+TPM2_OPENSSL_PRE_CONFIGURE_HOOKS += TPM2_OPENSSL_DISABLE_WERROR
+
# Provide --with-modulesdir to avoid using abs_builddir and DESTDIR
# (also defined as absolute path) at the same time to define modules
# install path (am__installdirs).
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/tpm2-openssl: bump version to 1.3.0
2026-09-11 22:10 [Buildroot] [PATCH 1/1] package/tpm2-openssl: bump version to 1.3.0 Bernd Kuhls
@ 2026-09-16 19:26 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-09-16 19:26 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot, Romain Naour
On Sat, Sep 12, 2026 at 12:10:33AM +0200, Bernd Kuhls wrote:
> https://github.com/tpm2-software/tpm2-openssl/releases/tag/1.3.0
>
> Updated license hash due to copyright year bump:
> https://github.com/tpm2-software/tpm2-openssl/commit/3fb3a5ff7fcd9921ad6e933aed8f34e8e63d46db
>
> Removed -Werror -Wall from Makefile.{am, in} which was added by upstream
> commit https://github.com/tpm2-software/tpm2-openssl/commit/c3a8758cad1520d36d6cb87aa87ff8012f3283d8
> first included in this release.
>
> This fixes a build error seen with the Gitlab pipelines for
> bootlin-aarch64-glibc-old:
>
> src/tpm2-provider-encoder.c:
> In function ‘tpm2_rsa_encoder_encode_SubjectPublicKeyInfo_der’:
> src/tpm2-provider-encoder.c:86:71: error: the comparison will always
> evaluate as ‘true’ for the address of ‘tpm2_rsa_encode_public_
> SubjectPublicKeyInfo_der’ will never be NULL [-Werror=address]
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to master, after changing one aspect, see below.
> -TPM2_OPENSSL_VERSION = 1.2.0
> +TPM2_OPENSSL_VERSION = 1.3.0
> TPM2_OPENSSL_SITE = https://github.com/tpm2-software/tpm2-openssl/releases/download/$(TPM2_OPENSSL_VERSION)
> TPM2_OPENSSL_LICENSE = BSD-3-Clause
> TPM2_OPENSSL_LICENSE_FILES = LICENSE
> TPM2_OPENSSL_INSTALL_STAGING = YES
> TPM2_OPENSSL_DEPENDENCIES = host-pkgconf openssl tpm2-tss
>
> +define TPM2_OPENSSL_DISABLE_WERROR
> + $(SED) 's/-Werror -Wall //g' -i $(@D)/Makefile.*
> +endef
> +TPM2_OPENSSL_PRE_CONFIGURE_HOOKS += TPM2_OPENSSL_DISABLE_WERROR
I really don't like this kind of random patching, so I've replaced
this with:
+# Need to disable -Werror to avoid warnings being treated as errors
+# with some gcc versions
+TPM2_OPENSSL_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -Wno-error"
which is a lot cleaner IMO.
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-16 19:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11 22:10 [Buildroot] [PATCH 1/1] package/tpm2-openssl: bump version to 1.3.0 Bernd Kuhls
2026-09-16 19:26 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).