cvs commit: src Makefile.inc1

Ruslan Ermilov ru at FreeBSD.org
Sun May 4 00:26:31 PDT 2003


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 at sunbay.com		Sunbay Software AG,
ru at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20030504/7009d849/attachment.bin


More information about the cvs-src mailing list