Article View: linux.debian.maint.dpkg
Article #4Bug#1152228: dpkg-buildpackage: 3.0 (git) format fails: dpkg-genchanges: error: cannot fstat file ../package_version.git
From: 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
Technical Details
Message-ID:
<NSLvz-8d5x-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NSB3b-85qU-3@gated-at.bofh.it> <NSB3b-85qU-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Guillem Jover <guillem@debian.org> 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: Tue, 27 Oct 2026 10:20:01 +0100 Message-ID: <NSLvz-8d5x-3@gated-at.bofh.it> References: <NSB3b-85qU-3@gated-at.bofh.it> <NSB3b-85qU-3@gated-at.bofh.it> X-Original-To: James Dingwall <james-debian@dingwall.me.uk>, 1152228@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Oct 27 09:15:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Guillem Jover <guillem@debian.org>, 1152228@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-dpkg@lists.debian.org X-Debian-Pr-Message: followup 1152228 X-Debian-Pr-Package: dpkg X-Debian-Pr-Source: dpkg MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999144 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 38 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 27 Oct 2026 10:13:15 +0100 X-Original-Message-ID: <auBrK5kdVtPdB6Qh@thunder.hadrons.org> X-Original-References: <179304963833.319.204719647134601431.reportbug@7a1bb118bc8b> <179304963833.319.204719647134601431.reportbug@7a1bb118bc8b>