[arch-projects] [namcap] [PATCH] multilib packages depend on their regular counterparts

Maxime Gauduin alucryd at archlinux.org
Fri Jul 17 12:08:25 UTC 2015


Multilib packages are usually stripped from everything that could conflict with
their regular counterparts (bin, include, share) and thus depend on them.
Currently namcap warns that they are not needed. There are of course a few
exceptions, so instead of adding the regular package in smartdepend earlier in
the script, skipping the warning seems to be the way to go.

---
 Namcap/depends.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Namcap/depends.py b/Namcap/depends.py
index d80dd9f..4409f7d 100644
--- a/Namcap/depends.py
+++ b/Namcap/depends.py
@@ -134,6 +134,9 @@ def analyze_depends(pkginfo):
 		errors.append(("dependency-detected-not-included %s (%s)", (i, reason)))
 
 	for i in pkginfo["depends"]:
+		# multilib packages usually depend on their regular counterparts
+		if pkginfo["name"].startswith('lib32-') and i == pkginfo["name"].partition('-')[2]:
+			continue
 		# a needed dependency is superfluous it is implicitly satisfied
 		if i in implicitdepend and (i in smartdepend or i in indirectdependlist):
 			warnings.append(("dependency-already-satisfied %s", i))
-- 
2.4.6


More information about the arch-projects mailing list