From a1dfb590db96410012468a6047a53ea4397c4dac Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 15 Nov 2007 19:49:35 +0000 Subject: [PATCH] Don't try to do ldconfig stuff in prefix, it fails anyway svn path=/main/branches/prefix/; revision=8508 --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 3004cc299..d78148923 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -701,7 +701,7 @@ def env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None, ldconfig = find_binary("%s-ldconfig" % env["CHOST"]) # Only run ldconfig as needed - if (ld_cache_update or makelinks) and ldconfig: + if (ld_cache_update or makelinks) and ldconfig and EPREFIX != '': # ldconfig has very different behaviour between FreeBSD and Linux if ostype=="Linux" or ostype.lower().endswith("gnu"): # We can't update links if we haven't cleaned other versions first, as -- 2.26.2