]> code.ossystems Code Review - openembedded-core.git/commitdiff
python: time.tzset missing
authorArmin Kuster <akuster808@gmail.com>
Fri, 8 Mar 2019 14:37:26 +0000 (06:37 -0800)
committerArmin Kuster <akuster808@gmail.com>
Sat, 13 Apr 2019 19:30:32 +0000 (12:30 -0700)
import time
time.tzset()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'time' has no attribute 'tzset'

enable tzset in both python versions

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Fix up for Thud context ie python3_3.5.6]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/python/python3_3.5.6.bb
meta/recipes-devtools/python/python_2.7.15.bb

index 2cb65045aacce9a0e73e0cc27c6505f8137000a1..6aa6df658c4d5ffc67aae8b84e1444ac01915b2c 100644 (file)
@@ -61,6 +61,7 @@ CACHED_CONFIGUREVARS = "ac_cv_have_chflags=no \
                 ac_cv_buggy_getaddrinfo=no \
                 ac_cv_file__dev_ptmx=yes \
                 ac_cv_file__dev_ptc=no \
+                ac_cv_working_tzset=yes \
 "
 
 TARGET_CC_ARCH += "-DNDEBUG -fno-inline"
index c22c762d99fd013ef5199c26c109b8eaa7116503..3f361ae7c4773a72d4081fe01042d52bac8c18fe 100644 (file)
@@ -41,7 +41,7 @@ inherit autotools multilib_header python-dir pythonnative ptest
 
 CONFIGUREOPTS += " --with-system-ffi "
 
-EXTRA_OECONF += "ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no"
+EXTRA_OECONF += "ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no ac_cv_working_tzset=yes"
 
 PACKAGECONFIG ??= "bdb"
 PACKAGECONFIG[bdb] = ",,db"