Kaydet (Commit) 93024b55 authored tarafından Petr Mladek's avatar Petr Mladek

fix race condition when using hardlinks to deliver into solver

We need to use "touch --no-dereference" on the delivered files.
Otherwise, it creates empty target file when you touch symlinks and
delivering the real target file might fail.

This caused many build failures when delivering:

    liblcms2.so -> liblcms2.so.2.0.4
    liblcms2.so.2 -> liblcms2.so.2.0.4
    liblcms2.so.2.0.4

Change-Id: Ibd61815c12e002b495e848a125a959b8524b0935
üst a2d33e2d
......@@ -60,7 +60,7 @@ endif
endef
define gb_Deliver__deliver
$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) $(if $(gb_Deliver_HARDLINK),ln,cp -P -f) $(1) $(2) && touch -r $(1) $(2)
$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) $(if $(gb_Deliver_HARDLINK),ln,cp -P -f) $(1) $(2) && touch --no-dereference -r $(1) $(2)
endef
ifneq ($(strip $(gb_Deliver_GNUCOPY)),)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment