From: Fabian Groffen Date: Thu, 15 Nov 2007 19:49:35 +0000 (-0000) Subject: Don't try to do ldconfig stuff in prefix, it fails anyway X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a1dfb590db96410012468a6047a53ea4397c4dac;p=portage.git Don't try to do ldconfig stuff in prefix, it fails anyway svn path=/main/branches/prefix/; revision=8508 --- 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