Skip to contentSkip to conversation

python3: don't use wcsftime() on uClibc

PATCH New Thomas Petazzoni 2 participants 2 messages Nov 13, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3: don't use wcsftime() on uClibc

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.

---
 package/python3/python3.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/python3/python3.mk +6 -0
index 2c1ef2a..0cb2630 100644
@@ -107,6 +107,12 @@ PYTHON3_CONF_ENV += \
 	ac_cv_file__dev_ptc=yes \
 	ac_cv_working_tzset=yes
 
+# uClibc is now 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 	\
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 python3: don't use wcsftime() on uClibc

Quoted 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

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.

---
 package/python3/python3.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/python3/python3.mk +0 -0
index 2c1ef2a..0cb2630 100644

package/python3/python3.mk PYTHON3_CONF_ENV += \ · line 110

Quoted 4 lines
package/python3/python3.mk +1 -0
@@ -107,6 +107,12 @@ PYTHON3_CONF_ENV += \
 	ac_cv_file__dev_ptc=yes \
 	ac_cv_working_tzset=yes
 
+# uClibc is now to have a broken wcsftime() implementation, so tell

s/now/known/

Committed with that fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard