graphics/py3-cairo cannot find Python.h, but Python.h is present

Kubilay Kocak koobs at FreeBSD.org
Mon Nov 28 13:27:04 UTC 2016


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


More information about the freebsd-ports mailing list