From df9692779fe7c9242d92ea9508312e18411a8e38 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 28 Apr 2021 14:46:30 +0200 Subject: sys-kernel/dracut-crypt-ssh: Fixed libdir for x86 Signed-off-by: Lars Wendler Closes: https://github.com/gentoo/gentoo/pull/20573 Signed-off-by: Lars Wendler --- sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys-kernel/dracut-crypt-ssh') diff --git a/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild b/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild index a403202d1903..88badd7c96af 100644 --- a/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild +++ b/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild @@ -27,6 +27,15 @@ RDEPEND="${DEPEND} PATCHES=( "${FILESDIR}"/${P}-makefile.patch ) +src_prepare() { + default + + # Fix libdir (hard-coded to "lib64") + sed "s@/lib64/@/$(get_libdir)/@" \ + -i modules/60crypt-ssh/module-setup.sh \ + || die +} + src_configure() { tc-export CC default -- cgit v1.2.3-65-gdbad