Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/portage/util/env_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,7 @@ def _env_update(makelinks, target_root, prev_mtimes, contents, env, writemsg_lev

ldsoconf_path = os.path.join(eroot, "etc", "ld.so.conf")

newld = list(specials["LDPATH"])
if os.path.isdir(os.path.join(eroot, "etc", "ld.so.conf.d")):
# Preserve include directive so ldconfig picks up ld.so.conf.d/*.conf
newld.append(f"include {eprefix}/etc/ld.so.conf.d/*.conf")

newld = specials["LDPATH"]
if grabfile(ldsoconf_path) != newld:
# ld.so.conf needs updating and ldconfig needs to be run
with atomic_ofstream(ldsoconf_path) as myfd:
Expand Down
Loading