Package: dh-debputy
Version: 0.1.23
Severity: normal

I've tried to convert the cpuid package to dh-sequence-zz-debputy, when
building it I got:

   dh_debputy
debputy: info: Loaded plugin debputy
debputy: info: The following directories are considered search dirs (in order):
debputy: info:  * debian/tmp  (skipped; absent)
debputy: info:  * .
debputy: info: The following directories are considered for "not-installed"
paths;
debputy: info:  * debian/tmp (skipped; absent)
debputy: info: Looking up build-ids via: file -00 -N
/<<PKGBUILDDIR>>/debian/.debhelper/_debputy/scratch-dir/_pb-615671/generated-
fs-content/no-package/tmpqr8svzjr__cpuid
debputy: info: Removing unnecessary ELF debug info via: strip --remove-
section=.comment --remove-section=.note
/<<PKGBUILDDIR>>/debian/.debhelper/_debputy/scratch-dir/_pb-615671/generated-
fs-content/no-package/tmpqr8svzjr__cpuid
debputy: info: Ensuring manpages have utf-8 encoding via: man-recode --to-code
UTF-8 --suffix .encoded /<<PKGBUILDDIR>>/debian/.debhelper/_debputy/scratch-
dir/_pb-615671/generated-fs-content/no-package/tmp7zgxlblf__cpuid.1.gz
/<<PKGBUILDDIR>>/debian/.debhelper/_debputy/scratch-dir/_pb-615671/generated-
fs-content/no-package/tmp8zbqi23u__cpuinfo2cpuid.1.gz
debputy: warning: Unhandled exception (Re-run with --debug to see the raw stack
trace)
debputy: warning:   ----- 8< ---- BEGIN STACK TRACE ---- 8< -----
Traceback (most recent call last):
  File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", line
1459, in main
    ROOT_COMMAND(cmd_arg)
  File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line
609, in __call__
    self._aliases[v](command_arg)
  File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line
609, in __call__
    self._aliases[v](command_arg)
  File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line
442, in __call__
    return self._handler(context)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", line
749, in _dh_integration_generate_debs
    run_package_processors(manifest, package_metadata_context, fs_root)
  File "/usr/share/dh-debputy/debputy/deb_packaging_support.py", line 826, in
run_package_processors
    pppp.run_package_processor(fs_root, None, package_metadata_context)
  File "/usr/share/dh-debputy/debputy/plugin/api/impl_types.py", line 788, in
run_package_processor
    self.package_processor(fs_root, unused, context)
  File "/usr/share/dh-debputy/debputy/plugin/debputy/package_processors.py",
line 120, in process_manpages
    os.rename(f"{manpage}.encoded", manpage)
FileNotFoundError: [Errno 2] No such file or directory:
'/<<PKGBUILDDIR>>/debian/.debhelper/_debputy/scratch-dir/_pb-615671/generated-
fs-content/no-package/tmp7zgxlblf__cpuid.1.gz.encoded' ->
'/<<PKGBUILDDIR>>/debian/.debhelper/_debputy/scratch-dir/_pb-615671/generated-
fs-content/no-package/tmp7zgxlblf__cpuid.1.gz'


Note that cpuid.1 is not mentioned in the packaging. It's installed to
debian/cpuid/usr/share/man/man1/cpuid.1.gz at the moment of the error.

All changes:

diff --git a/debian/control b/debian/control
index bc4f9ac..83f15f5 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: cpuid
 Section: admin
 Priority: optional
 Maintainer: Andrey Rahmatullin <w...@debian.org>
-Build-Depends: debhelper-compat (= 13)
+Build-Depends: debhelper-compat (= 13), dh-sequence-zz-debputy
 Standards-Version: 4.6.1
 Vcs-Git: https://salsa.debian.org/debian/cpuid.git
 Vcs-Browser: https://salsa.debian.org/debian/cpuid
@@ -11,7 +11,6 @@ Rules-Requires-Root: no

 Package: cpuid
 Architecture: any-i386 any-amd64
-Depends: ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends}
 Description: tool to dump x86 CPUID information about the CPU(s)
  cpuid dumps detailed information about the CPU(s) gathered from the
  CPUID instruction, and also determines the exact model of CPU(s). It
diff --git a/debian/debputy.manifest b/debian/debputy.manifest
new file mode 100644
index 0000000..669437f
--- /dev/null
+++ b/debian/debputy.manifest
@@ -0,0 +1,4 @@
+manifest-version: '0.1'
+installations:
+- install-docs:
+    source: FUTURE
diff --git a/debian/docs b/debian/docs
deleted file mode 100644
index 3cb5077..0000000
--- a/debian/docs
+++ /dev/null
@@ -1 +0,0 @@
-FUTURE


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.7.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-debputy depends on:
ii  debhelper             13.15.3
ii  man-db                2.12.0-3+b1
ii  perl                  5.38.2-3.2
ii  python3               3.11.8-1
ii  python3-colored       2.2.3-1
ii  python3-colorlog      6.8.2-1
ii  python3-debian        0.1.49
ii  python3-ruamel.yaml   0.17.21-1
ii  strip-nondeterminism  1.13.1-1

Versions of packages dh-debputy recommends:
ii  python3-argcomplete  3.1.4-1

Versions of packages dh-debputy suggests:
pn  hunspell-en-us      <none>
pn  python3-hunspell    <none>
pn  python3-lsprotocol  <none>
pn  python3-pygls       <none>

-- no debconf information

Reply via email to