Call to bzr builddeb fails with "Unknown sequence get-orig-source" if --split isn't passed

Bug #1598435 reported by Free Ekanayaka on 2016-07-02
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
jenkins-launchpad-plugin
Undecided
Unassigned

Bug Description

The bzr builddeb subprocess call in dputrunner.py fails with the errors pasted below, unless the additional "--split" command line option is passed, which tells bzr builddeb to create the tarball from the bzr tree.

I'm not sure how this functionality is supposed to work without a tarball (I noticed that the BzrRecipe class has createTarball method, but it's hasn't any call site in the code).

DEBUG: UpstreamVersion parsed: 0.1.0-1
DEBUG: PackageVersion parsed: 0.1.0-1
DEBUG: SourceName parsed: canonical-livepatch-health
INFO: Going to dput version: 0.1.0-1+bzr30+pkg3~xenial1
DEBUG: Calling: ['dch', '-b', '-v', '0.1.0-1+bzr30+pkg3~xenial1', 'Automatic build of revision 30', '-D', 'xenial']
DEBUG: Calling: ['bzr', 'builddeb', '-S']
Building using working tree
Building package in normal mode
Looking for a way to retrieve the upstream tarball
Using apt to look for the upstream tarball.
apt could not find the needed tarball.
Trying to use get-packaged-orig-source to retrieve needed tarball.
dh get-packaged-orig-source --with=python3 --buildsystem=pybuild
dh: Unknown sequence get-packaged-orig-source (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:8: recipe for target 'get-packaged-orig-source' failed
make: *** [get-packaged-orig-source] Error 255
Trying to run get-packaged-orig-source rule failed
Trying to use get-orig-source to retrieve needed tarball (deprecated).
dh get-orig-source --with=python3 --buildsystem=pybuild
dh: Unknown sequence get-orig-source (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:8: recipe for target 'get-orig-source' failed
make: *** [get-orig-source] Error 255
Trying to run get-orig-source rule failed
Using uscan to look for the upstream tarball.
No watch file to use to retrieve upstream tarball.
bzr: ERROR: Unable to find the needed upstream tarball for package canonical-livepatch-health, version 0.1.0.
ERROR: Command ['bzr', 'builddeb', '-S'] returned non-zero exit status 3
DEBUG: Dput failed
Build step 'Execute shell' marked build as failure
Finished: FAILURE

Free Ekanayaka (free.ekanayaka) wrote :
Hadrien (psydk) wrote :

Thank you, I spent days trying to understand how to build a package directly from my Bazaar local repository. It made no sense to me to prepare a tarball when the source code is already here. All tutorials I found did not mention the --split option. Your bug report really helped me. Thanks again :)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers