portage: really make consoletype module optional
All callers of consoletype_exec() put it in an optional_policy() block but portage. This makes consoletype module mandatory when module portage is loaded, even when consoletype is not installed. Fix this issue by introducing an optional_policy() block. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
51c4812c23
commit
3edba7f505
|
@ -130,8 +130,6 @@ miscfiles_read_localization(gcc_config_t)
|
|||
|
||||
userdom_use_user_terminals(gcc_config_t)
|
||||
|
||||
consoletype_exec(gcc_config_t)
|
||||
|
||||
ifdef(`distro_gentoo',`
|
||||
init_exec_rc(gcc_config_t)
|
||||
')
|
||||
|
@ -140,6 +138,10 @@ tunable_policy(`portage_use_nfs',`
|
|||
fs_read_nfs_files(gcc_config_t)
|
||||
')
|
||||
|
||||
optional_policy(`
|
||||
consoletype_exec(gcc_config_t)
|
||||
')
|
||||
|
||||
optional_policy(`
|
||||
seutil_use_newrole_fds(gcc_config_t)
|
||||
')
|
||||
|
|
Loading…
Reference in New Issue