Page MenuHomeFreeBSD

D34805.1777516366.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D34805.1777516366.diff

Index: usr.sbin/config/config.y
===================================================================
--- usr.sbin/config/config.y
+++ usr.sbin/config/config.y
@@ -18,6 +18,7 @@
%token HINTS
%token IDENT
%token MAXUSERS
+%token PROFILE
%token OPTIONS
%token NOOPTION
%token MAKEOPTIONS
@@ -191,6 +192,13 @@
System_spec
|
MAXUSERS NUMBER { maxusers = $2; } |
+ PROFILE NUMBER {
+ /* compatibility shim */
+ warnx(
+ "%s:%d: WARNING: This version of config(8) does not support profiling directives.",
+ yyfile, yyline);
+ warnx("WARNING: This will turn into an error when FreeBSD 13.x is no longer supported.\n");
+ } |
ENV ID { newenvvar($2, true); } |
ENVVAR ENVLINE { newenvvar($2, false); } |
HINTS ID {
Index: usr.sbin/config/lang.l
===================================================================
--- usr.sbin/config/lang.l
+++ usr.sbin/config/lang.l
@@ -78,6 +78,7 @@
{ "nomakeoption", NOMAKEOPTION },
{ "nomakeoptions", NOMAKEOPTION },
{ "maxusers", MAXUSERS },
+ { "profile", PROFILE },
{ "option", OPTIONS },
{ "options", OPTIONS },
{ "nooption", NOOPTION },
Index: usr.sbin/config/mkmakefile.c
===================================================================
--- usr.sbin/config/mkmakefile.c
+++ usr.sbin/config/mkmakefile.c
@@ -552,6 +552,14 @@
continue;
}
nreqs++;
+ if (eq(wd, "profiling-routine")) {
+ warn(
+ "%s: WARNING: profiling-routine: this version of config(8) does not support profiling directives.",
+ fname);
+ warnx(
+ "WARNING: This will turn into an error when FreeBSD 13.x is no longer supported.\n");
+ continue;
+ }
if (std)
errout("standard entry %s has optional inclusion specifier %s!\n",
this, wd);

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 30, 2:32 AM (5 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28483033
Default Alt Text
D34805.1777516366.diff (1 KB)

Event Timeline