Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2017 04:03:42 +0000 (UTC)
From:      "Timur I. Bakeyev" <timur@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r449601 - in head/devel/py-bsd: . files
Message-ID:  <201709110403.v8B43gqZ010426@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: timur
Date: Mon Sep 11 04:03:42 2017
New Revision: 449601
URL: https://svnweb.freebsd.org/changeset/ports/449601

Log:
  Un-break the devel/py-bsd

Added:
  head/devel/py-bsd/files/
  head/devel/py-bsd/files/patch-bsd__extattr.pyx   (contents, props changed)
  head/devel/py-bsd/files/patch-defs.pxd   (contents, props changed)
Modified:
  head/devel/py-bsd/Makefile

Modified: head/devel/py-bsd/Makefile
==============================================================================
--- head/devel/py-bsd/Makefile	Mon Sep 11 03:50:26 2017	(r449600)
+++ head/devel/py-bsd/Makefile	Mon Sep 11 04:03:42 2017	(r449601)
@@ -10,19 +10,17 @@ COMMENT=	Python wrappers for various BSD libc and syst
 
 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>
 

Added: head/devel/py-bsd/files/patch-bsd__extattr.pyx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-bsd/files/patch-bsd__extattr.pyx	Mon Sep 11 04:03:42 2017	(r449601)
@@ -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)

Added: head/devel/py-bsd/files/patch-defs.pxd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-bsd/files/patch-defs.pxd	Mon Sep 11 04:03:42 2017	(r449601)
@@ -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)
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709110403.v8B43gqZ010426>