]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
python3: don't use wcsftime() on uClibc
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 13 Nov 2014 21:23:23 +0000 (22:23 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 13 Nov 2014 22:40:50 +0000 (23:40 +0100)
As investigated in bug #7646, wcsftime() doesn't work properly with
uClibc. Until it gets fixed in uClibc, let's tell Python 3 to not use
it. Python 3 will fall back to strftime(), which works properly.

[Peter: fix typo in comment]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Beyonlo <beyonlo@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/python3/python3.mk

index 2c1ef2a568190e6bec74b5a6814e18e0400d5da6..5c72c6ebc9dd8fca8bbe6a4b71c2989381a81fdc 100644 (file)
@@ -107,6 +107,12 @@ PYTHON3_CONF_ENV += \
        ac_cv_file__dev_ptc=yes \
        ac_cv_working_tzset=yes
 
+# uClibc is known to have a broken wcsftime() implementation, so tell
+# Python 3 to fall back to strftime() instead.
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+PYTHON3_CONF_ENV += ac_cv_func_wcsftime=no
+endif
+
 PYTHON3_CONF_OPTS += \
        --without-ensurepip     \
        --without-cxx-main      \