[embug] Re: [Yocto] Change/overwrite file provided by another recipe

  • From: Ivan Debelec <ivan.debelec@xxxxxxxxx>
  • To: embug@xxxxxxxxxxxxx
  • Date: Mon, 13 Jan 2020 22:45:35 +0100

Hello,

Of course I don't have answer on this question but i would like to
contribute with sharing nice presentation from Yocto Summit in Lyon about
topics like that...

Here are all slides, and there was one interesting presentation called
"Creating friedly layers"...

This was second presentation at day 1...
https://wiki.yoctoproject.org/wiki/YP_Summit_Lyon_2019

There you have some ideas what would be good way to modify existing
layers...

Also they mentioned some best practices layers like meta-raspberrypi,
meta-security where would be good to check how they are solving some
things...

I hope it could help...

BR Ivan

pon, 13. sij 2020. 19:01 H K <horst.kautschitz@xxxxxxxxx> je napisao:

The most common way what i have seen is to make a bbappend and
move/rename/remove/override the file.

The same situation exists dealing with config files like by connman.

Greetz
hka

Bernd Bauer <bernd.bauer@xxxxxx> schrieb am Mo., 13. Jän. 2020, 17:48:

Hi Andreas!

Without having tested it now, I can think of 3 possible solutions.

1) Add an "install_append" function to your recipe. As far as I
   know, this overwrite lock does not apply here.
2) Add an apache_%.bbappend file in which you delete the
   index.html file.
3) Maybe there is already a mechanism (variable) in the Apache
   recipe that can replace the index file.

Greets Bernd

Am 13.01.20 um 12:02 schrieb DI Andreas Auer:
Hello.

I would like to integrate the "installation" of a website in Yocto. My
preferred way would be to have a new recipe which clones my GIT repo
containing the HTML files and installs them in the Yocto image.
The "problem" is that when I install my HTML files, I'm overwriting the
original index.html file provided by the apache recipe. And when I
overwrite a file which is provided by another recipe, Yocto is
complaining.

I know, it would be possible to write a bbappend file for the apache
recipe to integrate my website. But I think it would be better to have
this separated (website and webserver).

So, question is: Is it possible to change/overwrite files which are
provided by another recipe in a way that Yocto is not complaining about
it?

BR
Andreas


--
| |O| | Bauer Bernd
| | |O| Sicher ist vi benutzerfreundlich,
|O|O|O| es ist nur eigen in der Wahl seiner Freunde.


Other related posts: