Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fixing the failure to report shlib-to-shlib missing dependencies for 'pkg check -B'
Yuri committed 11 years ago
commit e897c86918c688cf01dec6982e4dbafc297ce580
parent 8318571
1 file changed +6 -3
modified libpkg/pkg_elf.c
@@ -114,10 +114,13 @@ add_shlibs_to_pkg(__unused void *actdata, struct pkg *pkg, const char *fpath,
	case EPKG_END:		/* A system library */
		return (EPKG_OK);
	default:
-
		/* Ignore link resolution errors if we're analysing a
-
		   shared library. */
-
		if (is_shlib)
+
		/* Report link resolution errors in shared library. */
+
		if (is_shlib) {
+
			pkg_get(pkg, PKG_NAME, &pkgname, PKG_VERSION, &pkgversion);
+
			warnx("(%s-%s) %s - shared library %s not found",
+
			      pkgname, pkgversion, fpath, name);
			return (EPKG_OK);
+
		}

		while (pkg_files(pkg, &file) == EPKG_OK) {
			filepath = file->path;