Poudriere and python framework of ports

Yasuhiro KIMURA yasu at utahime.org
Sat Jan 9 08:47:01 UTC 2016

From: Shane Ambler <FreeBSD at ShaneWare.Biz>
Subject: Re: Poudriere and python framework of ports
Date: Sat, 9 Jan 2016 16:22:00 +1030

> In poudriere each port is built independently, that is they don't
> inherit the specified python version from the port triggering the
> build
> as a dependency. It is possible that poudriere could be adjusted to
> compensate for this. It would require considering PYTHON_VERSION and
> using pkg names when dealing with dependencies instead of just the
> port
> origin. So, yes to a poudriere bug.
> For now - to get ports to build in poudriere with python3 you need to
> create a make.conf for the poudriere jail -
> /usr/local/etc/poudriere.d/jailname-make.conf
> To get all ports built with python3 as the default version add
> DEFAULT_VERSIONS= python=3.5
> To get python3 ports that install into a system that has py2.7 as
> default you need to have
> DEFAULT_VERSIONS= python=2.7 python3=3.5
> PYTHON_VERSION= python3.5
> As the default python is still 2.7 I believe the port will need to
> define IGNORE. Something like -
> .if defined(PACKAGE_BUILDING) && ${PYTHON_DEFAULT} == 2.7
> IGNORE= requires python3 dependencies and must be built manually
> .endif

Thank you for explanation. I added following setting to
/usr/local/etc/poudriere.d/make.conf and tried again.

DEFAULT_VERSIONS= python=3.4 python3=3.4

Now dependents such as mail/py-authres or mail/py-pyspf are built as
python 3 packages. But build of mail/postfix-policyd-spf-python still
fails at check-sanity phase. So 2 issues seem to happen.

Anyway I will submit this issue to FreeBSD Bugzilla.

Yasuhiro KIMURA

More information about the freebsd-ports mailing list