.changes from dpkg-genchanges 1.19.3 are rejected

Bug #1813037 reported by Mattia Rizzolo
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Colin Watson

Bug Description

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

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)
Changed in launchpad:
status: New → Confirmed
Revision history for this message
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).

Revision history for this message
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)
Changed in launchpad:
importance: Undecided → Critical
Colin Watson (cjwatson)
Changed in launchpad:
status: Confirmed → In Progress
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
tags: added: lp-soyuz qa-ok soyuz-upload
removed: qa-needstesting
Colin Watson (cjwatson)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.