From 5967e17992001db81eac835f65334e38bd6d8a41 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 25 Aug 2017 08:35:35 +0200 Subject: [PATCH] python3: fix xattrs with musl (patch from Alpine) See https://github.com/GNS3/gns3-gui/issues/1392. --- srcpkgs/python3/patches/fix-xattrs-glibc.patch | 13 +++++++++++++ srcpkgs/python3/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python3/patches/fix-xattrs-glibc.patch diff --git a/srcpkgs/python3/patches/fix-xattrs-glibc.patch b/srcpkgs/python3/patches/fix-xattrs-glibc.patch new file mode 100644 index 00000000000..909901293d5 --- /dev/null +++ b/srcpkgs/python3/patches/fix-xattrs-glibc.patch @@ -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 + #endif + + #ifdef USE_XATTRS diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template index b45c8805e43..fd09b4abe0e 100644 --- a/srcpkgs/python3/template +++ b/srcpkgs/python3/template @@ -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 "