Wind River Support Network


LIN5-4659 : Read-only files in layers cause build failure

Created: Jul 29, 2013    Updated: Dec 19, 2017
Resolved Date: Aug 29, 2013
Found In Version: 5.0.1
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Build & Config


Customer has a layer containing a modified "recipes-img/images/" file. The modifications allow the removal of unwanted packages.

To prevent accidental changes to the layer all files are read-only except for some trusted engineers. When building a platform project using the layer with this file read-only the following errors are seen:

Generating bitbake config
/tmp/tmp.peOt218080/configure: line 2449: ./layers/local/recipes-img/images/ Permission denied
/tmp/tmp.peOt218080/configure: line 2457: ./layers/local/recipes-img/images/ Permission denied
/tmp/tmp.peOt218080/configure: line 2458: ./layers/local/recipes-img/images/ Permission denied
/tmp/tmp.peOt218080/configure: line 2459: ./layers/local/recipes-img/images/ Permission denied
/tmp/tmp.peOt218080/configure: line 2624: ./layers/local/recipes-img/images/ Permission denied
Substituting scripts and Makefiles

If the file is made read/write in the layer then this error does not occur.

We think that when files are copied from layers into a project directory their permissions should *not* also be copied, only the content.


Don't make layer files/dirs read-only

Steps to Reproduce

Using attached layer, unpack and make all files/dirs read-only and then:

$ configure --enable-board=fsl-p1021rdb-pc --enable-rootfs=glibc_small --enable-kernel=standard --with-layer=/path/to/custom-layer
$ make

Observe error.

Other Downloads

Live chat