On 11/28/25 4:44 PM, Rahul Sandhu wrote: > Currently, a manual rebuild using the `@selinux-rebuild` set is needed > upon update of the POLICY_TYPES variable. This means that portage can't > track changes to it with `emerge --changed-use`. By making POLICY_TYPES > the new USE expand, SELINUX_POLICY_TYPES, `--changed-use` will trigger > a rebuild upon changes to it. > > However, make SELINUX_POLICY_TYPES different so that POLICY_TYPES, the > old variable remains intact for EAPI 7, providing backwards compat with > EAPI 7. This patch only bumps the eclass however; sec-policy/selinux-* > and other related ebuilds are to be migrated to EAPI 8 later. This also > gives us time to put out a news article for this migration. > > Naming the new USE expand SELINUX_POLICY_TYPES also makes it inline > with eclass variables, such as SELINUX_GIT_REPO and SELINUX_GIT_BRANCH. > > Also document why we parse IUSE instead of USE, and strip the possible > leading '+' so that IUSE="+foo" is interpreted as 'foo' and not '+foo'. > > Bug: https://bugs.gentoo.org/951355 > Signed-off-by: Rahul Sandhu <[email protected]> > --- > eclass/selinux-policy-2.eclass | 204 ++++++++++++++++++------ > profiles/base/make.defaults | 2 +- > profiles/desc/selinux_policy_types.desc | 9 ++ > 3 files changed, 161 insertions(+), 54 deletions(-) > create mode 100644 profiles/desc/selinux_policy_types.desc > > v2: rename IUSE variable to SELINUX_POLICY_TYPES, update copyright headers > v3: fix-up REQUIRED_USE such that at least one policy type is required, pull > in the appropriate policy type for the base policy.
Thanks, merged. -- Eli Schwartz
OpenPGP_signature.asc
Description: OpenPGP digital signature
