<div><div dir="auto">Sub module paths are hard coded in .gitmodule file and I think some how that has to be modified or overridden </div></div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 19, 2018 at 9:25 AM Mark Hatle <<a href="mailto:mark.hatle@windriver.com">mark.hatle@windriver.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been struggling for the past few days with gitsm, and have finally thrown<br>
in the towel.<br>
<br>
What is happening is that I am trying to use the 'ostree' recipe (not really<br>
important), but that uses the gitsm fetcher against:<br>
<br>
gitsm://<a href="http://github.com/ostreedev/ostree.git;branch=master" rel="noreferrer" target="_blank">github.com/ostreedev/ostree.git;branch=master</a><br>
<br>
On a fetch the system correctly pulls down the 'ostree.git' from a local mirror<br>
I have setup. However, it then moves to the step of configuring the submodules<br>
and fetching them, and goes out to the network and ALWAYS pulls them from the<br>
network.<br>
<br>
My mirror is setup using:<br>
<br>
PREMIRRORS_append = " \<br>
gitsm://.*/.* gitsm://${LAYERDIR}/git/MIRRORNAME;protocol=file \n \<br>
"<br>
<br>
(my mirrors are simply local cloned bare repositories)<br>
<br>
If I modify my /etc/hosts files to point github/gitlab to 127.0.0.1, I can<br>
easily trigger the faults:<br>
<br>
ERROR: ostree-2018.7+gitAUTOINC+4148918655-r0 do_unpack: Fetcher failure: Fetch<br>
command export PSEUDO_DISABLED=1; ... git -c core.fsyncobjectfiles=0 submodule<br>
update --init --recursive || (git -c core.fsyncobjectfiles=0 submodule sync<br>
--recursive && git -c core.fsyncobjectfiles=0 submodule update --init<br>
--recursive) failed with exit code 1, output:<br>
Submodule 'bsdiff' (<a href="https://github.com/mendsley/bsdiff" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff</a>) registered for path 'bsdiff'<br>
Submodule 'libglnx' (<a href="https://gitlab.gnome.org/GNOME/libglnx.git" rel="noreferrer" target="_blank">https://gitlab.gnome.org/GNOME/libglnx.git</a>) registered for<br>
path 'libglnx'<br>
Cloning into 'bsdiff'...<br>
Synchronizing submodule url for 'bsdiff'<br>
Synchronizing submodule url for 'libglnx'<br>
Cloning into 'bsdiff'...<br>
<br>
fatal: unable to access '<a href="https://github.com/mendsley/bsdiff/" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff/</a>': Failed connect to<br>
<a href="http://github.com:443" rel="noreferrer" target="_blank">github.com:443</a>; Connection refused<br>
Clone of '<a href="https://github.com/mendsley/bsdiff" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff</a>' into submodule path 'bsdiff' failed<br>
fatal: unable to access '<a href="https://github.com/mendsley/bsdiff/" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff/</a>': Failed connect to<br>
<a href="http://github.com:443" rel="noreferrer" target="_blank">github.com:443</a>; Connection refused<br>
Clone of '<a href="https://github.com/mendsley/bsdiff" rel="noreferrer" target="_blank">https://github.com/mendsley/bsdiff</a>' into submodule path 'bsdiff' failed<br>
<br>
<br>
I've tried a number of things, but so far I'm just not understanding how to<br>
proceed. I assume at some point the references to the modules really need to<br>
refer to an alternative location and be fetched in, but I'm not sure that any of<br>
the existing interfaces would allow that.<br>
<br>
Any suggestions how to proceed?<br>
<br>
--Mark<br>
-- <br>
_______________________________________________<br>
bitbake-devel mailing list<br>
<a href="mailto:bitbake-devel@lists.openembedded.org" target="_blank">bitbake-devel@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/bitbake-devel</a><br>
</blockquote></div></div>