Wind River Support Network

HomeDefectsLIN5-4659
Fixed

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: 5.0.1.7
Severity: Standard
Applicable for: Wind River Linux 5
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.

Other Downloads


Live chat
Online