Fix build system to not move type declarations out of optionals.
This commit is contained in:
parent
821f78b28d
commit
4f447b097d
|
@ -1,3 +1,4 @@
|
||||||
|
- Fix build system to not move type declarations out of optionals.
|
||||||
- Add gcc-config domain to portage.
|
- Add gcc-config domain to portage.
|
||||||
- Add packet object class and support in corenetwork.
|
- Add packet object class and support in corenetwork.
|
||||||
- Add a copy of genhomedircon for monolithic policy building, so that a
|
- Add a copy of genhomedircon for monolithic policy building, so that a
|
||||||
|
|
|
@ -94,25 +94,15 @@ define(`policy_call_depth',0)
|
||||||
define(`optional_policy',`
|
define(`optional_policy',`
|
||||||
ifelse(regexp(`$1',`\W'),`-1',`
|
ifelse(regexp(`$1',`\W'),`-1',`
|
||||||
errprint(__file__:__line__`: deprecated use of module name ($1) as first parameter of optional_policy() block.' __endline__)
|
errprint(__file__:__line__`: deprecated use of module name ($1) as first parameter of optional_policy() block.' __endline__)
|
||||||
optional {
|
optional_policy(shift($*))
|
||||||
pushdef(`__in_optional_policy') dnl
|
|
||||||
$2
|
|
||||||
popdef(`__in_optional_policy') dnl
|
|
||||||
ifelse(`$3',`',`',`
|
|
||||||
} else {
|
|
||||||
$3
|
|
||||||
')
|
|
||||||
}
|
|
||||||
',`
|
',`
|
||||||
optional {
|
optional {`'pushdef(`__in_optional_policy')
|
||||||
pushdef(`__in_optional_policy') dnl
|
|
||||||
$1
|
$1
|
||||||
popdef(`__in_optional_policy') dnl
|
|
||||||
ifelse(`$2',`',`',`
|
ifelse(`$2',`',`',`
|
||||||
} else {
|
} else {
|
||||||
$2
|
$2
|
||||||
')
|
')
|
||||||
}
|
}`'popdef(`__in_optional_policy')`'ifndef(`__in_optional_policy',` # end optional')
|
||||||
')
|
')
|
||||||
')
|
')
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# comment out lines that are moved by the build
|
# comment out lines that are moved by the build
|
||||||
# process, so line numbers provided by m4 are preserved.
|
# process, so line numbers provided by m4 are preserved.
|
||||||
|
|
||||||
# lines in require blocks are not moved
|
# lines in require and optional blocks are not moved
|
||||||
/require \{/,/} # end require/b nextline
|
/require \{/,/} # end require/b nextline
|
||||||
|
/optional \{/,/} # end optional/b nextline
|
||||||
|
|
||||||
/^[[:blank:]]*(attribute|type(alias)?) / s/^/# this line was moved by the build process: &/
|
/^[[:blank:]]*(attribute|type(alias)?) / s/^/# this line was moved by the build process: &/
|
||||||
/^[[:blank:]]*(port|node|netif|genfs)con /s/^/# this line was moved by the build process: &/
|
/^[[:blank:]]*(port|node|netif|genfs)con /s/^/# this line was moved by the build process: &/
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
#n
|
#n
|
||||||
# print out type and attribute declarations that
|
# print out type and attribute declarations that
|
||||||
# are not inside require blocks.
|
# are not inside require and optional blocks.
|
||||||
|
|
||||||
/require \{/,/} # end require/b nextline
|
/require \{/,/} # end require/b nextline
|
||||||
|
/optional \{/,/} # end optional/b nextline
|
||||||
|
|
||||||
/^[[:blank:]]*(attribute|type(alias)?) /{
|
/^[[:blank:]]*(attribute|type(alias)?) /{
|
||||||
s/^[[:blank:]]+//
|
s/^[[:blank:]]+//
|
||||||
|
|
Loading…
Reference in New Issue