From owner-freebsd-ports@FreeBSD.ORG Fri Oct 11 17:42:48 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E068DB1E for ; Fri, 11 Oct 2013 17:42:48 +0000 (UTC) (envelope-from kimor79@yahoo.com) Received: from nm21.bullet.mail.bf1.yahoo.com (nm21.bullet.mail.bf1.yahoo.com [98.139.212.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8C0292686 for ; Fri, 11 Oct 2013 17:42:48 +0000 (UTC) Received: from [98.139.215.142] by nm21.bullet.mail.bf1.yahoo.com with NNFMP; 11 Oct 2013 17:42:47 -0000 Received: from [98.139.212.196] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 11 Oct 2013 17:42:47 -0000 Received: from [127.0.0.1] by omp1005.mail.bf1.yahoo.com with NNFMP; 11 Oct 2013 17:42:47 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 161109.35737.bm@omp1005.mail.bf1.yahoo.com Received: (qmail 67650 invoked by uid 60001); 11 Oct 2013 17:42:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1381513366; bh=rnupp96vGPxiC8GqlBoxDF2TqCueUOKZj2l9mHj65P8=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bVeCua9338F7BZRjlgveoi+VUlrVc8Bti1S0wcmTNwxtBDA+EO9f3iei8a/zkO8LG6M/UAiIPIYRieV/fyvCCztLA6lg61moSc9HddSx9sUdt8ik0G2t80hWYsJPziguL+9XkB3E2KV8ElMcxLMMp3Cnc5CZrHLF7OiB9YnrBvk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=tw+x24Mr3EQ8lyCtK9cXpcqLSZMVsO6GAMiFpiA0lRHmbZ1URSw0ILtm4ncU8Df8SgFvt7bbabcqXUz8mbEYNoO3PpeU10fP+ohD4pTK48Iq1jqiqW1G6aEijCu5d8iJZCo2/iIdYcAFTIqQ1hrcqKzrVLBUsiGDK3LIvBz3f78=; X-YMail-OSG: ejl78HoVM1kvumuHEQ_A0U9gyptKSmk_MLHu5lkUGqokBwK ENiaTZfeHimN6tM7HCz92m7C1gfOhB99MdxHp6rDKufP4eIymYlr83mNBDHv nuYNRs.dt0B2EoWBaM6bPf1gUWzWpMRRDOwihhAoq5vfBZRiCUnWAFDkLBwW aIDS.wttTPTYUVIiJJNQfh9nUVZYZmiTVJaCPLridMGTZBpqj.Tq6JAlnYz2 bv5ab4qNOFnaF0xYZII23ZEPjm2bmOv71tZ6UtUugVYJUCWJh1PIbu73KSml VEcBirN9gvWODV9tw0WEntbEcvYL3Myml4MBk.HtAMfjxQ3zP_c9a4vouPtB 6awC7ugXGiT2P83eXXx0Rz__NppkpGVTzrkyAIgMTvTnX8JjK81EBFm1NlA8 VVcUoHv6NprMF5AiKhwYjAbSjyEdDmGSQOwUYINFo0QqNUYWBKSW2yflsiTE XtvCo.zwtUvKZNWnetESw.bAbvyvzB9_YpI6VQmKXf__yTP0UGh8u646TB4J LaSwNxu8QEgKERoLVhjKzeK2ZIsmgy5WO_AfquoML1NYkPVuduWps0a_C7n8 TRxdz9Zff0zR6xk_IBxHdUxcPEroDoXifgDCh5HqgjWUq7I9VuobQTKiJUp. nDxTwrQqjBRrDHDHStv3aqJs- Received: from [64.124.27.199] by web142806.mail.bf1.yahoo.com via HTTP; Fri, 11 Oct 2013 10:42:46 PDT X-Rocket-MIMEInfo: 002.001, T2gsIEkga25vdyB3aGF0J3MgYmVpbmcgZG93bmxvYWRlZCBhbmQgd2h5LiBUaGlzIGlzIGZvciBzZXZlcmFsIHJ1YnkgYXBwcyB3aGljaCBoYXZlIGNvbmZsaWN0aW5nIGdlbXMgZGVwZW5kZW5jaWVzIHNvIHdlJ3JlIGRvaW5nIGBidW5kbGUgaW5zdGFsbCAtLWRlcGxveW1lbnRgIGR1cmluZyBkby1idWlsZCB0byBpbnN0YWxsIHRoZSBnZW1zIGludG8gJHtXUktTUkN9L3ZlbmRvci9idW5kbGUvLiBBbmQgdGhlbiBmcm9tIHBrZyBwb2ludCBvZiB2aWV3IHRoZSBwYWNrYWdlIGp1c3QgaGFzIG1hbnkgbWFueSABMAEBAQE- X-Mailer: YahooMailWebService/0.8.160.587 References: <1381473199.36649.YahooMailNeo@web142801.mail.bf1.yahoo.com> <5257DDA8.5080202@FreeBSD.org> <1381510700.37006.YahooMailNeo@web142806.mail.bf1.yahoo.com> Message-ID: <1381513366.67645.YahooMailNeo@web142806.mail.bf1.yahoo.com> Date: Fri, 11 Oct 2013 10:42:46 -0700 (PDT) From: Kimo Rosenbaum Subject: Re: poudriere and networking To: Alexander Yerenkow In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-ports@freebsd.org" , Bryan Drewery X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Kimo Rosenbaum List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2013 17:42:48 -0000 Oh, I know what's being downloaded and why. This is for several ruby apps w= hich have conflicting gems dependencies so we're doing `bundle install --de= ployment` during do-build to install the gems into ${WRKSRC}/vendor/bundle/= . And then from pkg point of view the package just has many many many files= . I could download the gems as distfiles but it's a lot of hoops to jump th= rough just to figure out what to download when doing it in do-build already= does it.=0A=0A=0AThanks=0AKimo=0A=0A=0A>________________________________= =0A> From: Alexander Yerenkow =0A>To: Kimo Rosenbaum =0A>Cc: "freebsd-ports@freebsd.org" ; Bryan Drewery =0A>Sent: Friday, October 11, = 2013 10:10 AM=0A>Subject: Re: poudriere and networking=0A> =0A>=0A>=0A>I'd = suggest to you anyway investigate what are downloaded, and why;=0A>If it's = some static files - you could try to add them to distfiles, and replace pla= ces where they are trying download from web to file;=0A>e.g.=0A>find somewh= ere=A0=0A>http://site/your.file=0A>and try to replace it with=0A>file://$DI= STFILES/your.file=0A>=0A>=0A>=0A>=0A>=0A>=0A>=0A>2013/10/11 Kimo Rosenbaum = =0A>=0A>I don't quite agree with that being the default = but I understand. The patch works as intended. Thanks!=0A>>=0A>>=0A>>Thanks= =0A>>Kimo=0A>>=0A>>=0A>>=0A>>=0A>>----- Original Message -----=0A>>> From: = Bryan Drewery =0A>>> To: Kimo Rosenbaum ; "freebsd-ports@freebsd.org" =0A>>> Cc:= =0A>>> Sent: Friday, October 11, 2013 4:14 AM=0A>>> Subject: Re: poudriere = and networking=0A>>>=0A>>> On 10/11/2013 1:33 AM, Kimo Rosenbaum wrote:=0A>= >>> =A0Hello,=0A>>>>=0A>>>> =A0I'm running poudriere-devel-3.0.99.20130927 = on 9.1-RELEASE. I'm=0A>>> trying to build a private port which requires dow= nloading files after the=0A>>> extract target. However, it seems as though = networking isn't available after=0A>>> post-fetch. I do have RESOLV_CONF se= t in poudriere.conf and cat'ing=0A>>> /etc/resolv.conf in post-patch shows = the correct contents. The build is able to=0A>>> run the fetch but once pas= t post-fetch I can't do any DNS lookups nor ping=0A>>> anything external. T= he host itself can do those things. Also when I enter the=0A>>> jail via je= xec I can perform those things.=0A>>>>=0A>>>> =A0Any ideas?=0A>>>>=0A>>>> = =A0Thanks=0A>>>> =A0Kimo=0A>>>=0A>>> This is done for security. During buil= d, the code running is untrusted.=0A>>> We don't want it to reach out and s= can/infect your network during a build.=0A>>>=0A>>> I do understand you're = building a private port though. I would add a=0A>>> flag to override this p= er port, but I worry some porter would put it in=0A>>> their FreeBSD port w= here it does not belong.=0A>>>=0A>>> You can apply a patch like this to you= r=0A>>> /usr/local/share/poudriere/common.sh to work around the issue:=0A>>= >=0A>>>> =A0--- src/share/poudriere/common.sh=0A>>>> =A0+++ src/share/poudr= iere/common.sh=0A>>>> =A0@@ -1402,14 +1402,10 @@=0A>>>> =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fi=0A>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return 1=0A>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fi=0A>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0fi=0A>>>>=0A>>>> =A0-=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if [ "${= phase}" =3D "checksum" ];=0A>>> then=0A>>>> =A0-=A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0jstop=0A>>>> =A0-=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0jstart 0=0A>>>=0A>>>> =A0-=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fi=0A>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0print_phase_footer=0A>>>>=0A>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if [ "${phase}" =3D "checksum" ];=0A>>> then= =0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0mkdir -p ${mnt}/= portdistfiles=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ech= o "DISTDIR=3D/portdistfiles" >>=0A>>> ${mnt}/etc/make.conf=0A>>>=0A>>>=0A>>= > --=0A>>> Regards,=0A>>> Bryan Drewery=0A>>>=0A>>=0A>>____________________= ___________________________=0A>>freebsd-ports@freebsd.org mailing list=0A>>= http://lists.freebsd.org/mailman/listinfo/freebsd-ports=0A>>To unsubscribe,= send any mail to "freebsd-ports-unsubscribe@freebsd.org"=0A>>=0A>>=0A>=0A>= =0A>=0A>-- =0A>Regards,=0A>Alexander Yerenkow =0A>=0A>