Fix build system to not move type declarations out of optionals.

This commit is contained in:
Chris PeBenito 2006-06-12 16:59:21 +00:00
parent 821f78b28d
commit 4f447b097d
4 changed files with 8 additions and 15 deletions

View File

@ -1,3 +1,4 @@
- Fix build system to not move type declarations out of optionals.
- Add gcc-config domain to portage.
- Add packet object class and support in corenetwork.
- Add a copy of genhomedircon for monolithic policy building, so that a

View File

@ -94,25 +94,15 @@ define(`policy_call_depth',0)
define(`optional_policy',`
ifelse(regexp(`$1',`\W'),`-1',`
errprint(__file__:__line__`: deprecated use of module name ($1) as first parameter of optional_policy() block.' __endline__)
optional {
pushdef(`__in_optional_policy') dnl
$2
popdef(`__in_optional_policy') dnl
ifelse(`$3',`',`',`
} else {
$3
')
}
optional_policy(shift($*))
',`
optional {
pushdef(`__in_optional_policy') dnl
optional {`'pushdef(`__in_optional_policy')
$1
popdef(`__in_optional_policy') dnl
ifelse(`$2',`',`',`
} else {
$2
')
}
}`'popdef(`__in_optional_policy')`'ifndef(`__in_optional_policy',` # end optional')
')
')

View File

@ -1,8 +1,9 @@
# comment out lines that are moved by the build
# 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
/optional \{/,/} # end optional/b nextline
/^[[: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: &/

View File

@ -1,8 +1,9 @@
#n
# print out type and attribute declarations that
# are not inside require blocks.
# are not inside require and optional blocks.
/require \{/,/} # end require/b nextline
/optional \{/,/} # end optional/b nextline
/^[[:blank:]]*(attribute|type(alias)?) /{
s/^[[:blank:]]+//