Message ID | 20211207152736.1294364-1-mac@mcrowe.com |
---|---|
State | Accepted, archived |
Commit | 8571182ece1602ce8e030c98aef17cdc5718a037 |
Headers | show |
Series | [1/2] package: Only snap libraries if they would be processed by ldconfig OS-12840 | expand |
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 84eafbd529..09cd376f4a 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1878,7 +1878,7 @@ python package_do_shlibs() { sonames.add(prov) if libdir_re.match(os.path.dirname(file)): needs_ldconfig = True - if snap_symlinks and (os.path.basename(file) != this_soname): + if needs_ldconfig and snap_symlinks and (os.path.basename(file) != this_soname): renames.append((file, os.path.join(os.path.dirname(file), this_soname))) return (needs_ldconfig, needed, sonames, renames)