diff options
| author | Rosen Penev <rosenp@gmail.com> | 2019-07-30 23:33:40 -0700 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2019-07-30 23:44:43 -0700 |
| commit | 608df65a627e22db08f04bab0cb97c246ff40449 (patch) | |
| tree | a1510fd49a525876a2cc5cc8d0355c63617dba24 /lang/python | |
| parent | 1c412e16a3474b4ea937df7cfbb5328c3a453879 (diff) | |
python: Replace utime with utimes
Optionally fixes compilation with uClibc-ng.
Based on the surrounding code, this looks like an oversight.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'lang/python')
| -rw-r--r-- | lang/python/python/Makefile | 2 | ||||
| -rw-r--r-- | lang/python/python/patches/025-utime.patch | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lang/python/python/Makefile b/lang/python/python/Makefile index b83613cdc..bfd9c4103 100644 --- a/lang/python/python/Makefile +++ b/lang/python/python/Makefile @@ -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 index 000000000..20d0310d9 --- /dev/null +++ b/lang/python/python/patches/025-utime.patch @@ -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) { |
