Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [master][rocko][PATCH 0/1] Fix uninative link when loaded from a file url
Date: Thu, 7 Dec 2017 16:20:03 -0500	[thread overview]
Message-ID: <20171207212004.3479-1-mark.hatle@windriver.com> (raw)

If the uninative link is set from a file URL, a symlink will be created.  If
that file is later deleted (i.e. referenced a file in another project layer).

The system will fail on a backtrace during the os.symlink.  The same type of
problem must have existed in the bitbake fetcher, as the code there was
already written to allow this case.  This copies that design and does the
same procedure of checking for a broken symlink, and unlinks in that case.

This also adds the secondary step if there are two processes that happen to
get to there at the same time (shared DL_DIR for two projects), the exitence
of the link will not trigger a failure due to the try/except.

Mark Hatle (1):
  uninative.bbclass: Fix broken symlink issue

 meta/classes/uninative.bbclass | 12 ++++++++++++
 1 file changed, 12 insertions(+)

-- 
2.14.2.666.gea220ee



             reply	other threads:[~2017-12-07 21:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07 21:20 Mark Hatle [this message]
2017-12-07 21:20 ` [PATCH 1/1] uninative.bbclass: Fix broken symlink issue Mark Hatle

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=20171207212004.3479-1-mark.hatle@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox