From owner-freebsd-ports@freebsd.org Fri May 1 16:18:00 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 17A152D9727 for ; Fri, 1 May 2020 16:18:00 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49DHTy6FpSz3Gvn for ; Fri, 1 May 2020 16:17:58 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: by mailman.nyi.freebsd.org (Postfix) id D4A0F2D971E; Fri, 1 May 2020 16:17:58 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D353E2D971D; Fri, 1 May 2020 16:17:58 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ultimatedns.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49DHTy1R2jz3Gvm; Fri, 1 May 2020 16:17:57 +0000 (UTC) (envelope-from portmaster@BSDforge.com) Received: from udns.ultimatedns.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by udns.ultimatedns.net (8.15.2/8.15.2) with ESMTPS id 041GHp6o019362 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 1 May 2020 09:17:57 -0700 (PDT) (envelope-from portmaster@BSDforge.com) X-Mailer: Cypht MIME-Version: 1.0 Cc: , In-Reply-To: From: Chris Reply-To: portmaster@BSDforge.com To: Jochen Neumeister Subject: Re: Wrong Ports-OSVERSION in jails Date: Fri, 01 May 2020 09:17:57 -0700 Message-Id: <8774ed796866ecaaded8bae4b8b8d485@udns.ultimatedns.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 49DHTy1R2jz3Gvm X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-0.91 / 15.00]; NEURAL_HAM_MEDIUM(-0.76)[-0.762,0]; NEURAL_HAM_LONG(-0.14)[-0.143,0]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; local_wl_ip(0.00)[24.113.41.81] 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, 01 May 2020 16:18:00 -0000 On Fri, 1 May 2020 12:40:20 +0200 Jochen Neumeister joneum@FreeBSD=2Eorg said > Hi all, >=20 > i installed a new FreeBSD 12=2E1 amd64=2E > As next, i Install a new Jail with "bsdinstall jail /jails/jail1-www"=20 > and update the jail with "freebsd-update -b /jails/jail1-www fetch instal= l"=2E >=20 > I mount the Ports-tree into the jail with a /etc/fstab=2Ejail1-www: >=20 > /usr/ports=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /jails/jail1-www/usr/ports= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 nullfs=C2=A0 ro > 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 >=20 > Here the entry in jail=2Econf: >=20 > jail1-www { > =C2=A0 host=2Ehostname =3D "jail1-www=2Elocal"; > =C2=A0 path =3D /jails/jail1-www; > =C2=A0 ip4=2Eaddr =3D "192=2E168=2E2=2E31"; > =C2=A0 mount=2Efstab=3D"/etc/fstab=2Ejail1-www"; > } Your jail(8) client (jail) will adopt your host' OS version(s)=2E You have some control over that withing your jail=2Econf(5): # uname -r, freebsd-version #osrelease =3D 12=2E0-CURRENT; # /usr/obj/usr/src/include/osreldate -- uname -K, uname -U # /usr/src/sys/sys/param=2Eh #osreldate =3D 1200054; (from comments I keep in my jail=2Econf) The only area I run into is ensuring that my uname -r is in sync with my uname -(K|U)=2E Especially where older jails are involved, and -CURRENT went to (RELEASE|STABLE) Here are some links for 12 that might help: https://www=2Efreebsd=2Eorg/doc/en/books/porters-handbook/versions-12=2Ehtml just change versions-12 to versions-13 for 13* Annoying, isn't it? :-) HTH --Chris >=20 > When i connect into the jail, the Tree is available and ready to use=20 > with this entry in /etc/make=2Econf: >=20 > KDIRPREFIX=3D/tmp > DISTDIR=3D/tmp/distfiles > PACKAGES=3D/tmp/packages >=20 > When i will, as example, install nginx: >=20 > root@jail1-www:/usr/ports/www/nginx # make install clean > make: "/usr/ports/Mk/bsd=2Eport=2Emk" line 1204: UNAME_r > (12=2E1-RELEASE-p3) and OSVERSION (1101001) do not agree on major > version number=2E >=20 > root@jail1-www:/usr/ports/www/nginx # uname -a > FreeBSD jail1-www=2Elocal 12=2E1-RELEASE-p3 FreeBSD 12=2E1-RELEASE-p3 > GENERIC=C2=A0 amd64 > root@jail1-www:/usr/ports/www/nginx # make -C /usr/ports/ -V OSVERSION > make[1]: "/usr/ports/Mk/bsd=2Eport=2Emk" line 1204: UNAME_r > (12=2E1-RELEASE-p3) and OSVERSION (1101001) do not agree on major > version number=2E > make: "/usr/ports/Mk/bsd=2Eport=2Esubdir=2Emk" line 117: warning: "make -V > _JAVA_VERSION_LIST_REGEXP USE_JAVA=3D1 -f /usr/ports/Mk/bsd=2Eport=2Emk" > returned non-zero status > make[1]: "/usr/ports/Mk/bsd=2Eport=2Emk" line 1204: UNAME_r > (12=2E1-RELEASE-p3) and OSVERSION (1101001) do not agree on major > version number=2E > make: "/usr/ports/Mk/bsd=2Eport=2Esubdir=2Emk" line 122: warning: "make -V > _JAVA_VENDOR_LIST_REGEXP USE_JAVA=3D1 -f /usr/ports/Mk/bsd=2Eport=2Emk" > returned non-zero status > make[1]: "/usr/ports/Mk/bsd=2Eport=2Emk" line 1204: UNAME_r > (12=2E1-RELEASE-p3) and OSVERSION (1101001) do not agree on major > version number=2E > make: "/usr/ports/Mk/bsd=2Eport=2Esubdir=2Emk" line 127: warning: "make -V > _JAVA_OS_LIST_REGEXP USE_JAVA=3D1 -f /usr/ports/Mk/bsd=2Eport=2Emk" > returned non-zero status > make[1]: "/usr/ports/Mk/bsd=2Eport=2Emk" line 1204: UNAME_r > (12=2E1-RELEASE-p3) and OSVERSION (1101001) do not agree on major > version number=2E > make: "/usr/ports/Mk/bsd=2Eport=2Esubdir=2Emk" line 132: warning: "make -V > _JAVA_PORTS_INSTALLED USE_JAVA=3D1 -f /usr/ports/Mk/bsd=2Eport=2Emk" > returned non-zero status > 1101001 >=20 > Here the output from the Mainsystem: >=20 > root@server-01:/etc # uname -a > FreeBSD server-01=2Ehome=2Exxxxxxxx 12=2E1-RELEASE-p3 FreeBSD 12=2E1-RELEASE-p3= =20 > GENERIC=C2=A0 amd64 > root@server-01:/etc # make -C /usr/ports/ -V OSVERSION > 1201000 >=20 > I delete the portstree and check i out again with svn, but the same=2E=2E=2E=2E >=20 > Any tipps to fix this? >=20 > Jochen >=20 > _______________________________________________ > freebsd-ports@freebsd=2Eorg mailing list > https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd=2Eorg"