All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] nativesdk-meson: add missing dependency on setuptools
@ 2018-12-20 15:40 Ross Burton
  2018-12-20 15:40 ` [PATCH 2/3] nativesdk-packagegroup-sdk-host: add Meson Ross Burton
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ross Burton @ 2018-12-20 15:40 UTC (permalink / raw)
  To: openembedded-core

Meson uses pkg_resources, which is part of setuptools.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb b/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
index 53503aa9988..721ee8c8f12 100644
--- a/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
+++ b/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
@@ -66,9 +66,8 @@ do_install_append() {
 
 RDEPENDS_${PN} += "\
     nativesdk-ninja \
-    nativesdk-python3-core \
-    nativesdk-python3-misc \
-    nativesdk-python3-modules \
+    nativesdk-python3 \
+    nativesdk-python3-setuptools \
     "
 
 FILES_${PN} += "${datadir}/meson ${SDKPATHNATIVE}"
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] nativesdk-packagegroup-sdk-host: add Meson
  2018-12-20 15:40 [PATCH 1/3] nativesdk-meson: add missing dependency on setuptools Ross Burton
@ 2018-12-20 15:40 ` Ross Burton
  2018-12-20 15:40 ` [PATCH 3/3] oeqa/sdk: add test to exercise Meson Ross Burton
  2018-12-20 16:05 ` ✗ patchtest: failure for "nativesdk-meson: add missing d..." and 2 more Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2018-12-20 15:40 UTC (permalink / raw)
  To: openembedded-core

Meson is growing in popularity, so add it to the SDK packagegroup.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
index 4bf0ac04577..ae989011f48 100644
--- a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
+++ b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
@@ -22,6 +22,7 @@ RDEPENDS_${PN} = "\
     nativesdk-shadow \
     nativesdk-makedevs \
     nativesdk-cmake \
+    nativesdk-meson \
     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'nativesdk-wayland', '', d)} \
     nativesdk-sdk-provides-dummy \
     nativesdk-bison \
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] oeqa/sdk: add test to exercise Meson
  2018-12-20 15:40 [PATCH 1/3] nativesdk-meson: add missing dependency on setuptools Ross Burton
  2018-12-20 15:40 ` [PATCH 2/3] nativesdk-packagegroup-sdk-host: add Meson Ross Burton
@ 2018-12-20 15:40 ` Ross Burton
  2019-01-03 17:49   ` Richard Purdie
  2018-12-20 16:05 ` ✗ patchtest: failure for "nativesdk-meson: add missing d..." and 2 more Patchwork
  2 siblings, 1 reply; 5+ messages in thread
From: Ross Burton @ 2018-12-20 15:40 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/lib/oeqa/sdk/cases/buildepoxy.py | 36 +++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 meta/lib/oeqa/sdk/cases/buildepoxy.py

diff --git a/meta/lib/oeqa/sdk/cases/buildepoxy.py b/meta/lib/oeqa/sdk/cases/buildepoxy.py
new file mode 100644
index 00000000000..47ae5e96df3
--- /dev/null
+++ b/meta/lib/oeqa/sdk/cases/buildepoxy.py
@@ -0,0 +1,36 @@
+import os
+import subprocess
+import tempfile
+import unittest
+
+from oeqa.sdk.case import OESDKTestCase
+from oeqa.utils.subprocesstweak import errors_have_output
+errors_have_output()
+
+class EpoxyTest(OESDKTestCase):
+    """
+    Test that Meson builds correctly.
+    """
+    def setUp(self):
+        if not (self.tc.hasHostPackage("nativesdk-meson")):
+            raise unittest.SkipTest("GalculatorTest class: SDK doesn't contain Meson")
+
+    def test_epoxy(self):
+        with tempfile.TemporaryDirectory(prefix="epoxy", dir=self.tc.sdk_dir) as testdir:
+            dl_dir = self.td.get('DL_DIR', None)
+            tarball = self.fetch(testdir, dl_dir, "https://github.com/anholt/libepoxy/releases/download/1.5.3/libepoxy-1.5.3.tar.xz")
+
+            dirs = {}
+            dirs["source"] = os.path.join(testdir, "libepoxy-1.5.3")
+            dirs["build"] = os.path.join(testdir, "build")
+            dirs["install"] = os.path.join(testdir, "install")
+
+            subprocess.check_output(["tar", "xf", tarball, "-C", testdir])
+            self.assertTrue(os.path.isdir(dirs["source"]))
+            os.makedirs(dirs["build"])
+
+            self._run("meson -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs))
+            self._run("ninja -C {build} -v".format(**dirs))
+            self._run("DESTDIR={install} ninja -C {build} -v install".format(**dirs))
+
+            self.check_elf(os.path.join(dirs["install"], "usr", "local", "lib", "libepoxy.so"))
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* ✗ patchtest: failure for "nativesdk-meson: add missing d..." and 2 more
  2018-12-20 15:40 [PATCH 1/3] nativesdk-meson: add missing dependency on setuptools Ross Burton
  2018-12-20 15:40 ` [PATCH 2/3] nativesdk-packagegroup-sdk-host: add Meson Ross Burton
  2018-12-20 15:40 ` [PATCH 3/3] oeqa/sdk: add test to exercise Meson Ross Burton
@ 2018-12-20 16:05 ` Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2018-12-20 16:05 UTC (permalink / raw)
  To: Ross Burton; +Cc: openembedded-core

== Series Details ==

Series: "nativesdk-meson: add missing d..." and 2 more
Revision: 1
URL   : https://patchwork.openembedded.org/series/15436/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue             Series does not apply on top of target branch [test_series_merge_on_head] 
  Suggested fix    Rebase your series on top of targeted branch
  Targeted branch  master (currently at 284596e947)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 3/3] oeqa/sdk: add test to exercise Meson
  2018-12-20 15:40 ` [PATCH 3/3] oeqa/sdk: add test to exercise Meson Ross Burton
@ 2019-01-03 17:49   ` Richard Purdie
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2019-01-03 17:49 UTC (permalink / raw)
  To: Ross Burton, openembedded-core

On Thu, 2018-12-20 at 15:40 +0000, Ross Burton wrote:
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
>  meta/lib/oeqa/sdk/cases/buildepoxy.py | 36
> +++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
>  create mode 100644 meta/lib/oeqa/sdk/cases/buildepoxy.py

Fails on the autobuilder sadly:

https://autobuilder.yoctoproject.org/typhoon/#/builders/85/builds/84

Cheers,

Richard



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-03 17:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-20 15:40 [PATCH 1/3] nativesdk-meson: add missing dependency on setuptools Ross Burton
2018-12-20 15:40 ` [PATCH 2/3] nativesdk-packagegroup-sdk-host: add Meson Ross Burton
2018-12-20 15:40 ` [PATCH 3/3] oeqa/sdk: add test to exercise Meson Ross Burton
2019-01-03 17:49   ` Richard Purdie
2018-12-20 16:05 ` ✗ patchtest: failure for "nativesdk-meson: add missing d..." and 2 more Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.