[bitbake-devel] Issues w/ gitsm fetcher and BB_NO_NETWORK

Khem Raj raj.khem at gmail.com
Wed Sep 19 17:14:38 UTC 2018


Sub module paths are hard coded in .gitmodule  file and I think some how
that has to be modified or overridden

On Wed, Sep 19, 2018 at 9:25 AM Mark Hatle <mark.hatle at windriver.com> wrote:

> I've been struggling for the past few days with gitsm, and have finally
> thrown
> in the towel.
>
> What is happening is that I am trying to use the 'ostree' recipe (not
> really
> important), but that uses the gitsm fetcher against:
>
> gitsm://github.com/ostreedev/ostree.git;branch=master
>
> On a fetch the system correctly pulls down the 'ostree.git' from a local
> mirror
> I have setup.  However, it then moves to the step of configuring the
> submodules
> and fetching them, and goes out to the network and ALWAYS pulls them from
> the
> network.
>
> My mirror is setup using:
>
> PREMIRRORS_append = " \
>      gitsm://.*/.* gitsm://${LAYERDIR}/git/MIRRORNAME;protocol=file \n \
> "
>
> (my mirrors are simply local cloned bare repositories)
>
> If I modify my /etc/hosts files to point github/gitlab to 127.0.0.1, I can
> easily trigger the faults:
>
> ERROR: ostree-2018.7+gitAUTOINC+4148918655-r0 do_unpack: Fetcher failure:
> Fetch
> command export PSEUDO_DISABLED=1; ... git -c core.fsyncobjectfiles=0
> submodule
> update --init --recursive || (git -c core.fsyncobjectfiles=0 submodule sync
> --recursive && git -c core.fsyncobjectfiles=0 submodule update --init
> --recursive) failed with exit code 1, output:
> Submodule 'bsdiff' (https://github.com/mendsley/bsdiff) registered for
> path 'bsdiff'
> Submodule 'libglnx' (https://gitlab.gnome.org/GNOME/libglnx.git)
> registered for
> path 'libglnx'
> Cloning into 'bsdiff'...
> Synchronizing submodule url for 'bsdiff'
> Synchronizing submodule url for 'libglnx'
> Cloning into 'bsdiff'...
>
> fatal: unable to access 'https://github.com/mendsley/bsdiff/': Failed
> connect to
> github.com:443; Connection refused
> Clone of 'https://github.com/mendsley/bsdiff' into submodule path
> 'bsdiff' failed
> fatal: unable to access 'https://github.com/mendsley/bsdiff/': Failed
> connect to
> github.com:443; Connection refused
> Clone of 'https://github.com/mendsley/bsdiff' into submodule path
> 'bsdiff' failed
>
>
> I've tried a number of things, but so far I'm just not understanding how to
> proceed.  I assume at some point the references to the modules really need
> to
> refer to an alternative location and be fetched in, but I'm not sure that
> any of
> the existing interfaces would allow that.
>
> Any suggestions how to proceed?
>
> --Mark
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20180919/209e0c55/attachment-0002.html>


More information about the bitbake-devel mailing list