Wind River Support Network

HomeDefectsLIN6-3280
Fixed

LIN6-3280 : Read-only files in layers cause build failure

Created: Jul 29, 2013    Updated: Mar 5, 2016
Resolved Date: Dec 4, 2013
Previous ID: LIN5-4669, LIN6-2759
Found In Version: 6.0
Fix Version: 6.0
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config

Description

Customer has a layer containing a modified "recipes-img/images/wrlinux-image-glibc-small.bb" 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/wrlinux-image-glibc-small.bb: Permission denied
/tmp/tmp.peOt218080/configure: line 2457: ./layers/local/recipes-img/images/wrlinux-image-glibc-small.bb: Permission denied
/tmp/tmp.peOt218080/configure: line 2458: ./layers/local/recipes-img/images/wrlinux-image-glibc-small.bb: Permission denied
/tmp/tmp.peOt218080/configure: line 2459: ./layers/local/recipes-img/images/wrlinux-image-glibc-small.bb: Permission denied
/tmp/tmp.peOt218080/configure: line 2624: ./layers/local/recipes-img/images/wrlinux-image-glibc-small.bb: 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.

Workaround

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.
Live chat
Online