Article View: linux.debian.bugs.dist
Article #2279Bug#1152228: dpkg-buildpackage: 3.0 (git) format fails: dpkg-genchanges: error: cannot fstat file ../package_version.git
From: James Dingwall
Date: Mon, 26 Oct 2026 22:10
Date: Mon, 26 Oct 2026 22:10
63 lines
3931 bytes
3931 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
Technical Details
Message-ID:
<NSB3b-85qU-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: James Dingwall <james-debian@dingwall.me.uk> Newsgroups: linux.debian.bugs.dist,linux.debian.maint.dpkg Subject: Bug#1152228: dpkg-buildpackage: 3.0 (git) format fails: dpkg-genchanges: error: cannot fstat file ../package_version.git Date: Mon, 26 Oct 2026 23:10:01 +0100 Message-ID: <NSB3b-85qU-3@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 26 22:01:45 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.65 Reply-To: James Dingwall <james-debian@dingwall.me.uk>, 1152228@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-dpkg@lists.debian.org X-Debian-Pr-Message: report 1152228 X-Debian-Pr-Package: dpkg X-Debian-Pr-Source: dpkg Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 13.2.0+nmu1 X-Originating-Smarthost01c-IP: [217.155.64.189] Feedback-ID: 217.155.64.189 X-Greylist: delayed 2275 seconds by postgrey-1.37 at buxtehude; Mon, 26 Oct 2026 21:58:43 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999107 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 63 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 26 Oct 2026 21:20:38 +0000 X-Original-Message-ID: <179304963833.319.204719647134601431.reportbug@7a1bb118bc8b>