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

  • From: DI Andreas Auer <andreas.auer@xxxxxxxxxxxx>
  • To: embug@xxxxxxxxxxxxx
  • Date: Tue, 14 Jan 2020 08:13:39 +0100

Hello.

I solved my problem with an bbappend file for the apache where I delete
the existing content in the htdocs folder.
After that I added my own htdocs recipe which publishes the new web content.

Thanks for the help.
BR
Andreas

On 13.01.20 22:45, Ivan Debelec wrote:

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
<mailto: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 <mailto: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.



-- 
Embedded Microtec
Hardware Design | Software Design | Smartphone Apps

DI Andreas Auer
Münzgrabenstraße 168/4
8010 Graz, Austria

VAT-ID: ATU66483566
mobile: +43 650 8123818
web   : www.emicrotec.at
email : andreas.auer@xxxxxxxxxxxx

Other related posts: