Re: sys/conf/DEFAULT[S]

From: Bruce Evans (bde_at_zeta.org.au)
Date: 09/27/03

  • Next message: Stefan Farfeleder: "Re: sys/conf/DEFAULT[S]"
    Date: Sat, 27 Sep 2003 08:14:30 +1000 (EST)
    To: "Adam C. Migus" <adam@migus.org>
    
    

    On Fri, 26 Sep 2003, Adam C. Migus wrote:

    > Bruce Evans said:
    > > Do we actually gave the abiltity to include other config files? It
    > > was
    > > quite broken last time I tried to use it for anything more
    > > complicated
    > > than the example in "SMP".
    >
    > I use the include feature quite a bit, nested in some cases. It
    > works great for me for creating combinations of debug, diskless, mac
    > and smp kernels for example.

    My example written last Februry still shows that even simple includes
    don't work:

    %%%
    Script started on Tue Feb 25 14:16:01 2003
    ttyp0:bde@besplex:/usr/src/sys/i386/conf> cat FOOBAR
    include FOO
    ttyp0:bde@besplex:/usr/src/sys/i386/conf> cat FOO
    machine i386
    cpu I486_CPU
    ident FOO
    ttyp0:bde@besplex:/usr/src/sys/i386/conf> config FOOBAR
    config: FOO:1: syntax error
    ttyp0:bde@besplex:/usr/src/sys/i386/conf> config FOO
    Kernel build directory is ../compile/FOO
    Don't forget to do a ``make depend''
    ttyp0:bde@besplex:/usr/src/sys/i386/conf> exit

    Script done on Tue Feb 25 14:16:23 2003
    %%%

    Similarly with FOOBAR's contents identical with SMP's contents except
    for including FOO instead of GENERIC. So the bug must be related to
    the file being included ... adding an empty or comment line to the
    beginning of FOO works around it. I guess there is an off-by-1 byte
    or line error switching the input stream.

    Bruce
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Stefan Farfeleder: "Re: sys/conf/DEFAULT[S]"

    Relevant Pages

    • Re: Big Mac Hoax 2: "OS X is Unix"
      ... Sure, it is different, but there is value in *not* having Foo, ... Manually editing config files becomes a chore rather than a preferred ... Considering that>3% of computer users are Linux users, ...
      (comp.sys.mac.advocacy)
    • Re: Big Mac Hoax 2: "OS X is Unix"
      ... Sure, it is different, but there is value in *not* having Foo, ... Manually editing config files becomes a chore rather than a preferred ... Why on Earth would you *manually* edit a plist file? ...
      (comp.sys.mac.advocacy)
    • Re: Find every instance of hostname
      ... get the correct hostname, so I'd like to be able to search this box, ... for config files that contain the box's ... It should be simple enough to do using find and grep, ... where foo is the string you are searching for. ...
      (Fedora)