From owner-freebsd-ports@freebsd.org Sat Jan 9 08:47:00 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF2F8A685A5 for ; Sat, 9 Jan 2016 08:47:00 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (ipq210.utahime.jp [183.180.29.210]) by mx1.freebsd.org (Postfix) with ESMTP id C92681594 for ; Sat, 9 Jan 2016 08:47:00 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) by gate.utahime.jp (Postfix) with ESMTP id 50C1E7D08; Sat, 9 Jan 2016 17:46:58 +0900 (JST) Received: from eastasia.home.utahime.org (localhost [127.0.0.1]) by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id 123964C3E; Sat, 9 Jan 2016 17:46:58 +0900 (JST) Received: from localhost (rolling.home.utahime.org [192.168.174.11]) by eastasia.home.utahime.org (Postfix) with ESMTPSA id C618E4C3D; Sat, 9 Jan 2016 17:46:57 +0900 (JST) Date: Sat, 09 Jan 2016 17:46:45 +0900 (JST) Message-Id: <20160109.174645.1172212655262792753.yasu@utahime.org> To: freebsd-ports@freebsd.org Subject: Re: Poudriere and python framework of ports From: Yasuhiro KIMURA In-Reply-To: <5690A000.3010909@ShaneWare.Biz> References: <20160109.115115.720784853649304585.yasu@utahime.org> <5690A000.3010909@ShaneWare.Biz> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2016 08:47:01 -0000 From: Shane Ambler 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