Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2014 11:00:52 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
Cc:        FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: installincludes, bsd.incs.mk and param.h
Message-ID:  <1413306052.12052.399.camel@revolution.hippie.lan>
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>

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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1413306052.12052.399.camel>