Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jan 2016 17:46:45 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Poudriere and python framework of ports
Message-ID:  <20160109.174645.1172212655262792753.yasu@utahime.org>
In-Reply-To: <5690A000.3010909@ShaneWare.Biz>
References:  <20160109.115115.720784853649304585.yasu@utahime.org> <5690A000.3010909@ShaneWare.Biz>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Shane Ambler <FreeBSD@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160109.174645.1172212655262792753.yasu>