Package: dgit
Version: 12.4
Severity: whishlist

Hi! I'm experimenting a bit with the new debputy build driver, which allows building packages via a declarative manifest and without debian/rules. Of couse, this is all at early stages and somewhat experimental.

I've noticed that dgit is currently unable to build packages using this new alternative dpkg interface, since it relies on debian/rules to be present (I don't fully understand why) as it tries putting it into a temporary tar archive right before building.

To reproduce:

   $ git clone g...@salsa.debian.org:debian/oaknut.git
   $ cd oaknut
$ dgit build Format `3.0 (quilt)', need to check/update patch stack
   dpkg-buildpackage: info: source package oaknut
   dpkg-buildpackage: info: source version 1.2.2+git20240301.94c726c-1
   dpkg-buildpackage: info: source distribution unstable
   dpkg-buildpackage: info: source changed by Andrea Pappacoda 
<and...@pappacoda.it>
    debputy internal-command dpkg-build-driver-run-task clean
      dpkg-buildtree clean
      rm -fr debian/.debputy
   examining quilt state (multiple patches, linear mode)
   tar: debian/rules: Cannot stat: No such file or directory
   tar: Exiting with failure status due to previous errors
   dgit: failed command: tar -cf 
'./oaknut_1.2.2+git20240301.94c726c-~~DGITFAKE.debian.tar' -C 
/home/tachi/dev/deb/oaknut debian/source/format debian/rules debian/control 
debian/changelog
dgit: error: subprocess failed with error exit status 2

Would it be possible to avoid including the rules file into the temporary archive, or doing so only when present?

Bye!

Attachment: signature.asc
Description: PGP signature

Reply via email to