From owner-freebsd-ports@freebsd.org Fri Dec 14 15:09:44 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 383B413368F5 for ; Fri, 14 Dec 2018 15:09:44 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gilb.zs64.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 28042808D6 for ; Fri, 14 Dec 2018 15:09:42 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 57F5C213109 for ; Fri, 14 Dec 2018 15:09:41 +0000 (UTC) From: Stefan Bethke Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: 12-stable, poudriere in jail Date: Fri, 14 Dec 2018 16:09:40 +0100 References: <2D1E4764-191F-4D0A-9F65-192440ADF6B4@lassitu.de> To: FreeBSD Ports In-Reply-To: <2D1E4764-191F-4D0A-9F65-192440ADF6B4@lassitu.de> Message-Id: <8D62E400-93E1-4257-B302-EFC66727F945@lassitu.de> X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: 28042808D6 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of stb@lassitu.de designates 2a00:14b0:4200:32e0::1ea as permitted sender) smtp.mailfrom=stb@lassitu.de X-Spamd-Result: default: False [1.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.42)[0.422,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[lassitu.de]; NEURAL_SPAM_MEDIUM(0.89)[0.886,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[gilb.zs64.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2018 15:09:44 -0000 No matter what I tried, the python and ruby builds still are failing. I=E2=80=99ve since changed the setup to a VIMAGE vnet jail, and that = appears to be working properly. If there is a way to make the =E2=80=9Eclassic=E2=80=9C inherited IPs = setup work, I=E2=80=99d love to learn how. Stefan > Am 10.12.2018 um 00:20 schrieb Stefan Bethke : >=20 > I=E2=80=99ve made some progress fiddling with common.sh. If I = hard-reset $localipargs to an empty string, I can run the build = successfully. ATM for me, $localipargs is set to =E2=80=9Eip4.addr=3D127.0= .0.1 ip6.addr=3D::1=E2=80=9C, which breaks the jail(8) invocation. >=20 > I=E2=80=99ve opened an issue on GH: = https://github.com/freebsd/poudriere/issues/657 >=20 >> Am 09.12.2018 um 21:17 schrieb Stefan Bethke : >>=20 >> Since upgrading my machine to 12-stable a couple of days ago, my = poudriere jail is having trouble building python and ruby errors like: >> checking getaddrinfo bug... yes >> Fatal: You must get working getaddrinfo() function. >> or you can specify "--disable-ipv6". >> =3D=3D=3D> Script "configure" failed unexpectedly. >>=20 >>=20 >> compiling getaddrinfo.c >> In file included from getaddrinfo.c:86: >> ./addrinfo.h:165:12: error: conflicting types for 'getnameinfo' >> extern int getnameinfo __P(( >> ^ >> /usr/include/netdb.h:251:6: note: previous declaration is here >> int getnameinfo(const struct sockaddr *, socklen_t, char = *, >> ^ >> getaddrinfo.c:408:7: warning: add explicit braces to avoid dangling = else [-Wdangling-else] >> } else if (strcmp(sp->s_proto, "tcp") = =3D=3D 0) { >>=20 >>=20 >> My jail has a private IP assigned to an Ethernet interface, and a = loopback address. In 11-stable, I shared 127.0.0.1 with the host. Since = upgrading to 12-stable, I get=20 >> jail: IPv4 addresses clash >>=20 >> If change the loopback IPs on the jail to .2/:2, I then get: >> [00:00:00] Warning: No loopback address defined, consider setting = LOIP6/LOIP4 or assigning a loopback address to the jail. >>=20 >> but I get the above build errors. Setting LOIP4/LOIP6 to .2/:2, I=E2=80= =99m back at the IPv4 addresses clash error. Setting LOIP4/LOIP6 to = 3./:3, I get the warning again, and the build errors. >>=20 >> I can build python on the host just fine. >>=20 >> I=E2=80=99m getting the build problems with both a 11.2-RELEASE and a = 12.0-RC3 based reference jail. >>=20 >>=20 >> The relevant lines from jail.conf: >> pkg { >> path =3D "/jail/pkg.xxx.xxx"; >> host.hostname =3D =E2=80=9Epkg.xxx.xx"; >> ip4.addr +=3D "bridge1|44.128.xx.xx"; >> ip4.addr +=3D "lo0|127.0.0.1"; >> ip6.addr +=3D "lo0|::1"; >> children.max =3D 40; >> exec.poststart +=3D "zfs jail $name = data/jail/${host.hostname}/poudriere"; >> exec.poststart +=3D "jexec $name zfs mount -a"; >> #exec.prestop +=3D "zfs unjail $name = data/jail/${host.hostname}/poudriere"; >> allow.mount; >> allow.mount.devfs; >> allow.mount.linprocfs; >> allow.mount.nullfs; >> allow.mount.procfs; >> allow.mount.tmpfs; >> allow.mount.zfs; >> allow.socket_af; >> allow.chflags; >> enforce_statfs=3D1; >> #ip6=3Dinherit; >> ip4=3Dinherit; >> } >>=20 >>=20 >> --=20 >> Stefan Bethke Fon +49 151 14070811 >>=20 >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to = "freebsd-ports-unsubscribe@freebsd.org" >=20 > --=20 > Stefan Bethke Fon +49 151 14070811 >=20 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to = "freebsd-ports-unsubscribe@freebsd.org" --=20 Stefan Bethke Fon +49 151 14070811