Date: Fri, 04 May 2018 16:29:12 -0700 (PDT) From: "Jeffrey Bouquet" <jbtakk@iherebuywisely.com> To: "Alan Somers" <asomers@freebsd.org> Cc: "current" <current@freebsd.org> Subject: Re: OSVERSION Message-ID: <E1fEk8W-0005Uf-8s@rmmprod07.runbox> In-Reply-To: <CAOtMX2h19Fn8mZ9-7csnakRO1L-UArs39w3uCBrjH40sQCCH1g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 4 May 2018 15:28:53 -0600, Alan Somers <asomers@freebsd.org> wrote:
> On Fri, May 4, 2018 at 2:46 PM, Jeffrey Bouquet <jbtakk@iherebuywisely.com>
> wrote:
>
> > 12.0-CURRENT r332797 GENERIC amd64
> > ..................
> > make: "/usr/ports/Mk/bsd.port.mk" line 1171: Unable to
> > determine OS version. Either define OSVERSION, or
> > install /usr/include/sys/param.h...
> > ..............................
> > then , with param.h in place
> >
> > ..............................
> > port builds, pkgdb -u, and portsdb -u all fail with:
> > ..............................
> > line 1200: UNAME_r (12.0-CURRENT) and OSVERSION (12.0-CURRENT) do not agree
> > on major version number.
> > ..........................
> > Can I set that in sh or tcsh or zsh?
> > .........................
> >
>
> Looks like you're running ports in a jail. The best way to do that is to
> set OSVERSION in /etc/make.conf. Some jail managers will even do that for
> you. It should look a little like this:
>
> > cat /etc/make.conf
> OSVERSION+=1100122
> UNAME_ENV+= OSVERSION=${OSVERSION}
> UNAME_ENV+= UNAME_s=FreeBSD
> UNAME_ENV+= UNAME_r=11.0-RELEASE
> UNAME_ENV+= UNAME_v="${UNAME_s} ${UNAME_r}"
> .MAKEFLAGS: ${UNAME_ENV}
> MAKE_ENV+= ${UNAME_ENV}
> CONFIGURE_ENV+= ${UNAME_ENV}
> SCRIPTS_ENV+= ${UNAME_ENV}
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
uname -K plugged into that template fixed the port error message.
Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1fEk8W-0005Uf-8s>
