From 1a256280f70812d1ae23f0ce2a2569291b6609da Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Sep 2022 05:33:01 +0100 Subject: gentoo auto-resync : 25:09:2022 - 05:33:00 --- ...-1.1.0-tests-Allow-compilation-under-musl.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.1.0-tests-Allow-compilation-under-musl.patch (limited to 'app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.1.0-tests-Allow-compilation-under-musl.patch') diff --git a/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.1.0-tests-Allow-compilation-under-musl.patch b/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.1.0-tests-Allow-compilation-under-musl.patch new file mode 100644 index 000000000000..b8114b4c25c0 --- /dev/null +++ b/app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.1.0-tests-Allow-compilation-under-musl.patch @@ -0,0 +1,35 @@ +https://bugs.gentoo.org/833531 +--- a/configure.ac ++++ b/configure.ac +@@ -174,6 +174,8 @@ AC_ARG_WITH([device], + [with_device_set=no]) + AM_CONDITIONAL([TESTDEVICE],[test "x$with_device_set" = xyes]) + ++AC_CHECK_FUNC([backtrace_symbols_fd],[AC_DEFINE([HAVE_EXECINFO],[1], ['Define to 1 if you have the header file.'])]) ++ + # Integration test with simulator + AS_IF([test "x$enable_integration" = xyes && test "x$with_device_set" = xno], + [integration_args="" +--- a/test/error_tpm2-tss-engine-common.c ++++ b/test/error_tpm2-tss-engine-common.c +@@ -7,7 +7,9 @@ + #include "tpm2-tss-engine.h" + #include "tpm2-tss-engine-common.h" + ++#ifdef HAVE_EXECINFO + #include ++#endif + #include + #include + #include +@@ -17,8 +19,10 @@ TSS2_RC + __wrap_Esys_Initialize() + { + printf("Esys_Initialize called\n"); ++#ifdef HAVE_EXECINFO + void* b[128]; + backtrace_symbols_fd(b, backtrace(b, sizeof(b)/sizeof(b[0])), STDOUT_FILENO); ++#endif + return -1; + } + -- cgit v1.2.3