Wind River Support Network

HomeDefectsLIN6-7323
Fixed

LIN6-7323 : CLONE - FILESEXTRAPATHS-variable, must always use _prepend (or _append) type of assignment.

Created: May 4, 2014    Updated: Dec 3, 2018
Resolved Date: May 5, 2014
Previous ID: LIN5-18683
Found In Version: 6.0.0.7
Fix Version: 6.0.0.7
Severity: Standard
Applicable for: Wind River Linux 6
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