All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steve Scott" <sscott@san.rr.com>
To: <yocto@yoctoproject.org>
Subject: Re: SRC_URI when there is a local mirror but no remote repo
Date: Thu, 7 Mar 2019 08:03:17 -0800	[thread overview]
Message-ID: <007001d4d4ff$491a33f0$db4e9bd0$@san.rr.com> (raw)
In-Reply-To: <MWHPR21MB076694812B1F6F66A7805392E5730@MWHPR21MB0766.namprd21.prod.outlook.com>

SRC_URI = "file://${TOPDIR}/../local_mirror/example-1.0.0.src.tar.gz" should
work, without need for do_unpack.

What error are you getting?

> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-
> bounces@yoctoproject.org] On Behalf Of Edmund Nadolski
> Sent: Wednesday, March 06, 2019 11:52 AM
> To: Edmund Nadolski <Edmund.Nadolski@microsoft.com>;
> yocto@yoctoproject.org
> Subject: Re: [yocto] SRC_URI when there is a local mirror but no remote
repo
> 
> Friendly ping, any thoughts on this?
> 
> One thing I have noted - without the remote url, bitbake will not link the
file
> into DL_DIR or create a *.done file for it.
> 
> TIA,
> Ed
> 
> > -----Original Message-----
> > From: yocto-bounces@yoctoproject.org <yocto-
> bounces@yoctoproject.org>
> > On Behalf Of Edmund Nadolski
> > Sent: Wednesday, February 27, 2019 3:00 PM
> > To: yocto@yoctoproject.org
> > Subject: [yocto] SRC_URI when there is a local mirror but no remote
> > repo
> >
> > Hi,
> >
> > Does Yocto/Bitbake support a way to set SRC_URI in a recipe when there
> > is no corresponding upstream remote (git://, https://, etc.) for a
*.tar.gz
> file?
> > IOW, I've configured for own_mirrors and set BB_NO_NETWORK=1, and
> my
> > *.tar.gz file only lives in the local_mirror directory.
> >
> > It looks to me like file:// thinks that the file always lives under
${S}.
> >
> > TIA,
> > Ed
> >
> > ...
> > # functional workaround
> > SRC_URI = " http://some.example.com/example-1.0.0.src.tar.gz"
> > ...
> >
> > do_unpack () {
> >         # Unpack straight from the local mirror since there is no remote
> >         tar xzf ${TOPDIR}/../local_mirror/example-1.0.0.src.tar.gz -C
> > ${S}
> >
> > do_install () {
> >         install -d ${D}/${MY_DIR}
> >         install -m 0744 ${S}/example/example.sh ${D}/${MY_DIR}
> >
> > --
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



      reply	other threads:[~2019-03-07 16:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-27 22:59 SRC_URI when there is a local mirror but no remote repo Edmund Nadolski
2019-03-06 19:51 ` Edmund Nadolski
2019-03-07 16:03   ` Steve Scott [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='007001d4d4ff$491a33f0$db4e9bd0$@san.rr.com' \
    --to=sscott@san.rr.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.