From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] tzdata-uclibc: add recipe for uclibc timezone database
Date: Fri, 2 Jul 2010 21:51:50 -0700 [thread overview]
Message-ID: <20100703045150.GA17627@gmail.com> (raw)
In-Reply-To: <1278082654-10070-2-git-send-email-khimov@altell.ru>
On (02/07/10 18:57), Roman I Khimov wrote:
> Recent TZif2 file format contains TZ-like ASCII string at the end that is
> easily extractable and usable with uclibc setup, so this recipe does exactly
> that based on standard tzdata.
>
> Signed-off-by: Roman I Khimov <khimov@altell.ru>
> ---
> recipes/tzdata/tzdata-uclibc_2010j.bb | 16 ++++++++++++++++
> 1 files changed, 16 insertions(+), 0 deletions(-)
> create mode 100644 recipes/tzdata/tzdata-uclibc_2010j.bb
>
> diff --git a/recipes/tzdata/tzdata-uclibc_2010j.bb b/recipes/tzdata/tzdata-uclibc_2010j.bb
> new file mode 100644
> index 0000000..9d0de5d
> --- /dev/null
> +++ b/recipes/tzdata/tzdata-uclibc_2010j.bb
> @@ -0,0 +1,16 @@
> +require tzdata_${PV}.bb
> +
> +do_install_append () {
> + rm -f ${D}${sysconfdir}/localtime
> + rm -f ${D}${sysconfdir}/timezone
> + for i in `find ${D}${datadir}/zoneinfo -type f`; do
> + tail -n 1 $i > temp-zone
> + # Avoid useless NULL files
> + if [ "`cat temp-zone`" != "" ]; then
> + mv temp-zone $i
> + fi
> + done
> + cp -pPR ${D}${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ${D}${sysconfdir}/TZ
> +}
> +
> +CONFFILES_${PN} = "${sysconfdir}/TZ"
> \ No newline at end of file
you could have used overrides in the same recipe.
do_install_append_libc-uclibc () ...
Thx
-Khem
next prev parent reply other threads:[~2010-07-03 4:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-02 14:57 [PATCH] tzdata: fix RPROVIDES definitions Roman I Khimov
2010-07-02 14:57 ` [PATCH] tzdata-uclibc: add recipe for uclibc timezone database Roman I Khimov
2010-07-02 14:57 ` [PATCH] base-files: profile: don't set TZ if /etc/TZ is present Roman I Khimov
2010-07-03 4:55 ` Khem Raj
2010-07-03 5:52 ` Roman I Khimov
2010-07-03 4:51 ` Khem Raj [this message]
2010-07-03 5:38 ` [PATCH] tzdata-uclibc: add recipe for uclibc timezone database Roman I Khimov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100703045150.GA17627@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.