Source: tpm2-pytss
Version: 2.2.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240615 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=pybuild --with python3,sphinxdoc
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" 
> module
> I: pybuild base:311: python3.12 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tpm2_pytss  
> * Building wheel...
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:27: SyntaxWarning: invalid escape 
> sequence '\('
>   s = re.sub("#define TSS2_RC_LAYER\(level\).*", "", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:28: SyntaxWarning: invalid escape 
> sequence '\('
>   s = re.sub("(#define.*)TSS2_RC_LAYER\(0xff\)", "\g<1>0xff0000", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:28: SyntaxWarning: invalid escape 
> sequence '\g'
>   s = re.sub("(#define.*)TSS2_RC_LAYER\(0xff\)", "\g<1>0xff0000", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:31: SyntaxWarning: invalid escape 
> sequence '\*'
>   s = re.sub("/\*.*?\*/", "", s, flags=re.MULTILINE)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:34: SyntaxWarning: invalid escape 
> sequence '\('
>   s = re.sub("(#define [A-Za-z0-9_]+) +\(\(.*?\) \(.*?\)\)", "\g<1>...", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:34: SyntaxWarning: invalid escape 
> sequence '\g'
>   s = re.sub("(#define [A-Za-z0-9_]+) +\(\(.*?\) \(.*?\)\)", "\g<1>...", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:35: SyntaxWarning: invalid escape 
> sequence '\('
>   s = re.sub("(#define [A-Za-z0-9_]+) +\(\(.*?\).*?\) ", "\g<1>...", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:35: SyntaxWarning: invalid escape 
> sequence '\g'
>   s = re.sub("(#define [A-Za-z0-9_]+) +\(\(.*?\).*?\) ", "\g<1>...", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:37: SyntaxWarning: invalid escape 
> sequence '\)'
>   "(#define [A-Za-z0-9_]+) .*\n.*?.*\)\)", "\g<1>...", s, flags=re.MULTILINE
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:37: SyntaxWarning: invalid escape 
> sequence '\g'
>   "(#define [A-Za-z0-9_]+) .*\n.*?.*\)\)", "\g<1>...", s, flags=re.MULTILINE
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:39: SyntaxWarning: invalid escape 
> sequence '\g'
>   s = re.sub("(#define [A-Za-z0-9_]+) .*", "\g<1>...", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:42: SyntaxWarning: invalid escape 
> sequence '\['
>   s = re.sub("\[.+?\]", "[...]", s)
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:77: SyntaxWarning: invalid escape 
> sequence '\)'
>   "#define TPM2_MAX_TAGGED_POLICIES.*\n.*TPMS_TAGGED_POLICY\)\)",
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:270: SyntaxWarning: invalid 
> escape sequence '\s'
>   "TSS2_RC\s+Tss2_MU_BYTE_Marshal\(.+?\);", s, re.DOTALL | re.MULTILINE
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:274: SyntaxWarning: invalid 
> escape sequence '\s'
>   "TSS2_RC\s+Tss2_MU_BYTE_Marshal\(.+?\);", "", s, 1, re.DOTALL | re.MULTILINE
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:278: SyntaxWarning: invalid 
> escape sequence '\s'
>   "TSS2_RC\s+Tss2_MU_BYTE_Unmarshal\(.+?\);", s, re.DOTALL | re.MULTILINE
> /<<PKGBUILDDIR>>/scripts/prepare_headers.py:282: SyntaxWarning: invalid 
> escape sequence '\s'
>   "TSS2_RC\s+Tss2_MU_BYTE_Unmarshal\(.+?\);",
> adding path: /<<PKGBUILDDIR>>/scripts
> Traceback (most recent call last):
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 373, in <module>
>     main()
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 357, in main
>     json_out["return_val"] = hook(**hook_input["kwargs"])
>                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 271, in build_wheel
>     return _build_backend().build_wheel(
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 434, 
> in build_wheel
>     return self._build_with_temp_dir(
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 419, 
> in _build_with_temp_dir
>     self.run_setup()
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 341, 
> in run_setup
>     exec(code, locals())
>   File "<string>", line 285, in <module>
>   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 107, in 
> setup
>     return distutils.core.setup(**attrs)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 
> 147, in setup
>     _setup_distribution = dist = klass(attrs)
>                                  ^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 485, in 
> __init__
>     _Distribution.__init__(
>   File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 
> 283, in __init__
>     self.finalize_options()
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 926, in 
> finalize_options
>     ep(self)
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 946, in 
> _finalize_setup_keywords
>     ep.load()(self, ep.name, value)
>   File "/usr/lib/python3/dist-packages/cffi/setuptools_ext.py", line 216, in 
> cffi_modules
>     add_cffi_module(dist, cffi_module)
>   File "/usr/lib/python3/dist-packages/cffi/setuptools_ext.py", line 49, in 
> add_cffi_module
>     execfile(build_file_name, mod_vars)
>   File "/usr/lib/python3/dist-packages/cffi/setuptools_ext.py", line 25, in 
> execfile
>     exec(code, glob, glob)
>   File "scripts/libtss2_build.py", line 69, in <module>
>     ffibuilder.cdef(open("libesys.h").read())
>   File "/usr/lib/python3/dist-packages/cffi/api.py", line 112, in cdef
>     self._cdef(csource, override=override, packed=packed, pack=pack)
>   File "/usr/lib/python3/dist-packages/cffi/api.py", line 126, in _cdef
>     self._parser.parse(csource, override=override, **options)
>   File "/usr/lib/python3/dist-packages/cffi/cparser.py", line 389, in parse
>     self._internal_parse(csource)
>   File "/usr/lib/python3/dist-packages/cffi/cparser.py", line 396, in 
> _internal_parse
>     self._process_macros(macros)
>   File "/usr/lib/python3/dist-packages/cffi/cparser.py", line 479, in 
> _process_macros
>     raise CDefError(
> cffi.CDefError: only supports one of the following syntax:
>   #define TPM2_HR_PCR ...     (literally dot-dot-dot)
>   #define TPM2_HR_PCR NUMBER  (with NUMBER an integer constant, 
> decimal/hex/octal)
> got:
>   #define TPM2_HR_PCR ...<< TPM2_HR_SHIFT)
> 
> ERROR Backend subprocess exited when trying to invoke build_wheel
> E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: 
> python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tpm2_pytss  
> I: pybuild plugin_pyproject:129: Building wheel for python3.11 with "build" 
> module
> I: pybuild base:311: python3.11 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tpm2_pytss  
> * Building wheel...
> adding path: /<<PKGBUILDDIR>>/scripts
> Traceback (most recent call last):
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 373, in <module>
>     main()
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 357, in main
>     json_out["return_val"] = hook(**hook_input["kwargs"])
>                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 271, in build_wheel
>     return _build_backend().build_wheel(
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 434, 
> in build_wheel
>     return self._build_with_temp_dir(
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 419, 
> in _build_with_temp_dir
>     self.run_setup()
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 341, 
> in run_setup
>     exec(code, locals())
>   File "<string>", line 285, in <module>
>   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 107, in 
> setup
>     return distutils.core.setup(**attrs)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 
> 147, in setup
>     _setup_distribution = dist = klass(attrs)
>                                  ^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 485, in 
> __init__
>     _Distribution.__init__(
>   File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 
> 283, in __init__
>     self.finalize_options()
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 926, in 
> finalize_options
>     ep(self)
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 946, in 
> _finalize_setup_keywords
>     ep.load()(self, ep.name, value)
>   File "/usr/lib/python3/dist-packages/cffi/setuptools_ext.py", line 216, in 
> cffi_modules
>     add_cffi_module(dist, cffi_module)
>   File "/usr/lib/python3/dist-packages/cffi/setuptools_ext.py", line 49, in 
> add_cffi_module
>     execfile(build_file_name, mod_vars)
>   File "/usr/lib/python3/dist-packages/cffi/setuptools_ext.py", line 25, in 
> execfile
>     exec(code, glob, glob)
>   File "scripts/libtss2_build.py", line 69, in <module>
>     ffibuilder.cdef(open("libesys.h").read())
>   File "/usr/lib/python3/dist-packages/cffi/api.py", line 112, in cdef
>     self._cdef(csource, override=override, packed=packed, pack=pack)
>   File "/usr/lib/python3/dist-packages/cffi/api.py", line 126, in _cdef
>     self._parser.parse(csource, override=override, **options)
>   File "/usr/lib/python3/dist-packages/cffi/cparser.py", line 389, in parse
>     self._internal_parse(csource)
>   File "/usr/lib/python3/dist-packages/cffi/cparser.py", line 396, in 
> _internal_parse
>     self._process_macros(macros)
>   File "/usr/lib/python3/dist-packages/cffi/cparser.py", line 479, in 
> _process_macros
>     raise CDefError(
> cffi.CDefError: only supports one of the following syntax:
>   #define TPM2_HR_PCR ...     (literally dot-dot-dot)
>   #define TPM2_HR_PCR NUMBER  (with NUMBER an integer constant, 
> decimal/hex/octal)
> got:
>   #define TPM2_HR_PCR ...<< TPM2_HR_SHIFT)
> 
> ERROR Backend subprocess exited when trying to invoke build_wheel
> E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: 
> python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tpm2_pytss  
> dh_auto_build: error: pybuild --build -i python{version} -p "3.12 3.11" 
> returned exit code 13
> make: *** [debian/rules:17: binary] Error 25


The full build log is available from:
http://qa-logs.debian.net/2024/06/15/tpm2-pytss_2.2.1-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to