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

Robert P. J. Day rpjday at crashcourse.ca
Tue Mar 17 23:02:42 UTC 2020


On Tue, 17 Mar 2020, Ross Burton wrote:

> 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).

  just to be clear, this depends on where the indent software actually
installs the documentation, yes? i'll have to check when i get home as
to were that stuff is actually placed. for all i know, it *could* be
under /usr/doc.

rday


More information about the Openembedded-devel mailing list