Re: INCLUDE_CONFIG_FILE patches

From: pluknet <pluknet_at_gmail.com>
Date: Mon, 7 May 2007 23:24:57 +0400
On 07/05/07, Wojciech A. Koszek <wkoszek_at_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
Received on Mon May 07 2007 - 17:25:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:09 UTC