From f1a601ea7ce7c44a655644bdae0c684a14a3e9d9 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Mon, 20 Nov 2017 16:03:32 -0800 Subject: app-admin/setools: Fix cross compile Closes: https://bugs.gentoo.org/638286 Signed-off-by: Geoff Levand Signed-off-by: Jason Zaman --- app-admin/setools/setools-4.1.1.ebuild | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app-admin/setools') diff --git a/app-admin/setools/setools-4.1.1.ebuild b/app-admin/setools/setools-4.1.1.ebuild index 03451253583d..5142d939a869 100644 --- a/app-admin/setools/setools-4.1.1.ebuild +++ b/app-admin/setools/setools-4.1.1.ebuild @@ -44,6 +44,8 @@ DEPEND="${RDEPEND} python_prepare_all() { sed -i "s/'-Werror', //" "${S}"/setup.py || die "failed to remove Werror" + sed -i "s@^base_lib_dirs = .*@base_lib_dirs = ['${ROOT:-/}usr/lib','${ROOT:-/}usr/lib64']@g" "${S}"/setup.py || \ + die "failed to set base_lib_dirs" use X || local PATCHES=( "${FILESDIR}"/setools-4.1.1-remove-gui.patch ) distutils-r1_python_prepare_all -- cgit v1.2.3-65-gdbad