* BB Equivalent for %config(noreplace)
@ 2017-05-10 13:59 Chris Trobridge
2017-05-11 21:30 ` Andrea Galbusera
0 siblings, 1 reply; 2+ messages in thread
From: Chris Trobridge @ 2017-05-10 13:59 UTC (permalink / raw)
To: Yocto List
When applying rpm updates generated by yocto, configuration files/directories are overwritten with files from the rpm.
My spec file for generating equivalent native packages with rpmbuild specifies these files with %config(noreplace) so that this overwriting does no occur.
Is it possible to get this information into the rpm files generated by yocto?
Thanks,
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BB Equivalent for %config(noreplace)
2017-05-10 13:59 BB Equivalent for %config(noreplace) Chris Trobridge
@ 2017-05-11 21:30 ` Andrea Galbusera
0 siblings, 0 replies; 2+ messages in thread
From: Andrea Galbusera @ 2017-05-11 21:30 UTC (permalink / raw)
To: Chris Trobridge; +Cc: Yocto List
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]
On Wed, May 10, 2017 at 3:59 PM, Chris Trobridge <christrobridge@hotmail.com
> wrote:
> When applying rpm updates generated by yocto, configuration
> files/directories are overwritten with files from the rpm.
>
> My spec file for generating equivalent native packages with rpmbuild
> specifies these files with %config(noreplace) so that this overwriting does
> no occur.
>
> Is it possible to get this information into the rpm files generated by
> yocto?
>
The usual way is to add the configuration files to the CONFFILES variable
in your recipe. This does what you want in a package management system
agnostic way. See [1] for details.
http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-CONFFILES
[-- Attachment #2: Type: text/html, Size: 1187 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-11 21:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-10 13:59 BB Equivalent for %config(noreplace) Chris Trobridge
2017-05-11 21:30 ` Andrea Galbusera
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.