Package: devscripts Version: 2.23.4 User: [email protected] Usertags: origin-ubuntu mantic ubuntu-patch
If the version of a package is 0, then mk-build-deps creates $src-build-deps_1.0_all.deb instead of $src-build-deps_0_all.deb. If -i is used, then it additionally attempts to install $src-build-deps_0_all.deb, and this fails because of the previous unexpected output. AIUI, 0 is a perfectly valid package version according to Debian Policy, and so should work. This came up because I used 0 in a template. Of course it wouldn't last long in a real package! Minimal steps to reproduce: # mkdir debian # cat > debian/changelog test (0) UNRELEASED; urgency=medium * Test mk-build-deps -- Robie Basak <[email protected]> Thu, 01 Jun 2023 16:03:13 +0000 # cat > debian/control Source: test Build-Depends: hello # mk-build-deps -i -r dpkg-buildpackage: info: source package test-build-deps dpkg-buildpackage: info: source version 1.0 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@rbasak-mkbd> dpkg-buildpackage: info: host architecture amd64 dpkg-source --before-build . debian/rules clean dh clean dh_clean debian/rules binary dh binary dh_update_autotools_config dh_autoreconf create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install --destdir=debian/test-build-deps/ dh_install dh_installdocs dh_installchangelogs dh_perl dh_link dh_strip_nondeterminism dh_compress dh_fixperms dh_missing dh_installdeb dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package 'test-build-deps' in '../test-build-deps_1.0_all.deb'. dpkg-genbuildinfo --build=binary -O../test-build-deps_1.0_amd64.buildinfo dpkg-genchanges --build=binary -O../test-build-deps_1.0_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) The package has been created. Attention, the package has been created in the current directory, not in ".." as indicated by the message above! dpkg: error: cannot access archive 'test-build-deps_0_all.deb': No such file or directory mk-build-deps: dpkg --unpack failed

