From owner-freebsd-jail@freebsd.org Fri May 1 10:40:34 2020 Return-Path: Delivered-To: freebsd-jail@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 6EFEC2D226C; Fri, 1 May 2020 10:40:34 +0000 (UTC) (envelope-from joneum@FreeBSD.org) Received: from toco-domains.de (mail.toco-domains.de [176.9.100.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49D80d6M9Lz4N7k; Fri, 1 May 2020 10:40:33 +0000 (UTC) (envelope-from joneum@FreeBSD.org) Received: by toco-domains.de (Postfix, from userid 65534) id C5F4110045E; Fri, 1 May 2020 12:40:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on toco-mail X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.4 Received: from Jochens-MacBook-Pro.local (p5B0FD5D3.dip0.t-ipconnect.de [91.15.213.211]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by toco-domains.de (Postfix) with ESMTPSA id BE3FD100454; Fri, 1 May 2020 12:40:22 +0200 (CEST) From: Jochen Neumeister Subject: Wrong Ports-OSVERSION in jails To: ports@FreeBSD.org, freebsd-jail@freebsd.org Message-ID: Date: Fri, 1 May 2020 12:40:20 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Language: de-DE X-Rspamd-Queue-Id: 49D80d6M9Lz4N7k X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.11 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.86)[-0.860,0]; ASN(0.00)[asn:24940, ipnet:176.9.0.0/16, country:DE]; NEURAL_HAM_LONG(-0.25)[-0.249,0] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2020 10:40:34 -0000 Hi all, i installed a new FreeBSD 12.1 amd64. As next, i Install a new Jail with "bsdinstall jail /jails/jail1-www" and update the jail with "freebsd-update -b /jails/jail1-www fetch install". I mount the Ports-tree into the jail with a /etc/fstab.jail1-www: /usr/ports      /jails/jail1-www/usr/ports      nullfs  ro 0       0 Here the entry in jail.conf: jail1-www {   host.hostname = "jail1-www.local";   path = /jails/jail1-www;   ip4.addr = "192.168.2.31";   mount.fstab="/etc/fstab.jail1-www"; } When i connect into the jail, the Tree is available and ready to use with this entry in /etc/make.conf: KDIRPREFIX=/tmp DISTDIR=/tmp/distfiles PACKAGES=/tmp/packages When i will, as example, install nginx: root@jail1-www:/usr/ports/www/nginx # make install clean make: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (12.1-RELEASE-p3) and OSVERSION (1101001) do not agree on major version number. root@jail1-www:/usr/ports/www/nginx # uname -a FreeBSD jail1-www.local 12.1-RELEASE-p3 FreeBSD 12.1-RELEASE-p3 GENERIC  amd64 root@jail1-www:/usr/ports/www/nginx # make -C /usr/ports/ -V OSVERSION make[1]: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (12.1-RELEASE-p3) and OSVERSION (1101001) do not agree on major version number. make: "/usr/ports/Mk/bsd.port.subdir.mk" line 117: warning: "make -V _JAVA_VERSION_LIST_REGEXP USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk" returned non-zero status make[1]: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (12.1-RELEASE-p3) and OSVERSION (1101001) do not agree on major version number. make: "/usr/ports/Mk/bsd.port.subdir.mk" line 122: warning: "make -V _JAVA_VENDOR_LIST_REGEXP USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk" returned non-zero status make[1]: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (12.1-RELEASE-p3) and OSVERSION (1101001) do not agree on major version number. make: "/usr/ports/Mk/bsd.port.subdir.mk" line 127: warning: "make -V _JAVA_OS_LIST_REGEXP USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk" returned non-zero status make[1]: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (12.1-RELEASE-p3) and OSVERSION (1101001) do not agree on major version number. make: "/usr/ports/Mk/bsd.port.subdir.mk" line 132: warning: "make -V _JAVA_PORTS_INSTALLED USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk" returned non-zero status 1101001 Here the output from the Mainsystem: root@server-01:/etc # uname -a FreeBSD server-01.home.xxxxxxxx 12.1-RELEASE-p3 FreeBSD 12.1-RELEASE-p3 GENERIC  amd64 root@server-01:/etc # make -C /usr/ports/ -V OSVERSION 1201000 I delete the portstree and check i out again with svn, but the same.... Any tipps to fix this? Jochen