From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:prefix commit in: pym/portage/util/
Date: Sun, 14 Jun 2015 17:37:50 +0000 (UTC) [thread overview]
Message-ID: <1434289811.dde7fb0919d40cc5585e8a603046e7098371ad69.grobian@gentoo> (raw)
commit: dde7fb0919d40cc5585e8a603046e7098371ad69
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 10 01:45:31 2014 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jun 14 13:50:11 2015 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=dde7fb09
let env-update call ldconfig if it exists
In Prefix, let env-update call ldconfig if it exists.
It does not affect prefix-rpath, and handles prefix-libc(RAP) correctly.
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
pym/portage/util/env_update.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pym/portage/util/env_update.py b/pym/portage/util/env_update.py
index ace492c..5e732ad 100644
--- a/pym/portage/util/env_update.py
+++ b/pym/portage/util/env_update.py
@@ -306,13 +306,15 @@ def _env_update(makelinks, target_root, prev_mtimes, contents, env,
if not libdir_contents_changed:
makelinks = False
- ldconfig = "/sbin/ldconfig"
+ ldconfig = eprefix + "/sbin/ldconfig"
if "CHOST" in settings and "CBUILD" in settings and \
settings["CHOST"] != settings["CBUILD"]:
ldconfig = find_binary("%s-ldconfig" % settings["CHOST"])
+ elif not (os.access(ldconfig, os.X_OK) and os.path.isfile(ldconfig)):
+ ldconfig = None
# Only run ldconfig as needed
- if makelinks and ldconfig and not eprefix:
+ if makelinks and ldconfig:
# 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
next reply other threads:[~2015-06-14 17:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-14 17:37 Fabian Groffen [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-20 6:55 [gentoo-commits] proj/portage:prefix commit in: pym/portage/util/ Fabian Groffen
2013-09-18 18:34 Fabian Groffen
2013-09-18 18:34 Fabian Groffen
2013-09-18 18:34 Fabian Groffen
2012-01-10 17:45 Fabian Groffen
2011-05-28 9:23 Fabian Groffen
2011-02-06 21:01 Fabian Groffen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434289811.dde7fb0919d40cc5585e8a603046e7098371ad69.grobian@gentoo \
--to=grobian@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox