[Buildroot] [PATCH v2 1/1] Build Python with tzset support

Henry Margies henry.margies at gmail.com
Fri Jul 11 16:47:07 UTC 2014


Hi all,

any comments on my patch? Please let me know if there is something wrong with it or whether I sent it the wrong way?


Best regards & a nice weekend,

Henry


On 9 Jul 2014, at 11:38, Henry Margies <henry.margies at gmail.com> wrote:

> This patch adds support for time.tzset() in Python2.7 and Python3.
> 
> The Python configure script sets ac_cv_working_tzset to 'no' when
> cross compiling, although it should be available and work with all 
> toolchains supported by Buildroot (?).
> The patch below pre-sets the variable so that time.tzset() works.
> 
> 
> Signed-off-by: Henry Margies <henry.margies at gmail.com>
> ---
> Changes v1 -> v2:
> - added similar patch for Python3
> 
> package/python/python.mk   |    3 ++-
> package/python3/python3.mk |    1 +
> 2 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/package/python/python.mk b/package/python/python.mk
> index cb54e3e..b237848 100644
> --- a/package/python/python.mk
> +++ b/package/python/python.mk
> @@ -121,7 +121,8 @@ endif
> PYTHON_CONF_ENV += \
> 	ac_cv_have_long_long_format=yes \
> 	ac_cv_file__dev_ptmx=yes \
> -	ac_cv_file__dev_ptc=yes
> +	ac_cv_file__dev_ptc=yes \
> +	ac_cv_working_tzset=yes
> 
> PYTHON_CONF_OPT += \
> 	--without-cxx-main 	\
> diff --git a/package/python3/python3.mk b/package/python3/python3.mk
> index 98fc31b..1591ac9 100644
> --- a/package/python3/python3.mk
> +++ b/package/python3/python3.mk
> @@ -96,6 +96,7 @@ PYTHON3_CONF_ENV += \
> 	ac_cv_have_long_long_format=yes \
> 	ac_cv_file__dev_ptmx=yes \
> 	ac_cv_file__dev_ptc=yes \
> +	ac_cv_working_tzset=yes
> 
> PYTHON3_CONF_OPT += \
> 	--without-ensurepip	\
> -- 
> 1.7.2.5
> 




More information about the buildroot mailing list