The following commit has been merged in the master branch:
commit cdfd9738c03b772574443a61a2335ae934f0998e
Author: Guillem Jover <[email protected]>
Date:   Mon Oct 8 21:24:25 2012 +0200

    libdpkg: Only satisfy a dependency on a M-A:foreign if arch-unqualified
    
    Make sure that if the dependency is arch-qualified we do not satisfy it
    just because the target package is “Multi-Arch: foreign”, as that would
    bypass specific arch-qualifiers.

diff --git a/debian/changelog b/debian/changelog
index 4c1f186..b7ae7dc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -46,6 +46,7 @@ dpkg (1.16.9) UNRELEASED; urgency=low
     values, by always reading the format file and validating it.
   * Clarify that the most probable reason for multiarch database
     inconcistencies is due to upgrades from unofficial dpkg versions.
+  * Only satisfy a dependency on a “Multi-Arch: foreign” if arch-unqualified.
 
   [ Updated programs translations ]
   * Czech (Miroslav Kure).
diff --git a/lib/dpkg/depcon.c b/lib/dpkg/depcon.c
index bd9c831..97d02e7 100644
--- a/lib/dpkg/depcon.c
+++ b/lib/dpkg/depcon.c
@@ -55,7 +55,8 @@ archsatisfied(struct pkgbin *it, struct deppossi *against)
 {
        const struct dpkg_arch *dep_arch, *pkg_arch;
 
-       if (it->multiarch == multiarch_foreign)
+       if (against->arch_is_implicit &&
+           it->multiarch == multiarch_foreign)
                return true;
 
        dep_arch = against->arch;

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to