[oe] [PATCH] tzdata-uclibc: add recipe for uclibc timezone database
Roman I Khimov
roman at khimov.ru
Sat Jul 3 05:38:06 UTC 2010
В сообщении от Суббота 03 июля 2010 08:51:50 автор Khem Raj написал:
> 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 at 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 () ...
Hmm. Just haven't thought about it this way as uclibc version is very
different from standard one, so this separation was intended. Also after
http://git.uclibc.org/uClibc/commit/?id=87327f43e4ea65d63ceab0985cf814e22940579a
it is possible to use standard timezone database in uClibc, so you could want
to have that for some mixed-libc setup.
--
http://roman.khimov.ru
mailto: roman at khimov.ru
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100703/6cb9641f/attachment-0002.sig>
More information about the Openembedded-devel
mailing list