sys-apps/kmod: apply flatcar patches

this revert: eb13455af7

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
Mathieu Tortuyaux 2024-07-10 10:08:51 +02:00
parent 7eb38b6a93
commit 9cf712bbdf
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8

View File

@ -18,7 +18,7 @@ fi
LICENSE="LGPL-2"
SLOT="0"
IUSE="debug doc +lzma pkcs7 static-libs +tools +zlib +zstd"
IUSE="debug doc +lzma pkcs7 split-usr static-libs +tools +zlib +zstd"
# Upstream does not support running the test suite with custom configure flags.
# I was also told that the test suite is intended for kmod developers.
@ -79,8 +79,6 @@ src_prepare() {
src_configure() {
local myeconfargs=(
--bindir="${EPREFIX}/bin"
--sbindir="${EPREFIX}/sbin"
--enable-shared
--with-bashcompletiondir="$(get_bashcompdir)"
$(use_enable debug)
@ -101,12 +99,10 @@ src_install() {
find "${ED}" -type f -name "*.la" -delete || die
if use tools; then
local cmd
for cmd in depmod insmod modprobe rmmod; do
rm "${ED}"/bin/${cmd} || die
dosym ../bin/kmod /sbin/${cmd}
done
if use tools && use split-usr; then
# Move modprobe to /sbin to match CONFIG_MODPROBE_PATH from kernel
rm "${ED}/usr/bin/modprobe" || die
dosym ../usr/bin/kmod /sbin/modprobe
fi
cat <<-EOF > "${T}"/usb-load-ehci-first.conf