Date: Sun, 4 May 2003 10:26:14 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Warner Losh <imp@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile.inc1 Message-ID: <20030504072614.GA71034@sunbay.com> In-Reply-To: <200305040414.h444EB9a015741@repoman.freebsd.org> References: <200305040414.h444EB9a015741@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Sat, May 03, 2003 at 09:14:11PM -0700, Warner Losh wrote:
> imp 2003/05/03 21:14:11 PDT
>
> FreeBSD src repository
>
> Modified files:
> . Makefile.inc1
> Log:
> Many developers run with userland != to kernel. While this isn't
> supported, it usually works for months at a time. Allow these people
> to override the OSRELDATE of their installed world when things don't
> match and the exact OSRELDATE matters and is different than the
> kernel. Now that Makefile.inc1 depends more and more about which date
> you have to optimize the pieces it builds, it may be necessary to
> pessimize things if its guesses are wrong.
>
> If OSRELDATE is already set, we won't fork the sysctl to find out what
> the kernel's date is.
>
> Developers on IRC suggested that they run mismatches all the time as
> well.
>
> Reviewed by: obrien
>
Since we're interested mostly in userland date, a fix to the problem
is to change OSRELDATE in Makefile.inc1 to the one from <osreldate.h>.
Something like this might work:
awk '$1 == "#define" && $2 == "__FreeBSD_version" { print $3 }' /usr/include/osreldate.h
Didn't have time to make it work under "!=" control in Makefile.inc1.
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru@sunbay.com Sunbay Software AG,
ru@FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
iD8DBQE+tMCWUkv4P6juNwoRAknJAJ9kBPbyMFHDsRvICOBSuWT+fq2dEwCeJoD0
pwT8KtDdvdpzGJToT2m5cBY=
=rnIu
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030504072614.GA71034>
