Wind River Support Network

HomeDefectsLIN5-18451
Fixed

LIN5-18451 : FILESEXTRAPATHS-variable, must always use _prepend (or _append) type of assignment.

Created: Apr 3, 2014    Updated: Dec 19, 2017
Resolved Date: May 5, 2014
Found In Version: 5.0.1.12
Fix Version: 5.0.1.15
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Build & Config

Description

There are WR bbappends that sets the variable FILESEXTRAPATHS-variable in a wrong way.

Wrong: FILESEXTRAPATHS := "${THISDIR}/${PN}:"

It works as long as no other does the same.

ALL WR settings should use:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
or
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"

In RCPL.12 there exists at least one faulty file in the OVP layers. "When rcpl12 was introduced, the ovp-layer had added a bbappend for ntp which also used the wrong way."

ALL instances of the wrong usage of variable setting should be replaced!


As examples:
A simple find/grep in the layers-dir of a OVP build-dir will output
this (rcpl12):

  > find ../layers/wr* -name '*.bbappend' -exec grep -H
"FILESEXTRAPATHS :=" \{} \;
  ../layers/wr-cgp/wr-security/recipes-security/selinux/libsemanage_2.1.9.bbappend:FILESEXTRAPATHS
:= "${THISDIR}/${BPN}:"
  ../layers/wr-cgp/wr-security/recipes-security/selinux/libselinux_2.1.12.bbappend:FILESEXTRAPATHS
:= "${THISDIR}/${BPN}:"
  ../layers/wr-kernel/recipes-kernel/latencytop/latencytop_0.5.bbappend:FILESEXTRAPATHS
:= "${THISDIR}/${PN}:"
  ../layers/wr-kernel/recipes-kernel/trace-cmd/trace-cmd_1.2.bbappend:FILESEXTRAPATHS
:= "${THISDIR}/${PN}:"
  ../layers/wr-kernel/recipes-kernel/lttng/lttng-control_0.89.bbappend:FILESEXTRAPATHS
:= "${THISDIR}/${PN}:"
  ../layers/wr-kernel/kernel-dev/recipes-kernel/linux/linux-windriver_3.4.bbappend:FILESEXTRAPATHS
:= "${THISDIR}/${PN}:"
  ../layers/wr-ovp/wr-security/recipes-security/selinux/libsemanage_2.1.9.bbappend:FILESEXTRAPATHS
:= "${THISDIR}/${BPN}:"
  ../layers/wr-ovp/wr-security/recipes-security/selinux/libselinux_2.1.12.bbappend:FILESEXTRAPATHS
:= "${THISDIR}/${BPN}:"

Steps to Reproduce

Have two or more BB appends files that sets the variable using the template:
FILESEXTRAPATHS := "${THISDIR}/${PN}:"

As one example, one WR layer, and one in a customer layer.

Now bitbake will start loosing files, and failing the build.

Other Downloads


Live chat
Online