Thread View: linux.debian.maint.dpkg
2 messages
2 total messages
Started by James Dingwall
Mon, 26 Oct 2026 22:10
Bug#1152228: dpkg-buildpackage: 3.0 (git) format fails: dpkg-genchanges: error: cannot fstat file ../package_version.git
Author: James Dingwall
Date: Mon, 26 Oct 2026 22:10
Date: Mon, 26 Oct 2026 22:10
63 lines
4014 bytes
4014 bytes
Package: dpkg
Version: 1.23.11
Severity: normal
Dear Maintainer,
* What led up to the situation?
I am attempting to create a `dpkg-buildpackage` gitlab pipeline which creates
a .deb from the git source tree. This works in an Ubuntu 24.04 derived
container but fails when the container is from Ubuntu 26.04 or Debian Sid.
The pipeline command is: `dpkg-buildpackage -us -uc`
The last lines of the build log:
dpkg-deb: building package 'python3-example' in '../python3-example_0.0.0_all.deb'.
dpkg-genbuildinfo -O../example_0.0.0_amd64.buildinfo
dpkg-genchanges -O../example_0.0.0_amd64.changes
dpkg-genchanges: error: cannot fstat file ../example_0.0.0.git: No such file or directory
dpkg-buildpackage: error: dpkg-genchanges -O../example_0.0.0_amd64.changes subprocess failed with exit status 255
The example_0.0.0.git file exists in the git root path and not the parent
directory.
* What exactly did you do (or not do) that was effective (or
ineffective)?
I tried to patch the Git.pm perl code from the 24.04 container to 26.04 but
that did not help. The git history showed some changes for `chdir` in that
file but they appeared to relate to logging rather than functionality.
See also: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2148043
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.8.0-147-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages dpkg depends on:
ii libbz2-1.0 1.0.8-6+b2
ii libc6 2.43-7
ii liblzma5 5.8.4-1
ii libmd0 1.3.0-1
ii libselinux1 3.11-2.1
ii libzstd1 1.5.7+dfsg-4
ii zlib1g 1:1.3.dfsg+really1.3.2-3
dpkg recommends no packages.
Versions of packages dpkg suggests:
ii apt 3.3.4
pn debsig-verify <none>
-- no debconf information
Bug#1152228: dpkg-buildpackage: 3.0 (git) format fails: dpkg-genchanges: error: cannot fstat file ../package_version.git
Author: Guillem Jover
Date: Tue, 27 Oct 2026 09:20
Date: Tue, 27 Oct 2026 09:20
38 lines
3359 bytes
3359 bytes
Hi! On Mon, 2026-10-26 at 21:20:38 +0000, James Dingwall wrote: > Package: dpkg > Version: 1.23.11 > Severity: normal > * What led up to the situation? > > I am attempting to create a `dpkg-buildpackage` gitlab pipeline which creates > a .deb from the git source tree. This works in an Ubuntu 24.04 derived > container but fails when the container is from Ubuntu 26.04 or Debian Sid. > > The pipeline command is: `dpkg-buildpackage -us -uc` > > The last lines of the build log: > > dpkg-deb: building package 'python3-example' in '../python3-example_0.0.0_all.deb'. > dpkg-genbuildinfo -O../example_0.0.0_amd64.buildinfo > dpkg-genchanges -O../example_0.0.0_amd64.changes > dpkg-genchanges: error: cannot fstat file ../example_0.0.0.git: No such file or directory > dpkg-buildpackage: error: dpkg-genchanges -O../example_0.0.0_amd64.changes subprocess failed with exit status 255 > > The example_0.0.0.git file exists in the git root path and not the parent > directory. > > * What exactly did you do (or not do) that was effective (or > ineffective)? > > I tried to patch the Git.pm perl code from the 24.04 container to 26.04 but > that did not help. The git history showed some changes for `chdir` in that > file but they appeared to relate to logging rather than functionality. Indeed, thanks for the report. I've fixed this locally now. Will be included in my next push targeting the upcoming release. Thanks, Guillem
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads