From: Henry Margies Date: Wed, 9 Jul 2014 10:38:59 +0000 (+0100) Subject: python, python3: build with tzset support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a37b214c434d92dd7be3ddd69ca3c669c954c3a9;p=buildroot.git 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 --- 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 \