selinux-policy: do not execute binaries under $ROOT

Run-time binaries must be provided by the SDK, dynamic libraries or the
entire architecture may be different under the target $ROOT.

I have no idea if selinux can be built cross-architecture though, if not
this may need to be revisited with qemu.
This commit is contained in:
Michael Marineau 2015-08-14 17:25:43 -07:00
parent 8fed02d826
commit eb258f2da7
3 changed files with 8 additions and 1 deletions

View File

@ -40,4 +40,11 @@ DEPEND="
sys-fs/cryptsetup
dev-rust/cargo
"
# Must match the build-time dependencies listed in selinux-policy-2.eclass
DEPEND="${DEPEND}
>=sys-apps/checkpolicy-2.0.21
>=sys-apps/policycoreutils-2.0.82
sys-devel/m4"
RDEPEND="${DEPEND}"

View File

@ -232,7 +232,7 @@ selinux-policy-2_src_compile() {
# Parallel builds are broken in 2.20140311-r7 and earlier, bug 530178
emake -j1 NAME=$i SHAREDIR="${ROOT}/usr/share/selinux" -C "${S}"/${i} || die "${i} compile failed"
else
emake NAME=$i BINDIR="${ROOT}/usr/bin" SHAREDIR="${ROOT}/usr/share/selinux" -C "${S}"/${i} || die "${i} compile failed"
emake NAME=$i SHAREDIR="${ROOT}/usr/share/selinux" -C "${S}"/${i} || die "${i} compile failed"
fi
done
}