Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

About the wrong URI in tcf-agent_git.bb in Poky

I'm a new hand and try to build a xilinx by pocto. As the guide, I cloned repositories (branch thud), source oe-... and change MACHINE="zedborad-zynq7", then bitbake petalinux-image-minimal, but I get following error:

ERROR: tcf-agent-1.7.0+gitAUTOINC+dad3a6f568-r0 do_fetch: Fetcher failure: Fetch command ... https://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git refs/:refs/ failed with exit code 128, output: fatal: repository 'https://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git/' not found ... ERROR: Task (~/poky/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb:do_fetch) failed with exit code '1'

The issue is that the statement in tcf-agent_git.bb:

SRC_URI = "git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent \

It is NOT the wrong address, In fact, I can clone successfully with this address. On the other hand, any my modify on this variable will NOT work either. I already grep -rn "eclipse.org", but only find this file.

Any recommendation will be welcome.

Thanks lot.

——————————————————————————

I can't resolve this issue finally. I find that the builder does NOT fetch from the address the SRC_URL offer at all, instead, it fetches from a mirror given somewhere.

As a test, I edited the .bb file, add PREMIRRORS="" and MIRROS="", and add protocal=git statement for the SRC_URI. The statements are effective realy, the builder fetches from the SRC_URL address, but the protocol is still HTTPS, the function still fails. My solution is cloning the source manually, and putting it to corresponding directory, in order to let the builder know this, I also touch a package_name.done and chmod 777 in the same directory, then I can continue.

like image 269
coolicelee Avatar asked Jan 25 '23 11:01

coolicelee


1 Answers

I've run into the exact same issue using Xilinx Yocto stack (rel-v2018.3 branch). For me, the problem wasn't in the tcf-agent_git.bb recipe in core/meta/recipes-devtools/tcf-agent, but in the tcf-agent_%.bbappend file in meta-petalinux/recipes-devtools/tcf-agent. In there, I replaced

SRC_URI = " \
    git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git;branch=master;protocol=https \
    file://fix_ranlib.patch;striplevel=2 \
    file://ldflags.patch \
    file://tcf-agent.init \
    file://tcf-agent.service \
    "

with

SRC_URI = " \
    git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git;branch=master \
    file://fix_ranlib.patch;striplevel=2 \
    file://ldflags.patch \
    file://tcf-agent.init \
    file://tcf-agent.service \
    "

and it finishes building correctly.

The former used to work fine last time I built the image (a few months ago) but for some reason the protocol=https option makes it fail now.

like image 172
eblanco Avatar answered Jan 31 '23 18:01

eblanco