]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
rootfs: Fix MULTILIB_RE_ALLOW to be inherit order independent
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Jan 2024 17:22:01 +0000 (17:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jan 2024 10:13:41 +0000 (10:13 +0000)
This variable is only used by the ipk backend with multilibs.

In order to make it work correctly regardless of inherit order, change
the string to be space delimeted, set using += and add in the regex '|'
sperator at the end of processing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/image.bbclass
meta/classes-recipe/rootfs_ipk.bbclass
meta/lib/oe/package_manager/ipk/rootfs.py

index 7231fad940d2096caeff26f19800b14a2f8d1aa2..6bdddc0134c6343b228f3e12447c4d2d0434ec88 100644 (file)
@@ -609,7 +609,7 @@ python create_symlinks() {
             bb.note("Skipping symlink, source does not exist: %s -> %s" % (dst, src))
 }
 
-MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${libexecdir}|${sysconfdir}|${nonarch_base_libdir}/udev|/lib/modules/[^/]*/modules.*|"
+MULTILIBRE_ALLOW_REP += "${base_bindir} ${base_sbindir} ${bindir} ${sbindir} ${libexecdir} ${sysconfdir} ${nonarch_base_libdir}/udev /lib/modules/[^/]*/modules.*"
 MULTILIB_CHECK_FILE = "${WORKDIR}/multilib_check.py"
 MULTILIB_TEMP_ROOTFS = "${WORKDIR}/multilib"
 
index a48ad07dfc8b9ac74bacd09f10d8cb8f5333ee99..87fff53a588d1695291050710cd5bea2052fe091 100644 (file)
@@ -29,7 +29,7 @@ OPKG_POSTPROCESS_COMMANDS = ""
 
 OPKGLIBDIR ??= "${localstatedir}/lib"
 
-MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg|/usr/lib/opkg"
+MULTILIBRE_ALLOW_REP += "${OPKGLIBDIR}/opkg /usr/lib/opkg"
 
 python () {
 
index 1f74f7e39a9d893c957133d221f2c2469e9dbe2c..ba93eb62ea83b568962e71e47e2ef7fe20e78daa 100644 (file)
@@ -165,7 +165,7 @@ class PkgRootfs(DpkgOpkgRootfs):
     """
     def _multilib_sanity_test(self, dirs):
 
-        allow_replace = self.d.getVar("MULTILIBRE_ALLOW_REP")
+        allow_replace = "|".join((self.d.getVar("MULTILIBRE_ALLOW_REP") or "").split())
         if allow_replace is None:
             allow_replace = ""