Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do_fetch by hand in a Yocto Project

Tags:

yocto

My question is raised because my build-yocto server ran into the error:

ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/mnt/wd2tb/home/Work/skrzg1h_iWg21m_QtHmi/build/downloads/git2/github.com.qtproject.qtenginio.git'...    
Fetcher failure for URL: 'git://github.com/qtproject/qtenginio.git;name=qtenginio;branch=5.6;protocol=git'. Unable to fetch URL from any source.

In the meantime, my PC can do that. So, I cloned the qtenginio repo to my local PC.

$ git clone git://github.com/qtproject/qtenginio.git;name=qtenginio;branch=5.6;protocol=git

And copy the downloaded source code above into the downloads/git2/github.com.qtproject.qtenginio.git folder of Yocto project.

Finally, I run the bitbake command.

$ bitbake qtenginio

But the fetch still fails. Anyone can help me in this case ?

like image 450
Thảo M. Hoàng Avatar asked Dec 09 '16 10:12

Thảo M. Hoàng


Video Answer


2 Answers

bitbake clones bare git repo, please add option '--bare' and touch a .done file to tell bitbake that do_fetch has been done already:

$ git clone --bare git://github.com/qtproject/qtenginio.git;name=qtenginio;branch=5.6 /mnt/wd2tb/home/Work/skrzg1h_iWg21m_QtHmi/build/downloads/git2/github.com.qtproject.qtenginio.git

$ touch /mnt/wd2tb/home/Work/skrzg1h_iWg21m_QtHmi/build/downloads/git2/github.com.qtproject.qtenginio.git.done

like image 126
Kai Avatar answered Sep 17 '22 14:09

Kai


Step 1: download the package by hand (wget, git clone ...)

Step 2: copy the package into ./build/downloads

Step 3: touch a package_name.done file.

Step 4: change permission for the *.done file: chmod 777 package_name.done

like image 30
Thảo M. Hoàng Avatar answered Sep 20 '22 14:09

Thảo M. Hoàng