* [PATCH] tzdata: fix RPROVIDES definitions
@ 2010-07-02 14:57 Roman I Khimov
2010-07-02 14:57 ` [PATCH] tzdata-uclibc: add recipe for uclibc timezone database Roman I Khimov
0 siblings, 1 reply; 7+ messages in thread
From: Roman I Khimov @ 2010-07-02 14:57 UTC (permalink / raw)
To: openembedded-devel
It seems a bit strange for tzdata-smth explicitly rprovide tzdata-smth, most
probably it were timezone-* packages that ought to be rprovided (see
RCONFLICTS in the same .inc).
Signed-off-by: Roman I Khimov <khimov@altell.ru>
---
recipes/tzdata/tzdata.inc | 56 ++++++++++++++++++++++----------------------
1 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/recipes/tzdata/tzdata.inc b/recipes/tzdata/tzdata.inc
index 1f4dfdb..ac9a6a7 100644
--- a/recipes/tzdata/tzdata.inc
+++ b/recipes/tzdata/tzdata.inc
@@ -3,7 +3,7 @@ SECTION = "base"
PRIORITY = "optional"
DEPENDS = "tzcode-native"
-INC_PR = "r7"
+INC_PR = "r8"
DEFAULT_TIMEZONE ?= "Europe/London"
@@ -54,54 +54,54 @@ PACKAGE_ARCH = "all"
# Packages primarily organized by directory with a major city
# in most time zones in the base package
-PACKAGES = "${PN}-dbg tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \
- tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \
- tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific"
+PACKAGES = "${PN}-dbg ${PN} ${PN}-misc ${PN}-posix ${PN}-right ${PN}-africa \
+ ${PN}-americas ${PN}-antarctica ${PN}-arctic ${PN}-asia \
+ ${PN}-atlantic ${PN}-australia ${PN}-europe ${PN}-pacific"
ALLOW_EMPTY_${PN}-dbg = "1"
-FILES_tzdata-africa += "${datadir}/zoneinfo/Africa/*"
-RPROVIDES_tzdata-africa = "tzdata-africa"
+FILES_${PN}-africa += "${datadir}/zoneinfo/Africa/*"
+RPROVIDES_${PN}-africa = "timezone-africa"
-FILES_tzdata-americas += "${datadir}/zoneinfo/America/* \
+FILES_${PN}-americas += "${datadir}/zoneinfo/America/* \
${datadir}/zoneinfo/US/* \
${datadir}/zoneinfo/Brazil/* \
${datadir}/zoneinfo/Canada/* \
${datadir}/zoneinfo/Mexico/* \
${datadir}/zoneinfo/Chile/*"
-RPROVIDES_tzdata-americas = "tzdata-americas"
+RPROVIDES_${PN}-americas = "timezone-americas"
-FILES_tzdata-antarctica += "${datadir}/zoneinfo/Antarctica/*"
-RPROVIDES_tzdata-antarctica = "tzdata-antarctica"
+FILES_${PN}-antarctica += "${datadir}/zoneinfo/Antarctica/*"
+RPROVIDES_${PN}-antarctica = "timezone-antarctica"
-FILES_tzdata-arctic += "${datadir}/zoneinfo/Arctic/*"
-RPROVIDES_tzdata-arctic = "tzdata-arctic"
+FILES_${PN}-arctic += "${datadir}/zoneinfo/Arctic/*"
+RPROVIDES_${PN}-arctic = "timezone-arctic"
-FILES_tzdata-asia += "${datadir}/zoneinfo/Asia/* \
+FILES_${PN}-asia += "${datadir}/zoneinfo/Asia/* \
${datadir}/zoneinfo/Indian/* \
${datadir}/zoneinfo/Mideast/*"
-RPROVIDES_tzdata-asia = "tzdata-asia"
+RPROVIDES_${PN}-asia = "timezone-asia"
-FILES_tzdata-atlantic += "${datadir}/zoneinfo/Atlantic/*"
-RPROVIDES_tzdata-atlantic = "tzdata-atlantic"
+FILES_${PN}-atlantic += "${datadir}/zoneinfo/Atlantic/*"
+RPROVIDES_${PN}-atlantic = "timezone-atlantic"
-FILES_tzdata-australia += "${datadir}/zoneinfo/Australia/*"
-RPROVIDES_tzdata-australia = "tzdata-australia"
+FILES_${PN}-australia += "${datadir}/zoneinfo/Australia/*"
+RPROVIDES_${PN}-australia = "timezone-australia"
-FILES_tzdata-europe += "${datadir}/zoneinfo/Europe/*"
-RPROVIDES_tzdata-europe = "tzdata-europe"
+FILES_${PN}-europe += "${datadir}/zoneinfo/Europe/*"
+RPROVIDES_${PN}-europe = "timezone-europe"
-FILES_tzdata-pacific += "${datadir}/zoneinfo/Pacific/*"
-RPROVIDES_tzdata-pacific = "tzdata-pacific"
+FILES_${PN}-pacific += "${datadir}/zoneinfo/Pacific/*"
+RPROVIDES_${PN}-pacific = "timezone-pacific"
-FILES_tzdata-posix += "${datadir}/zoneinfo/posix/*"
-RPROVIDES_tzdata-posix = "tzdata-posix"
+FILES_${PN}-posix += "${datadir}/zoneinfo/posix/*"
+RPROVIDES_${PN}-posix = "timezone-posix"
-FILES_tzdata-right += "${datadir}/zoneinfo/right/*"
-RPROVIDES_tzdata-right = "tzdata-right"
+FILES_${PN}-right += "${datadir}/zoneinfo/right/*"
+RPROVIDES_${PN}-right = "timezone-right"
-FILES_tzdata-misc += "${datadir}/zoneinfo/Cuba \
+FILES_${PN}-misc += "${datadir}/zoneinfo/Cuba \
${datadir}/zoneinfo/Egypt \
${datadir}/zoneinfo/Eire \
${datadir}/zoneinfo/Factory \
@@ -119,7 +119,7 @@ FILES_tzdata-misc += "${datadir}/zoneinfo/Cuba \
${datadir}/zoneinfo/Portugal \
${datadir}/zoneinfo/Singapore \
${datadir}/zoneinfo/Turkey"
-RPROVIDES_tzdata-misc = "tzdata-misc"
+RPROVIDES_${PN}-misc = "timezone-misc"
FILES_${PN} += "${datadir}/zoneinfo/Pacific/Honolulu \
--
1.5.6.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] tzdata-uclibc: add recipe for uclibc timezone database
2010-07-02 14:57 [PATCH] tzdata: fix RPROVIDES definitions Roman I Khimov
@ 2010-07-02 14:57 ` 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:51 ` [PATCH] tzdata-uclibc: add recipe for uclibc timezone database Khem Raj
0 siblings, 2 replies; 7+ messages in thread
From: Roman I Khimov @ 2010-07-02 14:57 UTC (permalink / raw)
To: openembedded-devel
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
--
1.5.6.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] base-files: profile: don't set TZ if /etc/TZ is present
2010-07-02 14:57 ` [PATCH] tzdata-uclibc: add recipe for uclibc timezone database Roman I Khimov
@ 2010-07-02 14:57 ` Roman I Khimov
2010-07-03 4:55 ` Khem Raj
2010-07-03 4:51 ` [PATCH] tzdata-uclibc: add recipe for uclibc timezone database Khem Raj
1 sibling, 1 reply; 7+ messages in thread
From: Roman I Khimov @ 2010-07-02 14:57 UTC (permalink / raw)
To: openembedded-devel
uClibc-based systems can have system-wide TZ in /etc/TZ, thus we shouldn't
set TZ variable if it is present.
Signed-off-by: Roman I Khimov <khimov@altell.ru>
---
recipes/base-files/base-files/jornada6xx/profile | 2 +-
.../base-files/base-files/omap3-pandora/profile | 2 +-
.../base-files/base-files/oplinux-uclibc/profile | 2 +-
recipes/base-files/base-files/oplinux/profile | 2 +-
recipes/base-files/base-files/profile | 2 +-
recipes/base-files/base-files/shr/profile | 2 +-
recipes/base-files/base-files_3.0.14.bb | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/recipes/base-files/base-files/jornada6xx/profile b/recipes/base-files/base-files/jornada6xx/profile
index bff0f42..bd9e3e6 100755
--- a/recipes/base-files/base-files/jornada6xx/profile
+++ b/recipes/base-files/base-files/jornada6xx/profile
@@ -9,7 +9,7 @@ if [ "`id -u`" -eq 0 ]; then
PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
fi
-if [ ! -e /etc/localtime ]; then
+if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
# for an explanation of how to set this to your local timezone.
export TZ
diff --git a/recipes/base-files/base-files/omap3-pandora/profile b/recipes/base-files/base-files/omap3-pandora/profile
index 5797535..99b6fce 100644
--- a/recipes/base-files/base-files/omap3-pandora/profile
+++ b/recipes/base-files/base-files/omap3-pandora/profile
@@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
EDITOR="/bin/vi" # needed for packages like cron
test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
-if [ ! -e /etc/localtime ]; then
+if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
# for an explanation of how to set this to your local timezone.
export TZ
diff --git a/recipes/base-files/base-files/oplinux-uclibc/profile b/recipes/base-files/base-files/oplinux-uclibc/profile
index f6ae329..5ad2967 100644
--- a/recipes/base-files/base-files/oplinux-uclibc/profile
+++ b/recipes/base-files/base-files/oplinux-uclibc/profile
@@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
EDITOR="/usr/bin/nano" # needed for packages like cron
TERM="linux" # Basic terminal capab. For screen etc.
-if [ ! -e /etc/localtime ]; then
+if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
# for an explanation of how to set this to your local timezone.
export TZ
diff --git a/recipes/base-files/base-files/oplinux/profile b/recipes/base-files/base-files/oplinux/profile
index f6ae329..5ad2967 100644
--- a/recipes/base-files/base-files/oplinux/profile
+++ b/recipes/base-files/base-files/oplinux/profile
@@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
EDITOR="/usr/bin/nano" # needed for packages like cron
TERM="linux" # Basic terminal capab. For screen etc.
-if [ ! -e /etc/localtime ]; then
+if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
# for an explanation of how to set this to your local timezone.
export TZ
diff --git a/recipes/base-files/base-files/profile b/recipes/base-files/base-files/profile
index b5ce69d..8f7f6b5 100644
--- a/recipes/base-files/base-files/profile
+++ b/recipes/base-files/base-files/profile
@@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
EDITOR="/bin/vi" # needed for packages like cron
test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
-if [ ! -e /etc/localtime ]; then
+if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
# for an explanation of how to set this to your local timezone.
export TZ
diff --git a/recipes/base-files/base-files/shr/profile b/recipes/base-files/base-files/shr/profile
index 05e8490..6e11e81 100644
--- a/recipes/base-files/base-files/shr/profile
+++ b/recipes/base-files/base-files/shr/profile
@@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
EDITOR="/bin/vi" # needed for packages like cron
test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
-if [ ! -e /etc/localtime ]; then
+if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
# for an explanation of how to set this to your local timezone.
export TZ
diff --git a/recipes/base-files/base-files_3.0.14.bb b/recipes/base-files/base-files_3.0.14.bb
index 9801f8a..02bd39b 100644
--- a/recipes/base-files/base-files_3.0.14.bb
+++ b/recipes/base-files/base-files_3.0.14.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Miscellaneous files for the base system."
SECTION = "base"
PRIORITY = "required"
-PR = "r94"
+PR = "r95"
LICENSE = "GPL"
SRC_URI = " \
--
1.5.6.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] tzdata-uclibc: add recipe for uclibc timezone database
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:51 ` Khem Raj
2010-07-03 5:38 ` Roman I Khimov
1 sibling, 1 reply; 7+ messages in thread
From: Khem Raj @ 2010-07-03 4:51 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] base-files: profile: don't set TZ if /etc/TZ is present
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
0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2010-07-03 4:55 UTC (permalink / raw)
To: openembedded-devel
On (02/07/10 18:57), Roman I Khimov wrote:
> uClibc-based systems can have system-wide TZ in /etc/TZ, thus we shouldn't
> set TZ variable if it is present.
>
> Signed-off-by: Roman I Khimov <khimov@altell.ru>
Acked-by: Khem Raj <raj.khem@gmail.com>
what all shells did you test it on.
> ---
> recipes/base-files/base-files/jornada6xx/profile | 2 +-
> .../base-files/base-files/omap3-pandora/profile | 2 +-
> .../base-files/base-files/oplinux-uclibc/profile | 2 +-
> recipes/base-files/base-files/oplinux/profile | 2 +-
> recipes/base-files/base-files/profile | 2 +-
> recipes/base-files/base-files/shr/profile | 2 +-
> recipes/base-files/base-files_3.0.14.bb | 2 +-
> 7 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/recipes/base-files/base-files/jornada6xx/profile b/recipes/base-files/base-files/jornada6xx/profile
> index bff0f42..bd9e3e6 100755
> --- a/recipes/base-files/base-files/jornada6xx/profile
> +++ b/recipes/base-files/base-files/jornada6xx/profile
> @@ -9,7 +9,7 @@ if [ "`id -u`" -eq 0 ]; then
> PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
> fi
>
> -if [ ! -e /etc/localtime ]; then
> +if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
> TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
> # for an explanation of how to set this to your local timezone.
> export TZ
> diff --git a/recipes/base-files/base-files/omap3-pandora/profile b/recipes/base-files/base-files/omap3-pandora/profile
> index 5797535..99b6fce 100644
> --- a/recipes/base-files/base-files/omap3-pandora/profile
> +++ b/recipes/base-files/base-files/omap3-pandora/profile
> @@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
> EDITOR="/bin/vi" # needed for packages like cron
> test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
>
> -if [ ! -e /etc/localtime ]; then
> +if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
> TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
> # for an explanation of how to set this to your local timezone.
> export TZ
> diff --git a/recipes/base-files/base-files/oplinux-uclibc/profile b/recipes/base-files/base-files/oplinux-uclibc/profile
> index f6ae329..5ad2967 100644
> --- a/recipes/base-files/base-files/oplinux-uclibc/profile
> +++ b/recipes/base-files/base-files/oplinux-uclibc/profile
> @@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
> EDITOR="/usr/bin/nano" # needed for packages like cron
> TERM="linux" # Basic terminal capab. For screen etc.
>
> -if [ ! -e /etc/localtime ]; then
> +if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
> TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
> # for an explanation of how to set this to your local timezone.
> export TZ
> diff --git a/recipes/base-files/base-files/oplinux/profile b/recipes/base-files/base-files/oplinux/profile
> index f6ae329..5ad2967 100644
> --- a/recipes/base-files/base-files/oplinux/profile
> +++ b/recipes/base-files/base-files/oplinux/profile
> @@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
> EDITOR="/usr/bin/nano" # needed for packages like cron
> TERM="linux" # Basic terminal capab. For screen etc.
>
> -if [ ! -e /etc/localtime ]; then
> +if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
> TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
> # for an explanation of how to set this to your local timezone.
> export TZ
> diff --git a/recipes/base-files/base-files/profile b/recipes/base-files/base-files/profile
> index b5ce69d..8f7f6b5 100644
> --- a/recipes/base-files/base-files/profile
> +++ b/recipes/base-files/base-files/profile
> @@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
> EDITOR="/bin/vi" # needed for packages like cron
> test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
>
> -if [ ! -e /etc/localtime ]; then
> +if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
> TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
> # for an explanation of how to set this to your local timezone.
> export TZ
> diff --git a/recipes/base-files/base-files/shr/profile b/recipes/base-files/base-files/shr/profile
> index 05e8490..6e11e81 100644
> --- a/recipes/base-files/base-files/shr/profile
> +++ b/recipes/base-files/base-files/shr/profile
> @@ -5,7 +5,7 @@ PATH="/usr/local/bin:/usr/bin:/bin"
> EDITOR="/bin/vi" # needed for packages like cron
> test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
>
> -if [ ! -e /etc/localtime ]; then
> +if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
> TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
> # for an explanation of how to set this to your local timezone.
> export TZ
> diff --git a/recipes/base-files/base-files_3.0.14.bb b/recipes/base-files/base-files_3.0.14.bb
> index 9801f8a..02bd39b 100644
> --- a/recipes/base-files/base-files_3.0.14.bb
> +++ b/recipes/base-files/base-files_3.0.14.bb
> @@ -1,7 +1,7 @@
> DESCRIPTION = "Miscellaneous files for the base system."
> SECTION = "base"
> PRIORITY = "required"
> -PR = "r94"
> +PR = "r95"
> LICENSE = "GPL"
>
> SRC_URI = " \
> --
> 1.5.6.5
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] tzdata-uclibc: add recipe for uclibc timezone database
2010-07-03 4:51 ` [PATCH] tzdata-uclibc: add recipe for uclibc timezone database Khem Raj
@ 2010-07-03 5:38 ` Roman I Khimov
0 siblings, 0 replies; 7+ messages in thread
From: Roman I Khimov @ 2010-07-03 5:38 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: Text/Plain, Size: 1954 bytes --]
В сообщении от Суббота 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@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@khimov.ru
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] base-files: profile: don't set TZ if /etc/TZ is present
2010-07-03 4:55 ` Khem Raj
@ 2010-07-03 5:52 ` Roman I Khimov
0 siblings, 0 replies; 7+ messages in thread
From: Roman I Khimov @ 2010-07-03 5:52 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: Text/Plain, Size: 630 bytes --]
В сообщении от Суббота 03 июля 2010 08:55:04 автор Khem Raj написал:
> On (02/07/10 18:57), Roman I Khimov wrote:
> > uClibc-based systems can have system-wide TZ in /etc/TZ, thus we
> > shouldn't set TZ variable if it is present.
> >
> > Signed-off-by: Roman I Khimov <khimov@altell.ru>
>
> Acked-by: Khem Raj <raj.khem@gmail.com>
>
> what all shells did you test it on.
Bash. Will try on ash also, but the change looks trivial and standard-
compliant to me.
--
http://roman.khimov.ru
mailto: roman@khimov.ru
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-07-03 5:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH] tzdata-uclibc: add recipe for uclibc timezone database Khem Raj
2010-07-03 5:38 ` Roman I Khimov
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.