From 61561369038f3bc3c3aa712f2224b28f4bb273b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Thu, 2 Jul 2015 15:37:22 +0200 Subject: [PATCH] python3: disable usage of wcsftime (broken in uClibc) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python 3 prefers usage of wcsftime() over strftime() if it's available, however this function returns just an empty string in some older uClibc versions. Proposed solution disables detection of wcsftime() in ./configure that results in HAVE_WCSFTIME being undefined, effectively disabling branches of code that use possibly broken wcsftime(). See: http://lists.busybox.net/pipermail/uclibc/2014-November/048718.html Signed-off-by: Jan Čermák --- lang/python3/Makefile | 2 +- .../patches/012-disable-wcsftime-detection.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 lang/python3/patches/012-disable-wcsftime-detection.patch diff --git a/lang/python3/Makefile b/lang/python3/Makefile index b9d29aab2..e68f415fb 100644 --- a/lang/python3/Makefile +++ b/lang/python3/Makefile @@ -14,7 +14,7 @@ PYTHON_VERSION:=$(PYTHON3_VERSION) PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO) PKG_NAME:=python3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz diff --git a/lang/python3/patches/012-disable-wcsftime-detection.patch b/lang/python3/patches/012-disable-wcsftime-detection.patch new file mode 100644 index 000000000..55a383c28 --- /dev/null +++ b/lang/python3/patches/012-disable-wcsftime-detection.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index 274af7e..85bbf0e 100755 +--- a/configure ++++ b/configure +@@ -10555,7 +10555,7 @@ for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ + sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ + sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ + truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ +- wcscoll wcsftime wcsxfrm wmemcmp writev _getpty ++ wcscoll wcsxfrm wmemcmp writev _getpty + do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` + ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"