base-files: do_install.sigdata: remove the depends on DATE
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 25 Mar 2014 03:10:52 +0000 (11:10 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Mar 2014 09:42:05 +0000 (09:42 +0000)
If we run "bitbake -S base-files" today, and re-run it tomorrow with
nothing changed, we would see that the do_install.sigdata changes
because of:

do_intall -> do_install_basefilesissue -> DISTRO_VERSION -> DATE

We had set:
IMAGE_NAME[vardepsexclude] += "DATETIME"
in meta/conf/bitbake.conf, we can set a similar line in
base-files_3.0.14.bb to fix the problem.

[YOCTO #6032]

(From OE-Core rev: cd06824bda76a9d08a3318e0621e31c0e8c39f74)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/base-files/base-files_3.0.14.bb

index cee19a1..9699e31 100644 (file)
@@ -103,6 +103,7 @@ do_install () {
        ln -sf /proc/mounts ${D}${sysconfdir}/mtab
 }
 
+DISTRO_VERSION[vardepsexclude] += "DATE"
 do_install_basefilesissue () {
        if [ "${hostname}" != "" ]; then
                if [ -n "${MACHINE}" -a "${hostname}" = "openembedded" ]; then