]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
(image|rootfs_ipk).bbclass, rootfs.py: ipk multilib fixes
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Wed, 12 Feb 2014 14:33:44 +0000 (16:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Feb 2014 11:41:16 +0000 (11:41 +0000)
This commit whitelists some common directories, so the multilib sanity
checks pass and also fixes an issue in lib/oe/rootfs.py when the
compared files do not exist.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass
meta/classes/rootfs_ipk.bbclass
meta/lib/oe/rootfs.py

index 8f4be137967837e5d784fc7be50aa4f605492fe7..28b68f94f2cfd0acf32ab904cf11634c8a7c972d 100644 (file)
@@ -264,7 +264,7 @@ insert_feed_uris () {
        done
 }
 
-MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${libexecdir}|"
+MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${libexecdir}|${sysconfdir}|${nonarch_base_libdir}/udev|"
 MULTILIB_CHECK_FILE = "${WORKDIR}/multilib_check.py"
 MULTILIB_TEMP_ROOTFS = "${WORKDIR}/multilib"
 
index 6d4f9facc079c7f7abe53c74ceab3a169245ee28..1887dd35658e2129897ab576b955987805a347ba 100644 (file)
@@ -21,7 +21,7 @@ OPKG_POSTPROCESS_COMMANDS = ""
 
 OPKGLIBDIR = "${localstatedir}/lib"
 
-MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg"
+MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg"
 
 python () {
 
index b6baf7780de2816962a3d9802654f737bae2dd2e..4fd17de58e09366cb5ba974e8cee2ab3ea1a2f95 100644 (file)
@@ -496,7 +496,9 @@ class OpkgRootfs(Rootfs):
                         if allow_rep.match(key):
                             valid = True
                         else:
-                            if not filecmp.cmp(files[key], item):
+                            if os.path.exists(files[key]) and \
+                               os.path.exists(item) and \
+                               not filecmp.cmp(files[key], item):
                                 valid = False
                                 bb.fatal("%s duplicate files %s %s is not the same\n" %
                                          (error_prompt, item, files[key]))