]> code.ossystems Code Review - openembedded-core.git/commit
acl: fix race issue when do_compile
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 18 Apr 2017 08:33:20 +0000 (01:33 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Apr 2017 09:16:22 +0000 (10:16 +0100)
commit73d3d81fcdb92dd85c6ad1609e3a6eb20f1ea539
tree7ce0520bd4ba71e7442dc7ea4de4ed2b193e4a7f
parenta7761023696fbefb0d38906b0b02bf4ed211b3fb
acl: fix race issue when do_compile

Fixed race issue:
 In file included from acl_copy_entry.c:22:0:
 libacl.h:19:21: fatal error: sys/acl.h: No such file or directory
  #include <sys/acl.h>

[snip]

 compilation terminated.
 acl_get_file.c:27:24: fatal error: acl/libacl.h: No such file or directory
  #include <acl/libacl.h>
                         ^

The acl.h is in "include" directory, and include/Makefile creates
symlink "sys" and "acl" poinst to current dirctory:
$ ls include/ -l
acl -> .
sys -> .

So if "libacl" target runs before "include", the error would happen
since no "acl" or "sys" directory.

Let libacl depend on include can fix the problem.

[YOCTO #11349]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/attr/acl/Makefile-libacl-should-depend-on-include.patch [new file with mode: 0644]
meta/recipes-support/attr/acl_2.2.52.bb