aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authortimur <timur@FreeBSD.org>2017-09-11 12:03:42 +0800
committertimur <timur@FreeBSD.org>2017-09-11 12:03:42 +0800
commite5aea577625f4b4134734a71d402f96be249a6f0 (patch)
tree3b6a44f75bd1c28fef017d15a145c2b551f7fc12 /devel
parente4b61b2b4e91ac58ca538d0efcbc9aa9dc321a9c (diff)
downloadfreebsd-ports-gnome-e5aea577625f4b4134734a71d402f96be249a6f0.tar.gz
freebsd-ports-gnome-e5aea577625f4b4134734a71d402f96be249a6f0.tar.zst
freebsd-ports-gnome-e5aea577625f4b4134734a71d402f96be249a6f0.zip
Un-break the devel/py-bsd
Diffstat (limited to 'devel')
-rw-r--r--devel/py-bsd/Makefile8
-rw-r--r--devel/py-bsd/files/patch-bsd__extattr.pyx11
-rw-r--r--devel/py-bsd/files/patch-defs.pxd11
3 files changed, 25 insertions, 5 deletions
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 <bsd.port.pre.mk>
.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)
+