From bb2cef5edf85ffacc36a97c394c4af0115c6ffcd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 19 Jul 2022 07:51:31 +0100 Subject: sys-kernel/bbswitch-dkms : fix src_prepare, patch EAPI7 way --- sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r2.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys-kernel/bbswitch-dkms') diff --git a/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r2.ebuild b/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r2.ebuild index 86958fec..8aeb65dc 100644 --- a/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r2.ebuild +++ b/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r2.ebuild @@ -20,10 +20,14 @@ RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_PN}-${PV}" +PATCHES=( + "${FILESDIR}"/"${P}"-conf.patch +) + src_prepare() { + default # Fix build failure, bug #513542 sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile - epatch ${FILESDIR}/${P}-conf.patch } src_compile() { -- cgit v1.2.3