/news/sn/

. Sponsored by: Absolight Simplify Makefile: use PY_ENUM34 2018-02-26T22:31:36+00:00 sunpoet sunpoet@FreeBSD.org 2018-02-26T22:31:36+00:00 33c8aabee311cc08f00d49b7ccd278da11931f4a With hat: python
With hat:	python
Convert Python ports to FLAVORS. 2017-11-30T15:50:30+00:00 mat mat@FreeBSD.org 2017-11-30T15:50:30+00:00 32512cab3e8dd90b7cd0525bb5dc98007db431e2 Ports using USE_PYTHON=distutils are now flavored. They will automatically get flavors (py27, py34, py35, py36) depending on what versions they support. There is also a USE_PYTHON=flavors for ports that do not use distutils but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if using distutils but flavors are not wanted. A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been added to cope with Python ports that did not have the Python PKGNAMEPREFIX but are flavored. USES=python now also exports a PY_FLAVOR variable that contains the current python flavor. It can be used in dependency lines when the port itself is not python flavored. For example, deskutils/calibre. By default, all the flavors are generated. To only generate flavors for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf. In all the ports with Python dependencies, the *_DEPENDS entries MUST end with the flavor so that the framework knows which to build/use. This is done by appending '@${PY_FLAVOR}' after the origin (or @${FLAVOR} if in a Python module with Python flavors, as the content will be the same). For example: RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} PR: 223071 Reviewed by: portmgr, python Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12464
  Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
Un-break the devel/py-bsd 2017-09-11T04:03:42+00:00 timur timur@FreeBSD.org 2017-09-11T04:03:42+00:00 e5aea577625f4b4134734a71d402f96be249a6f0

Mark BROKEN: fails to build 2017-09-03T10:35:09+00:00 antoine antoine@FreeBSD.org 2017-09-03T10:35:09+00:00 de8380fede87bfc3ef1c0c2b42bdfb781ec60edf cythoning bsd/extattr.pyx to bsd/extattr.c Error compiling Cython file: ------------------------------------------------------------ ... attr_name = k attr_data = v data_len = len(v) if isinstance(fobj, file_types): kr = defs.extattr_set_fd(fobj.fileno(), namespace, attr_name, attr_data, data_len) ^ ------------------------------------------------------------ bsd/extattr.pyx:266:21: cimported module has no attribute 'extattr_set_fd' Reported by: pkg-fallout
cythoning bsd/extattr.pyx to bsd/extattr.c
Error compiling Cython file:
------------------------------------------------------------
...
        attr_name = k
        attr_data = v
        data_len = len(v)

        if isinstance(fobj, file_types):
            kr = defs.extattr_set_fd(fobj.fileno(), namespace, attr_name, attr_data, data_len)
                    ^
------------------------------------------------------------
bsd/extattr.pyx:266:21: cimported module has no attribute 'extattr_set_fd'

Reported by:	pkg-fallout
devel/py-bsd: fix copy-n-paste 2017-06-18T19:35:26+00:00 wg wg@FreeBSD.org 2017-06-18T19:35:26+00:00 5ddcfcf3902645c406daf3510d1de14c6497f12c

devel/py-bsd: Python wrappers for various BSD libc and system calls 2017-06-18T19:28:40+00:00 wg wg@FreeBSD.org 2017-06-18T19:28:40+00:00 9e62e0effd371cc79485aabb5e2568c12ea62172 WWW: https://github.com/freenas/py-bsd
WWW: https://github.com/freenas/py-bsd