Date: Tue, 29 Nov 2016 00:24:59 +1100 From: Kubilay Kocak <koobs@FreeBSD.org> To: tech-lists <tech-lists@zyxst.net>, freebsd-ports@freebsd.org Cc: FreeBSD Python <python@FreeBSD.org> Subject: Re: graphics/py3-cairo cannot find Python.h, but Python.h is present Message-ID: <d91945fe-310d-e947-d7a1-9f78448b8ada@FreeBSD.org> In-Reply-To: <73d9119f-29fe-1f27-9845-354997077cc5@zyxst.net> References: <30b728cd-4f5b-fb00-be41-c2f21e54eded@zyxst.net> <0c801f97-bb8f-3219-4923-5ae6c721d8af@FreeBSD.org> <862561bd-d6ed-d316-9de6-3807285ec0e9@zyxst.net> <15ecc8c9-40db-552b-c459-56507ac7e7c9@FreeBSD.org> <555a5a00-3d6a-ad8d-a0c0-2800cf2e0d62@zyxst.net> <27c87941-575c-70d3-4f41-d7bb400d5a69@zyxst.net> <73d9119f-29fe-1f27-9845-354997077cc5@zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 27/11/2016 10:50 PM, tech-lists wrote: > On 27/11/2016 11:36, tech-lists wrote: >> also, it's uninstallable from the pkg repo, even though freshports >> suggests it should be: >> >> # pkg install py34-cairo >> Updating FreeBSD repository catalogue... >> FreeBSD repository is up-to-date. >> All repositories are up-to-date. >> pkg: No packages available to install matching 'py34-cairo' have been >> found in the repositories > > pkg install py35-cairo worked :D > The reason for this is the "default version" of python3 was recently updated from 3.4 to 3.5. [1]. What this effectively means for users is that for ports that ask for a 3.x version of Python, the version of packages produced by the official package building cluster are now py35-* versions, where previously they were py34-*. Note: The above only happens for ports (a small minority) that either: - Explicitly *ask* to be built with a 3.x version of Python (Like py3-* ports) - Ports that *only* work with Python 3.x (eg: USES=python:3.4+) For those that don't (the majority), only py27-* versions are built, because 2.7 is the default 'python' version, as in DEFAULT_VERSIONS=python=2.7 in usr/ports/Mk/bsd.default-versions.mk, if not otherwise set/overridden by the user. Note #2: py3-* ports are actually just temporary workarounds used major dependency ports (like py*-cairo), because: We are waiting for the "Variants" feature [2][3] to land in order for the Ports Framework to gain support for "building *multiple* packages from a single port origin", which in the Python ports case, means both py27 and py3x packages being built and made available at the same time for all ports that support both Python 2 and 3. Until then, only 2.7 official packages even if they support multiple versions. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204519 [2] https://reviews.freebsd.org/D5563 [3] [3] https://github.com/freebsd/poudriere/issues/259 Now you know everything :) ./koobs
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d91945fe-310d-e947-d7a1-9f78448b8ada>