All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] cxxtest: move to setuptools
@ 2022-01-14 11:52 Ross Burton
  2022-01-14 11:52 ` [PATCH 2/3] iotop: move to the C port of iotop Ross Burton
  2022-01-14 11:52 ` [PATCH 3/3] pyxdg: upgrade and remove distutils Ross Burton
  0 siblings, 2 replies; 6+ messages in thread
From: Ross Burton @ 2022-01-14 11:52 UTC (permalink / raw)
  To: openembedded-devel

setup.py has always supported setuptools, so change the inherit now that
distutils is deprecated.

Leave S as the top of the source tree, and set SETUPUTILS_SETUP_PATH
to find the setup.py.

Fix the hashbang in cxxtestgen, which was still pointing at python not
python3.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-oe/recipes-test/cxxtest/cxxtest_4.4.bb | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/meta-oe/recipes-test/cxxtest/cxxtest_4.4.bb b/meta-oe/recipes-test/cxxtest/cxxtest_4.4.bb
index b760690652..65b54ed548 100644
--- a/meta-oe/recipes-test/cxxtest/cxxtest_4.4.bb
+++ b/meta-oe/recipes-test/cxxtest/cxxtest_4.4.bb
@@ -2,21 +2,22 @@ DESCRIPTION = "CxxTest is a unit testing framework for C++ that is similar in sp
 HOMEPAGE = "http://cxxtest.com/"
 SECTION = "devel"
 LICENSE = "LGPL-2.0"
-LIC_FILES_CHKSUM = "file://${WORKDIR}/cxxtest-${PV}/COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02"
 
-SRC_URI = "http://downloads.sourceforge.net/project/cxxtest/cxxtest/${PV}/cxxtest-${PV}.tar.gz"
+SRC_URI = "http://downloads.sourceforge.net/project/cxxtest/cxxtest/${PV}/${BP}.tar.gz"
 SRC_URI[md5sum] = "c3cc3355e2ac64e34c215f28e44cfcec"
 SRC_URI[sha256sum] = "1c154fef91c65dbf1cd4519af7ade70a61d85a923b6e0c0b007dc7f4895cf7d8"
 
-S = "${WORKDIR}/cxxtest-${PV}/python"
+inherit setuptools3
 
-inherit distutils3
+SETUPTOOLS_SETUP_PATH = "${S}/python"
 
 do_install:append() {
     install -d ${D}${includedir}
-    cp -a ../cxxtest ${D}${includedir}
+    cp -a ${S}/cxxtest/ ${D}${includedir}
+    # Fix the interpretter as otherwise this points to the build host python
     sed '1c\
-#!/usr/bin/env python' -i ${D}${bindir}/cxxtestgen
+#!/usr/bin/env python3' -i ${D}${bindir}/cxxtestgen
 }
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1



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

* [PATCH 2/3] iotop: move to the C port of iotop
  2022-01-14 11:52 [PATCH 1/3] cxxtest: move to setuptools Ross Burton
@ 2022-01-14 11:52 ` Ross Burton
  2022-01-15  1:25   ` [oe] " Khem Raj
  2022-01-14 11:52 ` [PATCH 3/3] pyxdg: upgrade and remove distutils Ross Burton
  1 sibling, 1 reply; 6+ messages in thread
From: Ross Burton @ 2022-01-14 11:52 UTC (permalink / raw)
  To: openembedded-devel

The Python iotop implentation hasn't had a release since 2013[1], and
there is a C port which is actively maintained and will have a lower
impact on the system being monitored.

[1] https://repo.or.cz/iotop.git/tag/10c60fedf5051421f4e62b89e2e51e7cc669ce34

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-oe/recipes-extended/iotop/iotop_0.6.bb  | 29 --------------------
 meta-oe/recipes-extended/iotop/iotop_1.20.bb | 17 ++++++++++++
 2 files changed, 17 insertions(+), 29 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/iotop/iotop_0.6.bb
 create mode 100644 meta-oe/recipes-extended/iotop/iotop_1.20.bb

diff --git a/meta-oe/recipes-extended/iotop/iotop_0.6.bb b/meta-oe/recipes-extended/iotop/iotop_0.6.bb
deleted file mode 100644
index 97958dd4a2..0000000000
--- a/meta-oe/recipes-extended/iotop/iotop_0.6.bb
+++ /dev/null
@@ -1,29 +0,0 @@
-SUMMARY = "Simple top-like I/O monitor"
-DESCRIPTION = "iotop does for I/O usage what top(1) does for CPU usage. \
-    It watches I/O usage information output by the Linux kernel and displays \
-    a table of current I/O usage by processes on the system."
-HOMEPAGE = "http://guichaz.free.fr/iotop/"
-
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
-
-PV .= "+git${SRCPV}"
-
-SRCREV = "1bfb3bc70febb1ffb95146b6dcd65257228099a3"
-SRC_URI = "git://repo.or.cz/iotop.git;branch=master"
-
-S = "${WORKDIR}/git"
-
-UPSTREAM_CHECK_URI = "http://repo.or.cz/iotop.git/tags"
-UPSTREAM_CHECK_REGEX = "iotop-(?P<pver>\d+(\.\d+)+)"
-
-inherit distutils3
-
-do_install:append() {
-    rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/site.pyo || true
-    rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/site.py  || true
-}
-
-RDEPENDS:${PN} = "python3-curses \
-                  python3-codecs python3-ctypes python3-pprint \
-                  python3-shell python3-core"
diff --git a/meta-oe/recipes-extended/iotop/iotop_1.20.bb b/meta-oe/recipes-extended/iotop/iotop_1.20.bb
new file mode 100644
index 0000000000..17c567095b
--- /dev/null
+++ b/meta-oe/recipes-extended/iotop/iotop_1.20.bb
@@ -0,0 +1,17 @@
+SUMMARY = "A top utility for I/O"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"
+
+DEPENDS = "ncurses"
+
+SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
+SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d51"
+UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"
+
+inherit pkgconfig
+
+EXTRA_OEMAKE = "V=1 STRIP=true"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
-- 
2.25.1



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

* [PATCH 3/3] pyxdg: upgrade and remove distutils
  2022-01-14 11:52 [PATCH 1/3] cxxtest: move to setuptools Ross Burton
  2022-01-14 11:52 ` [PATCH 2/3] iotop: move to the C port of iotop Ross Burton
@ 2022-01-14 11:52 ` Ross Burton
  1 sibling, 0 replies; 6+ messages in thread
From: Ross Burton @ 2022-01-14 11:52 UTC (permalink / raw)
  To: openembedded-devel

Upgrade to 0.27, and switch to setuptools now that distutils is
deprecated.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-oe/recipes-gnome/pyxdg/{pyxdg_0.26.bb => pyxdg_0.27.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-gnome/pyxdg/{pyxdg_0.26.bb => pyxdg_0.27.bb} (82%)

diff --git a/meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb b/meta-oe/recipes-gnome/pyxdg/pyxdg_0.27.bb
similarity index 82%
rename from meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb
rename to meta-oe/recipes-gnome/pyxdg/pyxdg_0.27.bb
index 6fa31c58ff..35ecd7ff5d 100644
--- a/meta-oe/recipes-gnome/pyxdg/pyxdg_0.26.bb
+++ b/meta-oe/recipes-gnome/pyxdg/pyxdg_0.27.bb
@@ -4,9 +4,9 @@ SECTION = "devel/python"
 LICENSE = "LGPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=f30a9716ef3762e3467a2f62bf790f0a"
 
-SRCREV = "7db14dcf4c4305c3859a2d9fcf9f5da2db328330"
+SRCREV = "f097a66923a65e93640c48da83e6e9cfbddd86ba"
 SRC_URI = "git://anongit.freedesktop.org/xdg/pyxdg;branch=master"
 
-inherit distutils3
+inherit setuptools3
 
 S = "${WORKDIR}/git"
-- 
2.25.1



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

* Re: [oe] [PATCH 2/3] iotop: move to the C port of iotop
  2022-01-14 11:52 ` [PATCH 2/3] iotop: move to the C port of iotop Ross Burton
@ 2022-01-15  1:25   ` Khem Raj
  2022-01-15 10:33     ` Ross Burton
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2022-01-15  1:25 UTC (permalink / raw)
  To: Ross Burton; +Cc: openembeded-devel

It fails on clang/arm see
https://errors.yoctoproject.org/Errors/Details/622623/

On Fri, Jan 14, 2022 at 3:52 AM Ross Burton <ross@burtonini.com> wrote:
>
> The Python iotop implentation hasn't had a release since 2013[1], and
> there is a C port which is actively maintained and will have a lower
> impact on the system being monitored.
>
> [1] https://repo.or.cz/iotop.git/tag/10c60fedf5051421f4e62b89e2e51e7cc669ce34
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  meta-oe/recipes-extended/iotop/iotop_0.6.bb  | 29 --------------------
>  meta-oe/recipes-extended/iotop/iotop_1.20.bb | 17 ++++++++++++
>  2 files changed, 17 insertions(+), 29 deletions(-)
>  delete mode 100644 meta-oe/recipes-extended/iotop/iotop_0.6.bb
>  create mode 100644 meta-oe/recipes-extended/iotop/iotop_1.20.bb
>
> diff --git a/meta-oe/recipes-extended/iotop/iotop_0.6.bb b/meta-oe/recipes-extended/iotop/iotop_0.6.bb
> deleted file mode 100644
> index 97958dd4a2..0000000000
> --- a/meta-oe/recipes-extended/iotop/iotop_0.6.bb
> +++ /dev/null
> @@ -1,29 +0,0 @@
> -SUMMARY = "Simple top-like I/O monitor"
> -DESCRIPTION = "iotop does for I/O usage what top(1) does for CPU usage. \
> -    It watches I/O usage information output by the Linux kernel and displays \
> -    a table of current I/O usage by processes on the system."
> -HOMEPAGE = "http://guichaz.free.fr/iotop/"
> -
> -LICENSE = "GPLv2+"
> -LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
> -
> -PV .= "+git${SRCPV}"
> -
> -SRCREV = "1bfb3bc70febb1ffb95146b6dcd65257228099a3"
> -SRC_URI = "git://repo.or.cz/iotop.git;branch=master"
> -
> -S = "${WORKDIR}/git"
> -
> -UPSTREAM_CHECK_URI = "http://repo.or.cz/iotop.git/tags"
> -UPSTREAM_CHECK_REGEX = "iotop-(?P<pver>\d+(\.\d+)+)"
> -
> -inherit distutils3
> -
> -do_install:append() {
> -    rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/site.pyo || true
> -    rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/site.py  || true
> -}
> -
> -RDEPENDS:${PN} = "python3-curses \
> -                  python3-codecs python3-ctypes python3-pprint \
> -                  python3-shell python3-core"
> diff --git a/meta-oe/recipes-extended/iotop/iotop_1.20.bb b/meta-oe/recipes-extended/iotop/iotop_1.20.bb
> new file mode 100644
> index 0000000000..17c567095b
> --- /dev/null
> +++ b/meta-oe/recipes-extended/iotop/iotop_1.20.bb
> @@ -0,0 +1,17 @@
> +SUMMARY = "A top utility for I/O"
> +LICENSE = "GPLv2+"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"
> +
> +DEPENDS = "ncurses"
> +
> +SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
> +SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d51"
> +UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"
> +
> +inherit pkgconfig
> +
> +EXTRA_OEMAKE = "V=1 STRIP=true"
> +
> +do_install() {
> +    oe_runmake install DESTDIR=${D}
> +}
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#94828): https://lists.openembedded.org/g/openembedded-devel/message/94828
> Mute This Topic: https://lists.openembedded.org/mt/88418863/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: [oe] [PATCH 2/3] iotop: move to the C port of iotop
  2022-01-15  1:25   ` [oe] " Khem Raj
@ 2022-01-15 10:33     ` Ross Burton
  2022-01-15 19:02       ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Ross Burton @ 2022-01-15 10:33 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

On Sat, 15 Jan 2022 at 01:26, Khem Raj <raj.khem@gmail.com> wrote:
> It fails on clang/arm see
> https://errors.yoctoproject.org/Errors/Details/622623/

That's clang segfaulting, fun!  I don't have access to my build
machine this weekend, can you just throw in TOOLCHAIN="gcc" for now?

Ross


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

* Re: [oe] [PATCH 2/3] iotop: move to the C port of iotop
  2022-01-15 10:33     ` Ross Burton
@ 2022-01-15 19:02       ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2022-01-15 19:02 UTC (permalink / raw)
  To: Ross Burton; +Cc: openembeded-devel

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

On Sat, Jan 15, 2022 at 2:33 AM Ross Burton <ross@burtonini.com> wrote:

> On Sat, 15 Jan 2022 at 01:26, Khem Raj <raj.khem@gmail.com> wrote:
> > It fails on clang/arm see
> > https://errors.yoctoproject.org/Errors/Details/622623/
>
> That's clang segfaulting, fun!  I don't have access to my build
> machine this weekend, can you just throw in TOOLCHAIN="gcc" for now?
>

Yeah and it’s with glibc master so not a big deal I will still extract a
test case for reporting to llvm GitHub issue

>
> Ross
>

[-- Attachment #2: Type: text/html, Size: 1144 bytes --]

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

end of thread, other threads:[~2022-01-15 19:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 11:52 [PATCH 1/3] cxxtest: move to setuptools Ross Burton
2022-01-14 11:52 ` [PATCH 2/3] iotop: move to the C port of iotop Ross Burton
2022-01-15  1:25   ` [oe] " Khem Raj
2022-01-15 10:33     ` Ross Burton
2022-01-15 19:02       ` Khem Raj
2022-01-14 11:52 ` [PATCH 3/3] pyxdg: upgrade and remove distutils Ross Burton

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.