Issue #403: Don't generate an error if we're analysing a shared library (indicated by the presence of a DT_SONAME tag) and not all the NEEDED resolve to files successfully. Shared libraries can legitimately use dynamic link information from the applications that link against them in order to resolve all their dependencies correctly.
modified libpkg/pkg_elf.c
@@ -65,6 +65,7 @@ filter_system_shlibs(const char *name, char *path, size_t pathlen)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -73,10 +74,6 @@ filter_system_shlibs(const char *name, char *path, size_t pathlen)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -88,14 +85,16 @@ filter_system_shlibs(const char *name, char *path, size_t pathlen)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -104,6 +103,11 @@ add_shlibs_to_pkg(__unused void *actdata, struct pkg *pkg, const char *fpath, co
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -111,7 +115,8 @@ add_shlibs_to_pkg(__unused void *actdata, struct pkg *pkg, const char *fpath, co
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -133,6 +138,11 @@ test_depends(void *actdata, struct pkg *pkg, const char *fpath, const char *name
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -180,7 +190,7 @@ warn_about_name_format(struct pkg *pkg, const char *fpath, const char *shlib)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -215,8 +225,9 @@ warn_about_name_format(struct pkg *pkg, const char *fpath, const char *shlib)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -238,6 +249,7 @@ analyse_elf(struct pkg *pkg, const char *fpath,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -333,7 +345,13 @@ analyse_elf(struct pkg *pkg, const char *fpath,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -344,6 +362,9 @@ analyse_elf(struct pkg *pkg, const char *fpath,
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -352,7 +373,7 @@ analyse_elf(struct pkg *pkg, const char *fpath,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -367,10 +388,15 @@ analyse_elf(struct pkg *pkg, const char *fpath,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -412,7 +438,7 @@ pkg_analyse_files(struct pkgdb *db, struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|