Skip to content

Fix uninative link when loaded from a file url

Mark Hatle openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1uninative.bbclass: Fix broken symlink issuemeta/classes/uninative.bbclass+12 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [master][rocko][PATCH 0/1] Fix uninative link when loaded from a file url

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(+)
Signature · 1 line
2.14.2.666.gea220ee