meson: backport library ordering fix

meson had a bug where they started looking for static boost libraries
first vs. the default behavior of looking at shared libraries first.
This caused issues because some projects assume the shared libraries
first which automatically add in other shared library dependencies.
Static libraries do not have the default behavior so projects that use
boost start failing to compile with undefined references to other boost
libraries.

The patch was initially put into the meta-phosphor layer as a bbappend
but it really should be a backport from oe-core upstream.

This commit backports the upstream fix and removes the meta-phosphor
patch.

Signed-off-by: Andrew Geissler <geissonator@gmail.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Id50eb02fa8ad519903498ace2ef825d55fa1b033
diff --git a/meta-phosphor/recipes-devtools/meson/meson_0.54.2.bbappend b/meta-phosphor/recipes-devtools/meson/meson_0.54.2.bbappend
deleted file mode 100644
index 4880c90..0000000
--- a/meta-phosphor/recipes-devtools/meson/meson_0.54.2.bbappend
+++ /dev/null
@@ -1,3 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SRC_URI += "file://0001-boost-Always-sort-shared-before-static-fixes-7171.patch"
diff --git a/poky/meta/recipes-devtools/meson/meson.inc b/poky/meta/recipes-devtools/meson/meson.inc
index 12bc086..a0b54f5 100644
--- a/poky/meta/recipes-devtools/meson/meson.inc
+++ b/poky/meta/recipes-devtools/meson/meson.inc
@@ -15,6 +15,7 @@
            file://cross-prop-default.patch \
            file://0001-modules-python.py-do-not-substitute-python-s-install.patch \
            file://0001-gnome.py-prefix-g-i-paths-with-PKG_CONFIG_SYSROOT_DI.patch \
+           file://0001-boost-Always-sort-shared-before-static-fixes-7171.patch \
            "
 SRC_URI[sha256sum] = "a7716eeae8f8dff002e4147642589ab6496ff839e4376a5aed761f83c1fa0455"
 
diff --git a/meta-phosphor/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch b/poky/meta/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch
similarity index 89%
rename from meta-phosphor/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch
rename to poky/meta/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch
index 08cb103..2172181 100644
--- a/meta-phosphor/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch
+++ b/poky/meta/recipes-devtools/meson/meson/0001-boost-Always-sort-shared-before-static-fixes-7171.patch
@@ -3,6 +3,9 @@
 Date: Thu, 21 May 2020 13:35:27 +0200
 Subject: [PATCH] boost: Always sort shared before static (fixes #7171)
 
+Upstream-Status: Backport [https://github.com/mesonbuild/meson/commit/5862ad6965c60caa861dfdcd29e499c34c4d00da]
+
+Signed-off-by: Andrew Geissler <geissonator@gmail.com>
 ---
  mesonbuild/dependencies/boost.py | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
@@ -27,6 +30,6 @@
                  not other.mt, not other.runtime_static,
                  not other.debug, other.runtime_debug, other.python_debug,
                  other.stlport, other.deprecated_iostreams,
--- 
+--
 2.26.2