both packages set S="${WORKDIR}/" , even though src_unpack unpacks into "${WORKDIR}/refpolicy" . This makes formatting user patches needlessly difficult. Additionally, selinux-base has || die "Failed to enable SystemD" on line 64 - SystemD is against systemds spelling policy, it should always be systemd. See https://www.freedesktop.org/wiki/Software/systemd/