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

Robert P. J. Day rpjday at crashcourse.ca
Wed Mar 18 11:00:16 UTC 2020


On Tue, 17 Mar 2020, Ross Burton wrote:

> >   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.
>
> Yes.
>
> That FILES suggests that the makefile is installing to /usr/doc/ and
> needs to be told somehow to use $docdir.

  never scared to look silly, but i just did a sample build (randomly
chose qemuarm64 MACHINE), added:

  IMAGE_FEATURES += "doc-pkgs"
  RM_WORK_EXCLUDE = "indent"

to local.conf, then ran:

  $ bitbake indent

to look at everything that was generated as part of the "indent" build
and how it was packaged, to understand what that:

  FILES_${PN}-doc += "/usr/doc/indent/indent.html"

line is doing in indent_2.2.12.bb, and maybe i'm misreading what was
produced, but the only documentation content produced and bundled
into the indent-doc rpm package was:

  $ rpm -qpl indent-doc-2.2.12-r0.aarch64.rpm
  /usr
  /usr/share
  /usr/share/man
  /usr/share/man/man1
  /usr/share/man/man1/indent.1
  $

so i'm confused as to that line's purpose ... thoughts?

rday

p.s. it's not like i'm obsessed with the indent package ... i'm more
interested in knowing whether i'm examining this the right way in case
it ever happens again.


More information about the Openembedded-devel mailing list