<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Chuck,</p>
<p>Unless I am missing something (which I cannot entirely rule out),
the default PREMIRRORS should actually do what you want. For the
poky distro configuration has this:</p>
<p>PREMIRRORS ??= "\<br>
bzr://.*/.*Â Â <a class="moz-txt-link-freetext" href="http://downloads.yoctoproject.org/mirror/sources/">http://downloads.yoctoproject.org/mirror/sources/</a> \n
\<br>
cvs://.*/.*Â Â <a class="moz-txt-link-freetext" href="http://downloads.yoctoproject.org/mirror/sources/">http://downloads.yoctoproject.org/mirror/sources/</a> \n
\<br>
git://.*/.*Â Â <a class="moz-txt-link-freetext" href="http://downloads.yoctoproject.org/mirror/sources/">http://downloads.yoctoproject.org/mirror/sources/</a> \n
\<br>
gitsm://.*/.* <a class="moz-txt-link-freetext" href="http://downloads.yoctoproject.org/mirror/sources/">http://downloads.yoctoproject.org/mirror/sources/</a> \n
\<br>
hg://.*/.*Â Â Â <a class="moz-txt-link-freetext" href="http://downloads.yoctoproject.org/mirror/sources/">http://downloads.yoctoproject.org/mirror/sources/</a> \n
\<br>
osc://.*/.*Â Â <a class="moz-txt-link-freetext" href="http://downloads.yoctoproject.org/mirror/sources/">http://downloads.yoctoproject.org/mirror/sources/</a> \n
\<br>
p4://.*/.*Â Â Â <a class="moz-txt-link-freetext" href="http://downloads.yoctoproject.org/mirror/sources/">http://downloads.yoctoproject.org/mirror/sources/</a> \n
\<br>
svn://.*/.*Â Â <a class="moz-txt-link-freetext" href="http://downloads.yoctoproject.org/mirror/sources/">http://downloads.yoctoproject.org/mirror/sources/</a>
\n"<br>
</p>
<p>This causes the fetcher to intercept and translate all the SCM
protocols into http downloads from the YP mirror. Since you are
saying wget works for you this should actually automatically work
for you. If you build system can at least download using http then</p>
<p>bitbake <target> --runall=fetch</p>
<p>should download all the sources for you. Then you can disconnect
the box from the Internet and start the build offline.</p>
<p>:rjs<br>
</p>
<div class="moz-cite-prefix">On 9/26/19 8:06 PM, Chuck Wolber wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAB=6tBRdpccrvRR9fWZW2BwTsgUgggr2KSadK4wB2kmqsaQC+g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi All,</div>
<div><br>
</div>
<div>Our build environment is stuck behind a firewall with no
access to the Internet. When a Yocto build requires a new
package, we normally extract the URL from the failed build log
and "wget" the package from the upstream source, do our due
diligence (checksums, etc), and then add it to the server
pointed to by ${LOCAL_MIRROR}.</div>
<div><br>
</div>
<div>Obviously that procedure does not work so well when a git
repository needs to be fetched. We have tried various methods,
but nothing seems to work reliably. Our current method is an
annoying hack involving a virtual machine clone of the build
server.</div>
<div><br>
</div>
<div>I have searched far and wide, and cannot find any sort of
procedure. Can someone point me at a procedure for translating
something like git://<a
href="http://git.yoctoproject.org/pseudo"
moz-do-not-send="true">git.yoctoproject.org/pseudo</a> into
a file we can store in our ${LOCAL_MIRROR}?</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>..Ch:W..</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
<pre class="moz-signature" cols="72">--
-----
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3386 x700</pre>
</body>
</html>