diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-05-02 15:13:45 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-05-02 15:13:50 +0000 |
commit | 6e923534e20374eb812cabc9cdbcaae6c9f7d4f4 (patch) | |
tree | 5f4f16625aa4f8241e92e92a76c68733dc8efb2c /main | |
parent | b0b02363a94bb0d9c05c2bba9580bdc176c2a3ce (diff) | |
download | aports-6e923534e20374eb812cabc9cdbcaae6c9f7d4f4.tar.bz2 aports-6e923534e20374eb812cabc9cdbcaae6c9f7d4f4.tar.xz |
main/python3: patch to not use sys/xattr.h which is from glibc
Diffstat (limited to 'main')
-rw-r--r-- | main/python3/APKBUILD | 6 | ||||
-rw-r--r-- | main/python3/fix-xattrs-glibc.patch | 15 |
2 files changed, 19 insertions, 2 deletions
diff --git a/main/python3/APKBUILD b/main/python3/APKBUILD index 7a8e4f4d40..f171015a68 100644 --- a/main/python3/APKBUILD +++ b/main/python3/APKBUILD @@ -4,7 +4,7 @@ pkgname=python3 pkgver=3.6.1 _basever="${pkgver%.*}" -pkgrel=1 +pkgrel=2 pkgdesc="A high-level scripting language" url="http://www.python.org" arch="all" @@ -18,6 +18,7 @@ makedepends="expat-dev libressl-dev zlib-dev ncurses-dev bzip2-dev xz-dev tk tk-dev" source="http://www.python.org/ftp/python/$pkgver/Python-$pkgver.tar.xz musl-find_library.patch + fix-xattrs-glibc.patch " builddir="$srcdir/Python-$pkgver" @@ -93,4 +94,5 @@ tkinter() { } sha512sums="8605fb7019386fec227d4b06d06f00ae500a8a89df289bfe6141bb56196c75483a60cc0ee553930742b31cefce68add5ccf226e0f27b7b915f5026d597e1ac29 Python-3.6.1.tar.xz -ab8eaa2858d5109049b1f9f553198d40e0ef8d78211ad6455f7b491af525bffb16738fed60fc84e960c4889568d25753b9e4a1494834fea48291b33f07000ec2 musl-find_library.patch" +ab8eaa2858d5109049b1f9f553198d40e0ef8d78211ad6455f7b491af525bffb16738fed60fc84e960c4889568d25753b9e4a1494834fea48291b33f07000ec2 musl-find_library.patch +37b6ee5d0d5de43799316aa111423ba5a666c17dc7f81b04c330f59c1d1565540eac4c585abe2199bbed52ebe7426001edb1c53bd0a17486a2a8e052d0f494ad fix-xattrs-glibc.patch" diff --git a/main/python3/fix-xattrs-glibc.patch b/main/python3/fix-xattrs-glibc.patch new file mode 100644 index 0000000000..57a8fb73ab --- /dev/null +++ b/main/python3/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 |