Debian Patches

Status for tpm2-tss/4.0.1-7.2

Patch Description Author Forwarded Bugs Origin Last update
0001_disable_fapi_io_test.patch Temporarily disable fapi-io tests This unit test is not working. And it actually doesn't affect anything.
Disable it until upstream fixes this.
===================================================================
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> not-needed upstream
0002-fix-version.patch Extract the version from the Debian changelog Upstream uses the VCS to get the correct version in the build system, but we're using tarballs.
This patch uses a similar mechanism but extracts the version from the packaging instead.
Simon Chopin <simon.chopin@canonical.com> not-needed 2022-03-01
0003-test-unit-tcti-libtpms-fix-test-failed-at-32-bit-pla.patch [PATCH] test: unit: tcti-libtpms: fix test failed at 32-bit platforms.

When running the test on 32-bit platforms, we should not convert
pointers to integers. expect_value() will convert the cmd to an
integer value thus we should use expect_memory() instead.
"Ying-Chun Liu (PaulLiu)" <paulliu@debian.org> no 2023-07-11
0004-tss2-tcti-tcti-libtpms-fix-test-failure-on-big-endia.patch [PATCH] tss2-tcti: tcti-libtpms: fix test failure on big-endian platform

Due to tcti_libtpms->response_len and tcti_libtpms->response_buffer_len
are size_t. We cannot convert the (size_t *) to (uint32_t *) on big-endian
platforms. Thus we create temp uint32_t variables. Make the call and
then assign it back to size_t variables.

This commit partially fix the test failure on big-endian platforms.
"Ying-Chun Liu (PaulLiu)" <paulliu@debian.org> no 2023-08-06
fix-tcti-spi-helper-big-endian.patch uint32_t is converted to a void* buffer. We need to convert it back to the correct endianess. Lukas Märdian <slyon@ubuntu.com> yes debian upstream 2023-08-22
disable-tests-on-big-endian.patch The test files (binaries) for IMA and system events contain little endian integers which are assigned to the big endian integers with memcpy.
The conversion has to be fixed.
Lukas Märdian <slyon@ubuntu.com> not-needed debian upstream 2023-08-22
skip-tests-which-fail-on-32-bit.patch [PATCH] unit tests: skip tests which fail on 32-bit with _FILE_BITS=64

Tests file the unit tests are compiled with _FILE_BITS is set to 64.
The tests work without problems if _FILE_BITS is not set.
Juergen Repp <juergen_repp@web.de> no 2024-03-17

All known versions for source package 'tpm2-tss'

Links