[Buildroot] [PATCH] package/tzdata: install missing files

Yann E. MORIN yann.morin.1998 at free.fr
Sun May 4 15:50:53 UTC 2014


All,

On 2014-05-04 17:28 +0200, Yann E. MORIN spake thusly:
> From: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> 
> Install two files:
>   - zone.tab   : {country-code,coordinates,timezone} tuples
>   - iso3166.tab: {country-code,country} tuples
> 
> Reported-by: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> ---
>  package/tzdata/tzdata.mk | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/package/tzdata/tzdata.mk b/package/tzdata/tzdata.mk
> index 05a82a2..e90be40 100644
> --- a/package/tzdata/tzdata.mk
> +++ b/package/tzdata/tzdata.mk
> @@ -37,7 +37,8 @@ define TZDATA_BUILD_CMDS
>  endef
>  
>  define TZDATA_INSTALL_TARGET_CMDS
> -	mkdir -p $(TARGET_DIR)/usr/share/zoneinfo
> +	$(INSTALL) -D -m 0644 $(@D)/zone.tab $(TARGET_DIR)/usr/share/zoneinfo/zone.tab
> +	$(INSTALL) -D -m 0644 $(@D)/iso3166.tab $(TARGET_DIR)/usr/share/zoneinfo/iso3166.tab
>  	cp -a $(@D)/_output/* $(TARGET_DIR)/usr/share/zoneinfo
>  	cd $(TARGET_DIR)/usr/share/zoneinfo;    \
>  	for zone in posix/*; do                 \
> @@ -65,7 +66,8 @@ define HOST_TZDATA_BUILD_CMDS
>  endef
>  
>  define HOST_TZDATA_INSTALL_CMDS
> -	mkdir -p $(HOST_DIR)/usr/share/zoneinfo
> +	$(INSTALL) -D -m 0644 $(@D)/zone.tab $(TARGET_DIR)/usr/share/zoneinfo/zone.tab
> +	$(INSTALL) -D -m 0644 $(@D)/iso3166.tab $(TARGET_DIR)/usr/share/zoneinfo/iso3166.tab

Bad, this should go to $(HOST_DIR)...

Regards,
Yann E. MORIN.

>  	cp -a $(@D)/_output/* $(HOST_DIR)/usr/share/zoneinfo
>  endef
>  
> -- 
> 1.8.3.2
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list