Control: found -1 1.17.27
Control: retitle -1 dpkg-source: --commit does not support pathnames to the
current source tree directory
On Sat, 2026-02-07 at 18:30:23 +0100, Andreas Metzler wrote:
> Package: dpkg-dev
> Version: 1.23.5
> Severity: normal
> dpkg-source --commit stopped working:
> ametzler@argenau:/tmp/LUMINANCE-HDR$ apt source findutils
> [...]
> Fetched 2.277 kB in 1s (2.972 kB/s)
> dpkg-source: info: extracting findutils in findutils-4.10.0
> dpkg-source: info: unpacking findutils_4.10.0.orig.tar.xz
> dpkg-source: info: unpacking findutils_4.10.0-3.debian.tar.xz
> ametzler@argenau:/tmp/LUMINANCE-HDR$ cd findutils-4.10.0/
> ametzler@argenau:/tmp/LUMINANCE-HDR/findutils-4.10.0$ echo blah >> NEWS
> ametzler@argenau:/tmp/LUMINANCE-HDR/findutils-4.10.0$ dpkg-source --commit
> `pwd`
> dpkg-source: error: no upstream tarball found at
> ../findutils_4.10.0.orig.tar.{bz2,gz,lzma,xz}
> ametzler@argenau:/tmp/LUMINANCE-HDR/findutils-4.10.0$ ls
> ../findutils_4.10.0.orig.tar.{bz2,gz,lzma,xz} 2> /dev/null
> ../findutils_4.10.0.orig.tar.xz
I don't think this has ever worked, at least from the git history, and
after a quick check on jessie (which is the oldest chroot I've got
available on this box), where the option was introduced in 1.16.1:
$ dpkg-source --commit `pwd`
dpkg-source: warning: unknown information field 'Rules-Requires-Root' in
input data in general section of control info file
dpkg-source: error: no upstream tarball found at
../findutils_4.10.0.orig.tar.{bz2,gz,lzma,xz}
$ dpkg-source --version | head -1
Debian dpkg-source version 1.17.27.
What has worked since the --commit command was introduced was either
not specifying a directory or specifying it as «.».
I've fixed this now locally to handle both relative and absolute
pathnames pointing to the current source tree, and will be included in my
next push and dpkg release.
Thanks,
Guillem