python3: fix xattrs with musl (patch from Alpine)

See https://github.com/GNS3/gns3-gui/issues/1392.
This commit is contained in:
Alessio Sergi 2017-08-25 08:35:35 +02:00
parent 45ab6d37e7
commit 5967e17992
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
--- Modules/posixmodule.c.orig
+++ Modules/posixmodule.c
@@ -103,8 +103,9 @@ corresponding Unix manual entries for more information on calls.");
#undef HAVE_SCHED_SETAFFINITY
#endif
-#if defined(HAVE_SYS_XATTR_H) && defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__GNU__)
+#if defined(HAVE_SYS_XATTR_H) && defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(__GNU__)
#define USE_XATTRS
+#include <linux/limits.h>
#endif
#ifdef USE_XATTRS

View File

@ -1,7 +1,7 @@
# Template file for 'python3'
pkgname=python3
version=3.5.4
revision=1
revision=2
wrksrc="Python-${version}"
short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"