diff --git a/devel/py-bsd/Makefile b/devel/py-bsd/Makefile index 6a496a825984..22996ff25044 100644 --- a/devel/py-bsd/Makefile +++ b/devel/py-bsd/Makefile @@ -10,20 +10,18 @@ COMMENT= Python wrappers for various BSD libc and system calls LICENSE= BSD3CLAUSE -BROKEN= fails to build - BUILD_DEPENDS= cython>0:lang/cython \ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six +USES= python +USE_PYTHON= autoplist distutils + USE_GITHUB= yes GH_ACCOUNT= freenas GH_PROJECT= py-bsd GH_TAGNAME= 6d148fa -USES= python -USE_PYTHON= autoplist distutils - .include .if ${PYTHON_REL} < 3400 diff --git a/devel/py-bsd/files/patch-bsd__extattr.pyx b/devel/py-bsd/files/patch-bsd__extattr.pyx new file mode 100644 index 000000000000..baa907aaf1a1 --- /dev/null +++ b/devel/py-bsd/files/patch-bsd__extattr.pyx @@ -0,0 +1,11 @@ +--- bsd/extattr.pyx.orig 2017-03-30 01:24:59 UTC ++++ bsd/extattr.pyx +@@ -335,7 +335,7 @@ def _list(fobj, namespace = Namespaces.U + if isinstance(fobj, file_types): + kr = defs.extattr_list_file(fobj.fileno(), namespace, data_buffer, nbytes) + elif type(fobj) is int: +- kr = defs.exattr_list_file(fobj, namespace, data_buffer, nbytes) ++ kr = defs.extattr_list_file(fobj, namespace, data_buffer, nbytes) + elif type(fobj) is str: + if follow: + kr = defs.extattr_list_file(pname, namespace, data_buffer, nbytes) diff --git a/devel/py-bsd/files/patch-defs.pxd b/devel/py-bsd/files/patch-defs.pxd new file mode 100644 index 000000000000..b9dd1f424d2e --- /dev/null +++ b/devel/py-bsd/files/patch-defs.pxd @@ -0,0 +1,11 @@ +--- defs.pxd.orig 2017-03-30 01:24:59 UTC ++++ defs.pxd +@@ -490,7 +490,7 @@ cdef extern from "sys/extattr.h" nogil: + char *EXTATTR_NAMESPACE_SYSTEM_STRING + + ssize_t extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes) +- ssize_t exattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes) ++ ssize_t extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes) + int extattr_delete_fd(int fd, int attrnamespace, const char *attrname) + ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes) +