Don't try to do ldconfig stuff in prefix, it fails anyway
authorFabian Groffen <grobian@gentoo.org>
Thu, 15 Nov 2007 19:49:35 +0000 (19:49 -0000)
committerFabian Groffen <grobian@gentoo.org>
Thu, 15 Nov 2007 19:49:35 +0000 (19:49 -0000)
svn path=/main/branches/prefix/; revision=8508

pym/portage/__init__.py

index 3004cc2991dc56a4b623b0e94a112356e840b65d..d78148923aa196a63ef9d891307a51c6e5ac9896 100644 (file)
@@ -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