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

Mike Looijmans
2016-01-15T06:27:27Z

﻿How about /etc/init.d and /etc/rcS.d? Are these now suddenly CONFFILES too?

On 15-01-16 03:29, 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(+)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 2fe6b24..f0e4b3a 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -271,6 +271,7 @@ PACKAGE_BEFORE_PN ?= ""
> PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
> PACKAGES_DYNAMIC = "^${PN}-locale-.*"
> FILES = ""
> +CONFFILES = "${sysconfdir}/*"
>
> FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \
> ${sysconfdir} ${sharedstatedir} ${localstatedir} \
>

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail