provide better error message when a build dependency is missing

Bug #1992981 reported by Jürgen Gmach
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
git-build-recipe
Triaged
Low
Unassigned

Bug Description

Actually, there is a proper error message, but is hidden very well:

```
❯ git-build-recipe recipe.recipe working-dir
Initialized empty Git repository in /home/jugmac00/Tests/source-builds/working-dir/recipe/.git/
From git+ssh://git.launchpad.net/launchpad-buildd
 * [new branch] master -> source/master
 * [new branch] oci-build-path -> source/oci-build-path
 * [new branch] oci-can-be-layer-symlinks -> source/oci-can-be-layer-symlinks
Note: switching to '05ebb118afaaa244127e54492cf9f61e9292da82'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 05ebb11 Release version 223
/usr/lib/python3/dist-packages/debian/changelog.py:484: UserWarning: Found eof where expected first heading
  warnings.warn(message)
 dpkg-buildpackage -us -uc -ui -i -I -S
dpkg-buildpackage: info: source package launchpad-buildd
dpkg-buildpackage: info: source version 223~593
dpkg-buildpackage: info: source distribution focal
dpkg-buildpackage: info: source changed by Jürgen Gmach <email address hidden>
 dpkg-source -i -I --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: bzr dh-exec intltool python3-fixtures python3-netaddr python3-pylxd python3-responses python3-systemfixtures python3-testtools python3-twisted (>= 16.4.0) python3-txfixtures python3-ws4py python3-zope.interface
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -i -I -S failed
Traceback (most recent call last):
  File "/usr/bin/git-build-recipe", line 11, in <module>
    load_entry_point('git-build-recipe==0.1', 'console_scripts', 'git-build-recipe')()
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/main.py", line 174, in main
    build_source_package(
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_util.py", line 175, in build_source_package
    subprocess.check_call(command, cwd=basedir)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/debuild', '--tgz-check', '-i', '-I', '-S', '-uc', '-us']' returned non-zero exit status 29.

```

Jürgen Gmach (jugmac00)
Changed in git-build-recipe:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Same here. It used to give dependency not satisfied error. Not anymore. This is happening since last update in git-build-recipe

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.