Package: dh-debputy
Version: 0.1.60.1
Severity: normal

Hi!

When trying to convert one of the packages I maintain, dynarmic, to debputy, I've encountered this issue. I don't really know what is causing it, so I'll just give you logs and a reproducer and hope for the best :)

To reproduce:

   $ git clone -b debian/debputy g...@salsa.debian.org:debian/dynarmic.git
   $ DEBPUTY_DEBUG=1 DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage 
--diff-ignore=.git
   [...]
   debputy: warning: Re-raising original exception to show the full stack trace 
due to debug mode being active
      cd _build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None 
-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var 
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON 
-DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON 
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON -GNinja -DCMAKE_VERBOSE_MAKEFILE=ON 
-DBUILD_TESTING:BOOL=OFF -DBUILD_SHARED_LIBS=true 
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=true -DCMAKE_POLICY_DEFAULT_CMP0069=NEW 
-DDYNARMIC_IGNORE_ASSERTS=true -DDYNARMIC_TESTS_USE_UNICORN=false 
-DDYNARMIC_USE_LLVM=true -DDYNARMIC_USE_PRECOMPILED_HEADERS=false ..
      cd _build && ninja -j12 -v
      cmake --install _build
   Traceback (most recent call last):
     File "/usr/bin/debputy", line 8, in <module>
       main()
     File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", 
line 1124, in main
       _error_w_stack_trace(
     File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", 
line 1146, in _error_w_stack_trace
       raise orig_exception if orig_exception is not None else stacktrace
     File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", 
line 1045, in main
       ROOT_COMMAND(cmd_arg)
     File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line 
703, in __call__
       self._aliases[v](command_arg)
     File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line 
703, in __call__
       self._aliases[v](command_arg)
     File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line 
534, in __call__
       return self._handler(context)
              ^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", 
line 715, in _dpkg_build_driver_integration
       assemble(
     File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", 
line 786, in assemble
       package_data_table = manifest.perform_installations(integration_mode)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/share/dh-debputy/debputy/highlevel_manifest.py", line 1411, in 
perform_installations
       install_rule.perform_install(
     File "/usr/share/dh-debputy/debputy/installations.py", line 1101, in 
perform_install
       matches = self._match_pattern(
                 ^^^^^^^^^^^^^^^^^^^^
     File "/usr/share/dh-debputy/debputy/installations.py", line 620, in 
_match_pattern
       (matched, exclude_counts) = path_matcher.find_and_reserve_all_matches(
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/share/dh-debputy/debputy/installations.py", line 410, in 
find_and_reserve_all_matches
       for match in _resolve_path(
                    ^^^^^^^^^^^^^^
     File "/usr/share/dh-debputy/debputy/installations.py", line 483, in 
_resolve_path
       for matched_path in match_rule.finditer(
                           ^^^^^^^^^^^^^^^^^^^^
     File "/usr/share/dh-debputy/debputy/path_matcher.py", line 490, in finditer
       search_history = list(next_layer)
                        ^^^^^^^^^^^^^^^^
     File "/usr/share/dh-debputy/debputy/path_matcher.py", line 72, in 
_apply_match
       yield from (p for p in fs_path.iterdir if match_part(p.name))
     File "/usr/share/dh-debputy/debputy/path_matcher.py", line 72, in <genexpr>
       yield from (p for p in fs_path.iterdir if match_part(p.name))
                                                 ^^^^^^^^^^^^^^^^^^
   TypeError: 'tuple' object is not callable

Attachment: signature.asc
Description: PGP signature

Reply via email to