summaryrefslogtreecommitdiff
path: root/multiarchanalyze.sql
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-02-26 21:22:12 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-02-26 21:22:12 +0100
commit0dd6c40cba3c1919c44b88eda1f8f75aed6e70b9 (patch)
treeba852706fe4247490d094257697383cb31b6f19f /multiarchanalyze.sql
parent7fd673e4ba4a301b8a53f7b3fecf3b0208f237e6 (diff)
downloaddebian-dedup-0dd6c40cba3c1919c44b88eda1f8f75aed6e70b9.tar.gz
multiarchanalyze: emit a hint for rust packages needing the ma workaround
Diffstat (limited to 'multiarchanalyze.sql')
-rw-r--r--multiarchanalyze.sql13
1 files changed, 13 insertions, 0 deletions
diff --git a/multiarchanalyze.sql b/multiarchanalyze.sql
index 57f5f9b..b94a367 100644
--- a/multiarchanalyze.sql
+++ b/multiarchanalyze.sql
@@ -223,4 +223,17 @@ CREATE VIEW maforeign_library AS
WHERE pid = p.id
AND filename REGEXP '^\./(usr/)?s?bin/.*');
+/* Packages that should employ the m-a:interpreter workaround, because they
+ * * are known to expose the architecture of their dependencies (e.g. rust libraries)
+ * * are currently architecture-independent and multiarch:foreign
+ * * have an architecture-dependent dependency
+ */
+DROP VIEW IF EXISTS maworkaround_packages;
+CREATE VIEW maworkaround_packages AS
+ SELECT name
+ FROM indeppackage AS i
+ WHERE name LIKE 'librust%-dev'
+ AND multiarch = 'foreign'
+ AND EXISTS (SELECT 1 FROM archdepcandidate WHERE dependerid = i.id);
+
COMMIT;