Knowledge Base:FEATURES variable contains unknown values loadpolicy

From Gentoo Wiki
Jump to: navigation, search

Synopsis

When running emerge, the following error is shown:

root #emerge ...
FEATURES variable contains unknown value(s): loadpolicy

Environment

This article is applicable to systems who have loadpolicy listed in the Portage FEATURES variable:

root #emerge --info | grep ^FEATURES | grep loadpolicy
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles loadpolicy 
          news parallel-fetch protect-owned sandbox selinux sesandbox sfperms
          strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"

Analysis

This is a remnant of the older SELinux policy module set where policy packages might require this FEATURE to be available. Older SELinux profiles set this variable, but this has since been removed from the tree. However, some users might still have this set in their /etc/portage/make.conf file.

Resolution

As loadpolicy is not used anymore, it can be removed from the FEATURES variable.

  1. Make sure a recent SELinux profile is used (the profile should end with /selinux)
  2. Make sure the FEATURES variable, defined in /etc/portage/make.conf, does not contain loadpolicy