#1103724 dgit-user force source format 1.0 runes don't always work

#1103724#5
Date:
2025-04-20 23:24:41 UTC
From:
To:
I am trying to do something to openscad, which has a d/s/format file.

When that happens, the sbuild rune in dgit-user(1) doesn't work,
I think because dgit can't be persuaded not to do the quilt fixup.

$ dgit --quilt=nofix -wgfa sbuild -c build -A --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'
Format `3.0 (quilt)', need to check/update patch stack
examining quilt state (multiple patches, nofix mode)
warning: package uses dpkg-source include-binaries feature - not all changes are visible in patches!
dgit: base trees orig=9c7830ace00ac9b91c10 o+d/p=69f11e804bfc06e3905e
dgit: quilt differences: src:  ## orig ##     gitignores:  ## orig ==
dgit: quilt differences:      HEAD ## o+d/p               HEAD ## o+d/p
dgit:  cannot represent change: not a plain file (000000->160000): libraries/MCAD

dgit: error: HEAD has changes to .orig[s] which are not representable by `3.0 (quilt)'
dgit:

#1103724#10
Date:
2025-05-05 14:01:58 UTC
From:
To:
I discovered that this works:

  dgit --dpkg-source:-Zgzip --dpkg-source:-z1 --dpkg-source:--format=1.0 --dpkg-source:-sn  -D --quilt=nocheck -wgfa sbuild -c build -A --no-clean-source --dpkg-source-opts='-Zgzip -z1 --format=1.0 -sn'

This is ludicrious.

I propose to add a new top-level option

  dgit --build-unploadable-dsc

which implies those options.

Ian.

#1103724#15
Date:
2025-05-07 05:20:09 UTC
From:
To:
Hello,

This is fun but not that easy to remember.  Please add at least
--build-unuploadable-dsc as an alias (or your thing as an alias for
that).

#1103724#20
Date:
2025-05-07 09:15:03 UTC
From:
To:
Sean Whitton writes ("Re: Bug#1103724: dgit-user force source format 1.0 workaround"):

At first IHNI what you meant with this reply.  My proposal was, in
fact, simply a typo...

Ian.

#1103724#25
Date:
2025-05-07 18:23:30 UTC
From:
To:
retitle -1 Clean up dgit-user sbuild rune by providing new dgit feature
severity -1 wishlist

I have discovered that

 * The runes provided in the manpage *do* work.
 * The failure case I saw is even close to the situation that is tested.
 * But, I used `dgit sbuild` and the manpage says just `sbuild`.
 * `dgit sbuild` indeed doesn't work.

So:

 * There is no actual bug here.
 * It would still be possible, and maybe nice, to provide a dgit
   option as suggested here and switch the recommendaation to that.
 * Let's not do that for trixie.

Ian.