python3Packages.tpm2-pytss: disable hardening

Hardening got enabled in #246244 in a way that makes it difficult to disable for
projects to disable selectively. The fix used in #245139 (and provided upstream)
no longer works, and we need to disable hardening entirely to make `pycparser`
which is unable to handle fortify bits.

Fixes #252023.

Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
This commit is contained in:
Arthur Gautier
2023-09-01 23:09:34 +02:00
committed by Raito Bezarius
parent c73d9b18e6
commit 29afe51230
@@ -63,6 +63,14 @@ buildPythonPackage rec {
sed -i "s#@TPM2_TSS@#${tpm2-tss.out}#" src/tpm2_pytss/FAPI.py
'';
# Hardening has to be disabled
# due to pycparsing handling it poorly.
# See https://github.com/NixOS/nixpkgs/issues/252023
# for more details.
hardeningDisable = [
"fortify"
];
nativeBuildInputs = [
cffi
pkgconfig # this is the Python module