Date: Fri, 22 May 1998 12:20:01 +0200 From: Eivind Eklund <eivind@yes.no> To: Greg Lehey <grog@lemis.com>, FreeBSD current users <FreeBSD-current@FreeBSD.ORG> Subject: Re: src/sys/conf/newvers.sh 1.37 Message-ID: <19980522122001.46688@follo.net> In-Reply-To: <19980522142009.E27201@freebie.lemis.com>; from Greg Lehey on Fri, May 22, 1998 at 02:20:09PM %2B0930 References: <19980522142009.E27201@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 22, 1998 at 02:20:09PM +0930, Greg Lehey wrote:
> > revision 1.37
> > date: 1998/05/21 19:21:45; author: eivind; state: Exp; lines: +9 -2
> > Move __FreeBSD_version from src/sys/conf/newvers.sh to
> > src/sys/sys/param.h, to facilitate access from the kernel. This make
> > it possible to do outside kernel development and have it actually work
> > properly.
>
> This modification appears broken. There's no way to find the path.
You've been really unfortunate and sup'ed in the middle of my commit.
You've hit the window where src/include/Makefile wasn't updated; the update
of sys/conf/newvers.sh and src/include/Makefile were part of the same
commit.
> The code is:
>
> if [ "X${PARAMFILE}" != "X" ]; then
> RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
> ${PARAMFILE})
> else
> RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' \
> $(dirname $0)/../sys/param.h)
> fi
>
> Unfortunately, it's called right at the beginning of a 'make world'
> with:
>
> . /T/src/FREEBIE/src/include/../sys/conf/newvers.sh; echo "$COPYRIGHT" > osreldate.h;
> awk: cmd. line:2: fatal: cannot open file `/bin/../sys/param.h' for reading (No such file or directory)
> *** Error code 2
>
> This can't work because . doesn't set $*.
The check for 'PARAMFILE' above is to interact with src/include/Makefile.
That makes it easily work (if your src/include/Makefile is at rev 1.77).
Eivind.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980522122001.46688>
