Wrong Ports-OSVERSION in jails

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Wrong Ports-OSVERSION in jails

Jochen Neumeister-4
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

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Wrong Ports-OSVERSION in jails

Chris H-5
On Fri, 1 May 2020 12:40:20 +0200 Jochen Neumeister [hidden email] said

> 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";
>    }
Your jail(8) client (jail) will adopt your host' OS version(s).
You have some control over that withing your jail.conf(5):

# uname -r, freebsd-version
#osrelease = 12.0-CURRENT;
# /usr/obj/usr/src/include/osreldate -- uname -K, uname -U
# /usr/src/sys/sys/param.h
#osreldate = 1200054;
(from comments I keep in my jail.conf)

The only area I run into is ensuring that my uname -r is
in sync with my uname -(K|U). Especially where older jails
are involved, and -CURRENT went to (RELEASE|STABLE)
Here are some links for 12 that might help:
https://www.freebsd.org/doc/en/books/porters-handbook/versions-12.html
just change versions-12 to versions-13 for 13*
Annoying, isn't it? :-)

HTH

--Chris

>
> 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
>
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "[hidden email]"


_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[hidden email]"