svn commit: r407978 - head/dns/py-py3dns

Sunpoet Po-Chuan Hsieh sunpoet at freebsd.org
Thu Feb 4 08:18:17 UTC 2016


On Thu, Feb 4, 2016 at 2:06 PM, Kubilay Kocak <koobs at freebsd.org> wrote:

> On 4/02/2016 7:54 AM, Sunpoet Po-Chuan Hsieh wrote:
> > Author: sunpoet
> > Date: Wed Feb  3 20:54:33 2016
> > New Revision: 407978
> > URL: https://svnweb.freebsd.org/changeset/ports/407978
> >
> > Log:
> >   - Sort knobs
> >   - Remove incorrect and outdated PYTHON_REL check
> >   - Do not silence test message
> >
> > Modified:
> >   head/dns/py-py3dns/Makefile
> >
> > Modified: head/dns/py-py3dns/Makefile
> >
> ==============================================================================
> > --- head/dns/py-py3dns/Makefile       Wed Feb  3 20:54:28 2016
> (r407977)
> > +++ head/dns/py-py3dns/Makefile       Wed Feb  3 20:54:33 2016
> (r407978)
> > @@ -17,20 +17,11 @@ LICENSE_PERMS=    dist-mirror dist-sell pkg
> >
> >  TEST_DEPENDS=
> ${PYTHON_PKGNAMEPREFIX}pytest>=0:${PORTSDIR}/devel/py-pytest
> >
> > -USES=                python:3.3+
> > -USE_PYTHON=  autoplist distutils
> > -
> >  NO_ARCH=     yes
> > -
> > -.include <bsd.port.pre.mk>
> > -
> > -.if ${PYTHON_REL} == 3300
> > -RUN_DEPENDS+=
> ${PYTHON_PKGNAMEPREFIX}ipaddress>=0:${PORTSDIR}/net/py-ipaddress
> > -.elif ${PYTHON_REL} <= 3200
> > -RUN_DEPENDS+=
> ${PYTHON_PKGNAMEPREFIX}ipaddr>=0:${PORTSDIR}/devel/py-ipaddr
> > -.endif
> > +USE_PYTHON=  autoplist distutils
> > +USES=                python:3.3+
>
> Removing the 3300 check breaks the port, which is what r407821 and
> r407820 fixed:
>
> https://svnweb.freebsd.org/changeset/ports/407821
> https://svnweb.freebsd.org/changeset/ports/407820
>
> This causes a regression on 3.3
>
> I'm also -1 on removing declarations of which python versions a package
> supports, whether or not we have them in the tree.
>
> If a package supports 3.2+, we remove information, and make the
> dependency declaration incorrect, by changing it to 3.3+.
>

> Dependencies (particularly for python ports) are declarative, not
> imperative, with the framework then deriving which lang/pythonXY ports
> match, or are suitable.


USES=python3.3+ was done by rm@ for removing Python 3.2 support.

Correct me if I'm wrong.
I removed PYTHON_REL check for its logical error. It should be "PYTHON_REL
< 3300" for Python 3.2.x.

Please note that:
- PYTHON_REL == 3300: It is true only for Python 3.3.0 which was replaced
by 3.3.1 on May, 2013 (r318353).
- PYTHON_REL <= 3200: It is true only for Python 3.2.0 which was replaced
by 3.2.1 on Apr, 2012 (r294647). Now Python 3.2 was gone.

Regards,
sunpoet


> >  do-test:
> > -     @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
> > +     cd ${WRKSRC}/ && ${PYTHON_CMD} -m pytest
> >
> > -.include <bsd.port.post.mk>
> > +.include <bsd.port.mk>
> >
>


More information about the svn-ports-all mailing list