[OE-core] [PATCH 2/2] tzdata: install /etc/localtime alongside /etc/timezone
Koen Kooi
koen at dominion.thruhere.net
Wed Aug 29 14:47:10 UTC 2012
Op 29 aug. 2012, om 16:24 heeft Ross Burton <ross.burton at intel.com> het volgende geschreven:
> Lots of code (such a GLib) expects this to exist and link to the current
> timezone data.
>
> Signed-off-by: Ross Burton <ross.burton at intel.com>
> ---
> meta/recipes-extended/tzdata/tzdata_2012d.bb | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/tzdata/tzdata_2012d.bb b/meta/recipes-extended/tzdata/tzdata_2012d.bb
> index 31e1266..9741101 100644
> --- a/meta/recipes-extended/tzdata/tzdata_2012d.bb
> +++ b/meta/recipes-extended/tzdata/tzdata_2012d.bb
> @@ -5,7 +5,7 @@ LICENSE = "PD"
> LIC_FILES_CHKSUM = "file://asia;beginline=2;endline=3;md5=06468c0e84ef4d4c97045a4a29b08234"
> DEPENDS = "tzcode-native"
>
> -PR = "r1"
> +PR = "r2"
>
> inherit allarch
>
> @@ -49,6 +49,7 @@ do_install () {
> # Install default timezone
> install -d ${D}${sysconfdir}
> echo ${DEFAULT_TIMEZONE} > ${D}${sysconfdir}/timezone
> + ln -s ${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ${D}${sysconfdir}/localtime
Awesome! I've been campaigning for the symlink solution for a while now. Good thing that split-/usr nonsense is over now.
More information about the Openembedded-core
mailing list