[oe] should indent recipe use "${prefix}" instead of "/usr"?

Ross Burton ross at burtonini.com
Tue Mar 17 21:32:10 UTC 2020


On 17/03/2020 17:22, Robert P. J. Day wrote:
>    just noticed that ./meta-oe/recipes-extended/indent/indent_2.2.12.bb
> on master branch contains the line:
> 
>    FILES_${PN}-doc += "/usr/doc/indent/indent.html"
> 
> should that not properly read:
> 
>    FILES_${PN}-doc += "${prefix}/doc/indent/indent.html"
> 
> or am i misreading something?

Recipes should never use /usr directly unless they're relocating 
something from e.g. ${D}/usr/lib to ${D}${libdir}.

The recipe should be telling the Makefiles to install into ${docdir} 
(typically, /usr/share/doc).

Ross


More information about the Openembedded-devel mailing list