From 6913160633da3e59c2f977cabd53c0cd7ef30c17 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Jan 2018 01:09:34 -0800 Subject: [PATCH] PreservedLibsRegistry: fix pruneNonExisting for symlinks to other dirs (bug 642672) Fixes: 32d19be14e22 ("pruneNonExisting: handle eselect-opengl symlinks") --- pym/portage/util/_dyn_libs/PreservedLibsRegistry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py b/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py index a422ffefd..1d1419fe0 100644 --- a/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py +++ b/pym/portage/util/_dyn_libs/PreservedLibsRegistry.py @@ -227,7 +227,7 @@ class PreservedLibsRegistry(object): # removed by _remove_preserved_libs, it calls pruneNonExisting # which eliminates the irrelevant symlink from the registry here. for f, target in symlinks.items(): - if os.path.join(os.path.dirname(f), target) in hardlinks: + if portage.abssymlink(f, target=target) in hardlinks: paths.append(f) if len(paths) > 0: -- 2.13.6