Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2007 23:24:57 +0400
From:      pluknet <pluknet@gmail.com>
To:        "Wojciech A. Koszek" <wkoszek@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: INCLUDE_CONFIG_FILE patches
Message-ID:  <a31046fc0705071224l686c7101gab422f6329cf3b6c@mail.gmail.com>
In-Reply-To: <20070507172554.GA339@FreeBSD.czest.pl>
References:  <20070506164247.GA77786@FreeBSD.czest.pl> <a31046fc0705070846r4a195858l4566a659f84485@mail.gmail.com> <20070507172554.GA339@FreeBSD.czest.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/05/07, Wojciech A. Koszek <wkoszek@freebsd.org> wrote:
> On Mon, May 07, 2007 at 07:46:29PM +0400, pluknet wrote:
> > Hello,
> >
>
> [..]
>
> >
> > While in buildworld (namely in 'make depend' in usr.sbin/config)
> > I get the following error:
> >
> > ===> usr.sbin/config (obj,depend,all,install)
> > /usr/obj/usr/src/tmp/usr/src/usr.sbin/config created for
> > /usr/src/usr.sbin/config
> > yacc -d /usr/src/usr.sbin/config/config.y
> > cp y.tab.c config.c
> > lex -t  /usr/src/usr.sbin/config/lang.l > lang.c
> > file2c 'char kernconfstr[] = {' ',0};' < kernconf.tmpl > kernconf.c
> > cannot open kernconf.tmpl: No such file or directory
> >
> > It disappears, if I put manually kernconf.tmpl in generated
> > /usr/obj/usr/src/tmp/usr/src/usr.sbin/config
> > Maybe I forgot something?
>
> I belive you should have run patch(1) command with -p0 argument:
>
>         patch -p0 < patchfile
>

If you are about missing kernconf.tmpl after patching - it's fine:
it has appeared successfully in usr.sbin/config/ (but not in that
temporary build directory later).

What about that?
-        file2c 'char kernconfstr[] = {' ',0};' < kernconf.tmpl > kernconf.c
+        file2c 'char kernconfstr[] = {' ',0};' <
${.CURDIR}/kernconf.tmpl > kernconf.c

wbr,
pluknet



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