1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Un-break the devel/py-bsd

This commit is contained in:
Timur I. Bakeyev 2017-09-11 04:03:42 +00:00
parent fd879d22e9
commit 92cf99edf9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=449601
3 changed files with 25 additions and 5 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)