aboutsummaryrefslogtreecommitdiffstats
path: root/community/python3-tkinter/fix-xattrs-glibc.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-10-27 07:04:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-10-27 16:49:59 +0000
commit6f4cca64ba524f3bb7b076776e940befef11390e (patch)
treef85ed725ef9d95fcf877d8898ee248b4ab56cfa4 /community/python3-tkinter/fix-xattrs-glibc.patch
parent63e2605b9bfa963e05166f5a1631fd9164600698 (diff)
downloadaports-6f4cca64ba524f3bb7b076776e940befef11390e.tar.bz2
aports-6f4cca64ba524f3bb7b076776e940befef11390e.tar.xz
main/python3: fix cyclic dependency for tkinter
Add a separate apkbuild for tkinter to avoid the cyclic buildtime dependency: python3 -> tk -> libX11 -> libxcb -> xcb-proto -> python3
Diffstat (limited to 'community/python3-tkinter/fix-xattrs-glibc.patch')
-rw-r--r--community/python3-tkinter/fix-xattrs-glibc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/python3-tkinter/fix-xattrs-glibc.patch b/community/python3-tkinter/fix-xattrs-glibc.patch
new file mode 100644
index 0000000000..57a8fb73ab
--- /dev/null
+++ b/community/python3-tkinter/fix-xattrs-glibc.patch
@@ -0,0 +1,15 @@
+diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
+index 8f8ba25..72b92da 100644
+--- a/Modules/posixmodule.c
++++ b/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