From owner-freebsd-current@FreeBSD.ORG Tue Oct 14 17:00:56 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD0DDC7F for ; Tue, 14 Oct 2014 17:00:56 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7DCFE809 for ; Tue, 14 Oct 2014 17:00:56 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Xe5Sw-000NVC-JK; Tue, 14 Oct 2014 17:00:54 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s9EH0rxe047321; Tue, 14 Oct 2014 11:00:53 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18hT35PPGJqtOPA30zuYpL5 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: installincludes, bsd.incs.mk and param.h From: Ian Lepore To: Harald Schmalzbauer In-Reply-To: <543D4AAA.6040204@omnilan.de> References: <543D3671.8040004@omnilan.de> <20141014145253.GD2078@albert.catwhisker.org> <543D4046.9030809@omnilan.de> <1413301063.12052.396.camel@revolution.hippie.lan> <543D4AAA.6040204@omnilan.de> Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 14 Oct 2014 11:00:52 -0600 Message-ID: <1413306052.12052.399.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by ilsoft.org id s9EH0rxe047321 Cc: FreeBSD current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 14 Oct 2014 17:00:56 -0000 On Tue, 2014-10-14 at 18:09 +0200, Harald Schmalzbauer wrote: > Bez=FCglich Ian Lepore's Nachricht vom 14.10.2014 17:37 (localtime): > ... > > It appears that while bsd.ports.mk has lost the ability to use the > > version of the running system (sysctl kern.osreldate), it still has t= he > > logic to just use OSVERSION if it's already set on the make command l= ine > > or in the environment. Can you leverage that to regain the behavior > > you're used to? >=20 > In general yes, that's what I did since my last ports-svn-update, but > only to avoid complete breakage. > Problem is that I have absolutely not in mind what OSVERSION on what > machine to set. So I'm supplying a "dummy" version. That shouldn't be a > problem for my purposes, but it's simply wrong. This check was > introduced to gather the =BBcorrect=AB OSVERSION ;-) And manually suppl= ying > the correct version doesn't work due to brain contraints ;-) > I like the idea to ask a userland installed indicator. But I'm not > familar enough with bsd.incs.mk and the related installworld stage. I'd > just need the hint from where include/Makefile gets conditionally > (MK_TOOLCCHAIN!=3Dno) included ... ?!? Somwhere it start's recursing th= e > SUBDIRs, and I guess every binary calls installincludes: from it's > directory (which works since bsd.lib.mk and bsd.prog.mk include > bsd.incs.mk), but I can't find at what SUBDIR param.h is involved. >=20 > Thanks, >=20 > -Harry >=20 The old code that used to work for you got the version via sysctl, so I was recommending that you keep doing that yourself, since it's no longer built in to bsd.ports.mk. =20 So just add "export OSVERSION=3D`sysctl kern.osreldate` to your script that kicks off this update process, something like that. -- Ian