Skip to contentSkip to conversation

avoiding hard-coded filenames in package file lists

DISCUSSION Robert P. J. Day 2 participants 2 messages Jul 14, 2014 – Jul 15, 2014

lore
Share & tools
lore
#0 lore raw

occasionally, i still trip across stuff like this (this is from
oe-core):

meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb:FILES_${PN} = "/etc ${datadir}/fonts"

i'm assuming that one should avoid hard-coding names like "/etc" in this case, and instead use (in this case) ${sysconfdir}, yes?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 4 lines · Robert P. J. Day

occasionally, i still trip across stuff like this (this is from
oe-core):

Quoted 8 lines

meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb:FILES_${PN} = "/etc ${datadir}/fonts"

i'm assuming that one should avoid hard-coding names like "/etc" in this case, and instead use (in this case) ${sysconfdir}, yes?

rday

Yes!

Bye Henning