python: Replace utime with utimes 9609/head
authorRosen Penev <rosenp@gmail.com>
Wed, 31 Jul 2019 06:33:40 +0000 (23:33 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 31 Jul 2019 06:44:43 +0000 (23:44 -0700)
Optionally fixes compilation with uClibc-ng.

Based on the surrounding code, this looks like an oversight.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lang/python/python/Makefile
lang/python/python/patches/025-utime.patch [new file with mode: 0644]

index b83613cdc6d137ef1ce212c67c1a721c7dd64c0f..bfd9c41034b3a637d6820f05d4f72a2207737621 100644 (file)
@@ -12,7 +12,7 @@ include ../python-version.mk
 
 PKG_NAME:=python
 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
-PKG_RELEASE:=8
+PKG_RELEASE:=9
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
diff --git a/lang/python/python/patches/025-utime.patch b/lang/python/python/patches/025-utime.patch
new file mode 100644 (file)
index 0000000..20d0310
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Modules/posixmodule.c
++++ b/Modules/posixmodule.c
+@@ -3070,7 +3070,7 @@ done:
+     if (arg == Py_None) {
+         /* optional time values not given */
+         Py_BEGIN_ALLOW_THREADS
+-        res = utime(path, NULL);
++        res = utimes(path, NULL);
+         Py_END_ALLOW_THREADS
+     }
+     else if (!PyTuple_Check(arg) || PyTuple_Size(arg) != 2) {