From: Henry Margies Date: Fri, 11 Jul 2014 17:47:07 +0100 Subject: [Buildroot] [PATCH v2 1/1] Build Python with tzset support In-Reply-To: <1404902339-25481-1-git-send-email-henry.margies@gmail.com> References: <1404825833-1075-1-git-send-email-henry.margies@gmail.com> <1404902339-25481-1-git-send-email-henry.margies@gmail.com> Message-ID: <5DE00547-AF5F-4299-9F28-1E772BB74624@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 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 > --- > 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 >