From owner-freebsd-ports@freebsd.org Fri Dec 11 15:09:18 2015 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 773EE9D883A for ; Fri, 11 Dec 2015 15:09:18 +0000 (UTC) (envelope-from piotr.florczyk@gemius.com) Received: from mail.gemius.pl (mail.gemius.pl [85.232.225.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 21AE51D01 for ; Fri, 11 Dec 2015 15:09:17 +0000 (UTC) (envelope-from piotr.florczyk@gemius.com) Received: from mail.gemius.pl ([85.232.225.147] helo=Piotrs-Mac-mini.local) by mail.gemius.pl with esmtpa (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1a7PJr-000LcB-IG for freebsd-ports@freebsd.org; Fri, 11 Dec 2015 16:09:15 +0100 Subject: Re: poudriere, Go and networking References: <374B9F2C-11B4-44F6-9FF6-E4687ECF9CB2@gemius.com> <20151211143601.GI35480@home.opsec.eu> From: Piotr Florczyk Organization: Gemius To: freebsd-ports@freebsd.org Message-ID: <566AE71B.3080201@gemius.com> Date: Fri, 11 Dec 2015 16:09:15 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151211143601.GI35480@home.opsec.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authorized: Piotr Florczyk 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: Fri, 11 Dec 2015 15:09:18 -0000 W dniu 11.12.2015 o 15:36, Kurt Jaeger pisze: > Hi! > >> Recently I had to package couple of programs written in Go and godep is >> becoming the standard for dependency tracking in Go projects. >> For example I currently had to package telegraf. Here is the thing. Poudriere >> disables networking after fetch phase and I don't know before extract >> phase what dependencies are inside. > > We recently upgraded maven, the java-world 'make and godep' and all > the ports that need maven to build have the same problem, see: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188110#c37 > >> So here is the question: would it be possible to have networking >> enabled during extract phase ? >> Or maybe there is another solution (some flag in ports maybe that >> I'm missing ?) > > I think we need some fancy fetch target per distfile which basically > uses technology-dependend (maven, godep, etc) ways to trigger > the 'fetch' during the fetch-phase. Probably some sort > of base-fetch vrs. dep-fetch ? > New target might not be needed but I think this is good idea. Altough it does not solve my problem with poudriere. In my case, the soonest I can fetch dependencies is in post-extract target. So if poudriere didn't cut off networking at this stage we wouldn't need any changes and every one would be happy. Even if we come up with proper solution it will require cutting off network at some later stage than post-extract. In my opinion we might aswell move it to that point right now. -- Regards, Piotr Florczyk