Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2013 10:42:46 -0700 (PDT)
From:      Kimo Rosenbaum <kimor79@yahoo.com>
To:        Alexander Yerenkow <yerenkow@gmail.com>
Cc:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>, Bryan Drewery <bdrewery@freebsd.org>
Subject:   Re: poudriere and networking
Message-ID:  <1381513366.67645.YahooMailNeo@web142806.mail.bf1.yahoo.com>
In-Reply-To: <CAPJF9wnZ=VjysOmnMdPeWVmoWEzzF8aeXzsO59QzAjRsV349PA@mail.gmail.com>
References:  <1381473199.36649.YahooMailNeo@web142801.mail.bf1.yahoo.com>	<5257DDA8.5080202@FreeBSD.org>	<1381510700.37006.YahooMailNeo@web142806.mail.bf1.yahoo.com> <CAPJF9wnZ=VjysOmnMdPeWVmoWEzzF8aeXzsO59QzAjRsV349PA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <yerenkow@gmail.com>=0A>To: Kimo Rosenbaum <k=
imor79@yahoo.com> =0A>Cc: "freebsd-ports@freebsd.org" <freebsd-ports@freebs=
d.org>; Bryan Drewery <bdrewery@freebsd.org> =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 =
<kimor79@yahoo.com>=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 <bdrewery@FreeBSD.org>=0A>>> To: Kimo Rosenbaum <kimor79@yaho=
o.com>; "freebsd-ports@freebsd.org" <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>



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