.changes from dpkg-genchanges 1.19.3 are rejected

Bug #1813037 reported by Mattia Rizzolo on 2019-01-23
54
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Critical
Colin Watson

Bug Description

Today I tried uploading a package to launchpad, and it was rejected with:

Rejected:
Unable to find mandatory field 'Binary' in the changes file.
Further error processing not possible because of a critical previous error.

This is due to this change in dpkg:

   * dpkg-genchanges: Only reference binary packages being uploaded, which
     means that for a source-only upload, the Binary and Description fields
     should be empty. Closes: #818618

http://bugs.debian.org/818618 has more details on what happened.

Related branches

Tehnick (tehnick) on 2019-02-05
Changed in launchpad:
status: New → Confirmed
Olly Betts (ojwb) wrote :

I just hit this too.

It'd be good to address this in launchpad, but meanwhile I found a simple (though nasty) way to work around this PPA upload check when using dpkg 1.19.3 or newer. Passing -DBinary=dummy to dpkg-genchanges (or --changes-option=-DBinary=dummy to dpkg-buildpackage) results in a *_source.changes containing "Binary: dummy" which passes the PPA upload check and the package then builds successfully, giving the binary packages it should (the contents of this header doesn't seem to need to match the packages which actually get built).

Tehnick (tehnick) wrote :

> or --changes-option=-DBinary=dummy to dpkg-buildpackage

Thanks a lot for your comment! This workaround works fine with debuild too.

Adam Conrad (adconrad) on 2019-02-19
Changed in launchpad:
importance: Undecided → Critical
Colin Watson (cjwatson) on 2019-02-19
Changed in launchpad:
status: Confirmed → In Progress
assignee: nobody → Colin Watson (cjwatson)
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson) on 2019-02-20
tags: added: lp-soyuz qa-ok soyuz-upload
removed: qa-needstesting
Colin Watson (cjwatson) on 2019-02-20
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers