From a37b214c434d92dd7be3ddd69ca3c669c954c3a9 Mon Sep 17 00:00:00 2001 From: Henry Margies Date: Wed, 9 Jul 2014 11:38:59 +0100 Subject: [PATCH] python, python3: build with tzset support This patch adds support for time.tzset() in Python 2.7 and Python 3. 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. [Thomas: adjust commit log.] Signed-off-by: Henry Margies Signed-off-by: Thomas Petazzoni --- package/python/python.mk | 3 ++- package/python3/python3.mk | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/python/python.mk b/package/python/python.mk index cb54e3e965..b237848675 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 98fc31b6f8..1591ac9154 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 \ -- 2.30.2