package.bbclass: don't mix armhf deps
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 10 May 2016 22:45:48 +0000 (01:45 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 10 May 2016 23:11:18 +0000 (02:11 +0300)
the armhf hack was causing other packages to pick up false armhf
dependencies like armhfzlib1g instead of expected libz1

classes/package.bbclass

index 662b0db..dcfa7cf 100644 (file)
@@ -715,12 +715,15 @@ python package_do_shlibs() {
 
        shlib_provider = {}
        list_re = re.compile('^(.*)\.list$')
+       armhf_re = re.compile('^(armhf.*)\.list$')
        for dir in [shlibs_dir]: 
                if not os.path.exists(dir):
                        continue
                for file in os.listdir(dir):
                        m = list_re.match(file)
                        if m:
+                               if bool(armhf_re.match(file)) != pkg.startswith('armhf'):
+                                       continue
                                dep_pkg = m.group(1)
                                fd = open(os.path.join(dir, file))
                                lines = fd.readlines()