Skip to contentSkip to conversation

what are the dangers of adding "out-of-tree" files to FILES_${PN}?

DISCUSSION Robert P. J. Day 2 participants 2 messages Apr 1, 2021

lore
Share & tools
lore
#0 lore raw

recently, i've run across a couple layers based on pretty much
up-to-date OE/YP, where fixed files are being added to a package via assignments like this:

  FILES_${PN} += "/data"

i already know that's a bad idea, but i'm curious as to what build
errors might occur when trying something like this. i was first asked about what might have caused a "pseudo abort" error as described here:

https://wiki.yoctoproject.org/wiki/Pseudo_Abort

where the generated error referred to "path mismatch ... ino ####### db" ... etc etc. my first (admittedly uneducated) guess was that, in the midst of installation, some of that external content under /data was perhaps being deleted or updated in some way that was changing inodes.

even if doing something like technically works, can someone explain
what ugliness might result, i'm assuming from having any of that external data change in the middle of a build?

rday

#1 lore raw
Quoted 9 lines · Robert P. J. Day

recently, i've run across a couple layers based on pretty much
up-to-date OE/YP, where fixed files are being added to a package via assignments like this:

  FILES_${PN} += "/data"

i already know that's a bad idea, but i'm curious as to what build
errors might occur when trying something like this.

What's the specific concern? It won't work well for -native recipes (as discussed in another of these threads), but apart from that it should work OK.

To be safe for use in a -native recipe you could change it to:

  FILES_${PN} += "${base_prefix}/data"
Quoted 10 lines

i was first asked
about what might have caused a "pseudo abort" error as described here:

https://wiki.yoctoproject.org/wiki/Pseudo_Abort

where the generated error referred to "path mismatch ... ino ####### db" ... etc etc. my first (admittedly uneducated) guess was that, in the midst of installation, some of that external content under /data was perhaps being deleted or updated in some way that was changing inodes.

I don't think you can corrupt the pseudo database with a packaging rule.

Quoted 10 lines

even if doing something like technically works, can someone explain
what ugliness might result, i'm assuming from having any of that external data change in the middle of a build?

rday