Skip to content

Commit bc13e24

Browse files
anthonyryan1thesamesam
authored andcommitted
env_update: Deduplicate the ld.so.conf.d include
Regression was introduced during iteration. An earlier iteration of 4e154ad had attempted to solve the problem differently, and these lines were an artifact of an inferior approach. During visual inspection of /etc/ld.so.conf after changes I misread the prepended include as part of the initial comment block, and inspected all lines beginning with /usr and afterward. Closes: https://bugs.gentoo.org/961463 Part-of: #1592 Closes: #1599 Signed-off-by: Anthony Ryan <anthonyryan1@gmail.com> Part-of: #1599 Signed-off-by: Sam James <sam@gentoo.org>
1 parent 4e154ad commit bc13e24

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/portage/util/env_update.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,7 @@ def _env_update(makelinks, target_root, prev_mtimes, contents, env, writemsg_lev
195195

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

198-
newld = list(specials["LDPATH"])
199-
if os.path.isdir(os.path.join(eroot, "etc", "ld.so.conf.d")):
200-
# Preserve include directive so ldconfig picks up ld.so.conf.d/*.conf
201-
newld.append(f"include {eprefix}/etc/ld.so.conf.d/*.conf")
202-
198+
newld = specials["LDPATH"]
203199
if grabfile(ldsoconf_path) != newld:
204200
# ld.so.conf needs updating and ldconfig needs to be run
205201
with atomic_ofstream(ldsoconf_path) as myfd:

0 commit comments

Comments
 (0)