From 34c1d4739d6a16375e955b7aad9c0a3c12119b81 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Wed, 20 Apr 2022 16:10:35 +0200 Subject: [PATCH] rpio: Upgrade to 0.10.1 Drop the 0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch patch as it was fixed in this version[1]. This switches the source from pypi to git (github) as the new version wasn't published yet. Lastly, we use the LICENSE.txt file for LIC_FILES_CHKSUM so we don't have to deal with context lines in the README file. [1] https://github.com/metachris/RPIO/pull/41 Signed-off-by: Andrei Gherzan --- ...s.h-explicitly-for-getting-caddr_t-d.patch | 30 ------------------- .../python/{rpio_0.10.0.bb => rpio_0.10.1.bb} | 11 +++---- 2 files changed, 6 insertions(+), 35 deletions(-) delete mode 100644 recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch rename recipes-devtools/python/{rpio_0.10.0.bb => rpio_0.10.1.bb} (68%) diff --git a/recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch b/recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch deleted file mode 100644 index bed9749..0000000 --- a/recipes-devtools/python/rpio/0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch +++ /dev/null @@ -1,30 +0,0 @@ -From c86bfacc98d58244f532626954ed00d84ecfa82d Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Sat, 30 Jan 2016 17:12:37 -0800 -Subject: [PATCH] include sys/types.h explicitly for getting caddr_t definition - -Helps fixing build on musl where sys/types.h is not included indirectly -as happening on glibc - -Signed-off-by: Khem Raj ---- -Upstream-Status: Submitted - - source/c_gpio/c_gpio.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/source/c_gpio/c_gpio.c b/source/c_gpio/c_gpio.c -index 25a04ca..70df632 100644 ---- a/source/c_gpio/c_gpio.c -+++ b/source/c_gpio/c_gpio.c -@@ -29,6 +29,7 @@ - #include - #include - #include -+#include - #include - #include "c_gpio.h" - --- -2.7.0 - diff --git a/recipes-devtools/python/rpio_0.10.0.bb b/recipes-devtools/python/rpio_0.10.1.bb similarity index 68% rename from recipes-devtools/python/rpio_0.10.0.bb rename to recipes-devtools/python/rpio_0.10.1.bb index f75806e..176646d 100644 --- a/recipes-devtools/python/rpio_0.10.0.bb +++ b/recipes-devtools/python/rpio_0.10.1.bb @@ -3,12 +3,13 @@ GPIO interrups, TCP socket interrupts, command line tools and more" HOMEPAGE = "https://github.com/metachris/RPIO" SECTION = "devel/python" LICENSE = "LGPL-3.0-or-later" -LIC_FILES_CHKSUM = "file://README.rst;beginline=41;endline=53;md5=d5d95d7486a4d98c999675c23196b25a" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bb3ca60759f3202f1ae42e3519cd06bc" -PYPI_PACKAGE = "RPIO" -inherit pypi - -SRC_URI += "file://0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch" +SRC_URI = "\ + git://github.com/metachris/RPIO.git;protocol=https;branch=master \ + " +SRCREV = "be1942a69b2592ddacd9dc833d2668a19aafd8d2" +S = "${WORKDIR}/git" inherit setuptools3