]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake.conf: set CONFFILES by default
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 8 Oct 2015 15:10:50 +0000 (08:10 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Fri, 9 Oct 2015 02:41:43 +0000 (19:41 -0700)
There are a lot of binary packages have files in /etc/, but only a few
of them have set CONFFILES, 187 packages are not set in a world build.
So treat all the files in /etc/ as CONFILES as Debian does
- 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

index 9ddd1c080bad31103a330a1a8fe6f61459e8fceb..7a53819962ab24a639894d2f41de870e98c9429f 100644 (file)
@@ -269,6 +269,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} \