Re: [PATCH 1/8] bitbake.conf: set CONFFILES by default

Robert Yang
2016-01-16T05:37:01Z

On 01/15/2016 07:12 PM, Richard Purdie wrote:
> On Thu, 2016-01-14 at 18:29 -0800, Robert Yang wrote:
>> There are a lot of binary packages have files in /etc/, but only a
>> few
>> of them have set CONFFILES, more than 180 packages are not set in a
>> world build. So treat all the files in /etc/ as CONFFILES as Debian
>> does:
>> - All the files in /etc/ are CONFFILES
>> - Move the file out of /etc/ if it is not a conffile
>> - If /etc/foo can't be moved out, and is changed during
>> runtime, then create a symlink /etc/foo -> /var/foo
>>
>> [YOCTO #8436]
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> meta/conf/bitbake.conf | 1 +
>> 1 file changed, 1 insertion(+)
>
> We have discussed this before and we decided that setting CONFFILES
> globally seemed like a bad idea?

Sorry, but I can't find any emails which said this was a bad idea.
If we don't set CONFFILES by default, maybe we need mark a lot of
CONFFILES inside the recipes. I think that mark the CONFFILES under
/etc/ doesn't hurt anything, but help a lot when doing upgrade on
target:

1) When the old file is not changed, it will be replaced by new file.
2) When the old file is changed, it will ask the user what to do (dpkg)
or save a bak (rpm).

//Robert

>
> What has changed since the last discussion?
>
> Cheers,
>
> Richard
>