From: Tomas Frydrych <tf+lists.yocto@r-finger.com>
To: yocto@yoctoproject.org
Subject: Re: How to customize a file coming from another recipe?
Date: Thu, 12 Sep 2013 12:43:47 +0100 [thread overview]
Message-ID: <5231A8F3.4050509@r-finger.com> (raw)
In-Reply-To: <E51394554A503C4E852F9BEE46B03E8DEFCD05@TI-ODIN.tasernet.com>
Hi,
On 11/09/13 20:24, Brad Litterell wrote:
> This installs a default configuration file for the service which I now
> want to customize. What is the recommended way to overwrite or
> customize files in another package?
>
> Is the best course to create a recipe bbappend for the
> lighttpd_1.4.31.bb file that is being used?
Yes.
> And can I just include a
> new file with the same name in my append and will it overwrite the old
> one, or do I need to create an actual patch file?
Assuming you set up the FILESEXTRAPATHS in the bbappend correctly (as
per documentation), you can just provide the whole file, it just takes
the first instance of the file it locates in the files path.
> Or is it better to create a new separate recipe that just ships my
> version of the configuration file? How are conflicts handled when two
> recipes attempt to install the same file?
No, do not do this, two packages can't install the same file (if the
file is being staged to the sysroot, bitbake will catch that, but I am
not sure if currently that throws and error or just a warning; in your
case with a file that is not staged in a sysroot the problem would only
become apparent at rootfs time, but I am not sure how the different
package managers handle this).
Tomas
>
> Thanks,
> Brad
>
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
--
http://sleepfive.com
next prev parent reply other threads:[~2013-09-12 11:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 19:24 How to customize a file coming from another recipe? Brad Litterell
2013-09-12 11:43 ` Tomas Frydrych [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-09-11 20:30 Brad Litterell
2013-09-12 10:16 ` Paul Eggleton
2013-09-12 11:53 ` Nicolas Dechesne
2013-10-10 10:33 ` Paul Eggleton
2013-09-12 10:25 ` Andrea Galbusera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5231A8F3.4050509@r-finger.com \
--to=tf+lists.yocto@r-finger.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.