[yocto] Remove a recipe's do_install_append() function in an append file

Matthew McClintock msm-oss at mcclintock.net
Tue Mar 28 09:28:28 PDT 2017


On Thu, Mar 23, 2017 at 5:28 PM, Cody Piersall <cody at arrc.ou.edu> wrote:
> Hello,
>
> I am building zsh from meta-oe layer, and it has a do_install_append()
> function defined like this:
>
> do_install_append () {
>     rm -fr ${D}/usr/share
> }
>
> which gets rid of lots lots of useful functionality, like
> context-aware autocompletion.  Can a bbappend file get rid of that
> function, or do I need to edit the actual recipe? I've attempted
> defining an empty do_install_append() { : } but it didn't work.

We hit this sometime so curious if anyone has better suggestions. But
you can add a do_install_prepend to save the data somewhere, and an
append to put it back. Also, you can use the priority of your layer
could come into play here.

-M



More information about the yocto mailing list