sys-kernel/hardened-kernel: fix ebuild

Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
This commit is contained in:
Alexander Miroshnichenko 2025-10-13 20:07:30 +03:00
parent b32bb1002d
commit 874f33ef2d

View File

@ -99,11 +99,11 @@ src_prepare() {
mkdir "${WORKDIR}/${USER_PATCHSET}"
# remove some genpatches causes conflicts with linux-hardened patch
for patch in "${GENPATCHES_EXCLUDE}"; do
for patch in ${GENPATCHES_EXCLUDE}; do
rm -f "${WORKDIR}/${PATCHSET}/${patch}"
done
# Remove already exists changes in linux-hardened patch
sed -i '344,356d' "${WORKDIR}/${PATCHSET}/0010-Add-Gentoo-Linux-support-config-settings-and-default.patch"
sed -i '344,356d' "${WORKDIR}/${PATCHSET}/0011-Add-Gentoo-Linux-support-config-settings-and-default.patch"
# include linux-hardened patch with priority
cp "${DISTDIR}/linux-hardened-v${HARDENED_PATCH_VER}.patch" \
"${WORKDIR}/${USER_PATCHSET}/1198_linux-hardened-${HARDENED_PATCH_VER}.patch"