Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 2020 12:40:20 +0200
From:      Jochen Neumeister <joneum@FreeBSD.org>
To:        ports@FreeBSD.org, freebsd-jail@freebsd.org
Subject:   Wrong Ports-OSVERSION in jails
Message-ID:  <c146703a-9fa7-f9eb-c8ea-b6858d3f0075@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c146703a-9fa7-f9eb-c8ea-b6858d3f0075>