can't build a recipe based on git repo

Bug #1642569 reported by Gianfranco Costamagna
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
git-build-recipe (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

First, thanks for the git-git import new feature :)

"# git-build-recipe format 0.4 deb-version {debupstream}-0~{revtime}
lp:~costamagnagianfranco/boinc/+git/trunk master"

this is the recipe:
https://code.launchpad.net/~costamagnagianfranco/+recipe/boinc-daily
code:
https://code.launchpad.net/~costamagnagianfranco/boinc/+git/trunk

traceback
lp:~costamagnagianfranco/boinc/+git/trunk master

RUN ['git-build-recipe', '--safe', '--no-build', '--manifest', '/home/buildd/build-RECIPEBRANCHBUILD-1260467/chroot-autobuild/home/buildd/work/tree/manifest', '--distribution', 'zesty', '--allow-fallback-to-native', '--append-version', '~ubuntu17.04.1', '/home/buildd/build-RECIPEBRANCHBUILD-1260467/chroot-autobuild/home/buildd/work/recipe', '/home/buildd/build-RECIPEBRANCHBUILD-1260467/chroot-autobuild/home/buildd/work/tree']
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 304, in pull_or_clone
    fetch_branches(base_branch)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 332, in fetch_branches
    "refs/heads/*:refs/remotes/%s/*" % child_branch.remote_name)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 637, in git_call
    **kwargs)
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', '-C', '/home/buildd/build-RECIPEBRANCHBUILD-1260467/chroot-autobuild/home/buildd/work/tree/recipe', 'fetch', 'lp:~costamagnagianfranco/boinc/+git/trunk', 'HEAD:refs/remotes/source/HEAD', 'refs/heads/*:refs/remotes/source/*']' returned non-zero exit status 128

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/git-build-recipe", line 9, 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 110, in main
    build_tree(base_branch, working_directory)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 464, in build_tree
    _build_inner_tree(base_branch, target_path)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 385, in _build_inner_tree
    pull_or_clone(base_branch, target_path)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 306, in pull_or_clone
    raise FetchFailed(e.output)
gitbuildrecipe.recipe.FetchFailed: git fetch failed:
fatal: Couldn't find remote ref HEAD

resource.struct_rusage(ru_utime=0.3, ru_stime=0.048, ru_maxrss=26968, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=8457, ru_majflt=20, ru_nswap=0, ru_inblock=4208, ru_oublock=184, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=111, ru_nivcsw=6)
RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['scan-for-processes', 'RECIPEBRANCHBUILD-1260467']
Scanning for processes to kill in build /home/buildd/build-RECIPEBRANCHBUILD-1260467/chroot-autobuild...
RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'RECIPEBRANCHBUILD-1260467']
Unmounting chroot for build RECIPEBRANCHBUILD-1260467...
RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'RECIPEBRANCHBUILD-1260467']
Removing build RECIPEBRANCHBUILD-1260467

thanks

Tags: artful
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in git-build-recipe (Ubuntu):
status: New → Confirmed
Revision history for this message
Danial Behzadi (dani.behzi) wrote :
Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Everybody affected. Is there any solution to it?

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Does the launchpad dev know about this bug? I don't want to open yet another bug.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

yes they know but at least now I did make it work in my boinc-daily and boinc-upstream-daily recipes

Changed in git-build-recipe (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Pavel (spvkgn) wrote :

Is there a way to solve the bug? Same here https://launchpadlibrarian.net/330873848/buildlog.txt.gz

tags: added: artful
Changed in git-build-recipe (Ubuntu):
status: Incomplete → Confirmed
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.