Date: Fri, 01 May 2020 09:17:57 -0700 From: Chris <portmaster@BSDforge.com> To: Jochen Neumeister <joneum@FreeBSD.org> Cc: <ports@FreeBSD.org>, <freebsd-jail@freebsd.org> Subject: Re: Wrong Ports-OSVERSION in jails Message-ID: <8774ed796866ecaaded8bae4b8b8d485@udns.ultimatedns.net> In-Reply-To: <c146703a-9fa7-f9eb-c8ea-b6858d3f0075@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8774ed796866ecaaded8bae4b8b8d485>