Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not require libraries that are provided by the same package.
Vsevolod Stakhov committed 12 years ago
commit f38e89886e26558cf8a57fd1c3e6db92904b6259
parent e30604b
1 file changed +5 -0
modified libpkg/pkg.c
@@ -1005,6 +1005,11 @@ pkg_addshlib_required(struct pkg *pkg, const char *name)
	if (s != NULL)
		return (EPKG_OK);

+
	HASH_FIND_STR(pkg->shlibs_provided, name, s);
+
	/* avoid deps on the same package */
+
	if (s != NULL)
+
		return (EPKG_OK);
+

	pkg_shlib_new(&s);

	sbuf_set(&s->name, name);