From owner-freebsd-current@freebsd.org Fri May 4 23:29:15 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D094FBB3B2 for ; Fri, 4 May 2018 23:29:15 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BF2886B410 for ; Fri, 4 May 2018 23:29:14 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: by mailman.ysv.freebsd.org (Postfix) id 78E30FBB3AF; Fri, 4 May 2018 23:29:14 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6785DFBB3AE for ; Fri, 4 May 2018 23:29:14 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: from aibo.runbox.com (aibo.runbox.com [91.220.196.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 097D66B40C; Fri, 4 May 2018 23:29:13 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: from [10.9.9.129] (helo=rmmprod07.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1fEk8W-0001oM-9x; Sat, 05 May 2018 01:29:12 +0200 Received: from mail by rmmprod07.runbox with local (Exim 4.86_2) (envelope-from ) id 1fEk8W-0005Uf-8s; Sat, 05 May 2018 01:29:12 +0200 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated user (846156)] by runbox.com with http (RMM6); Fri, 04 May 2018 23:29:12 GMT From: "Jeffrey Bouquet" To: "Alan Somers" CC: "current" Subject: Re: OSVERSION Date: Fri, 04 May 2018 16:29:12 -0700 (PDT) X-Mailer: RMM6 In-Reply-To: Message-Id: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2018 23:29:15 -0000 On Fri, 4 May 2018 15:28:53 -0600, Alan Somers wrote: > On Fri, May 4, 2018 at 2:46 PM, Jeffrey Bouquet > wrote: >=20 > > 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 a= gree > > on major version number. > > .......................... > > Can I set that in sh or tcsh or zsh? > > ......................... > > >=20 > 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: >=20 > > cat /etc/make.conf > OSVERSION+=3D1100122 > UNAME_ENV+=3D OSVERSION=3D${OSVERSION} > UNAME_ENV+=3D UNAME_s=3DFreeBSD > UNAME_ENV+=3D UNAME_r=3D11.0-RELEASE > UNAME_ENV+=3D UNAME_v=3D"${UNAME_s} ${UNAME_r}" > .MAKEFLAGS: ${UNAME_ENV} > MAKE_ENV+=3D ${UNAME_ENV} > CONFIGURE_ENV+=3D ${UNAME_ENV} > SCRIPTS_ENV+=3D ${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.=20 Thanks!=20=