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 <andrei.gherzan@huawei.com>
This commit is contained in:
Andrei Gherzan 2022-04-20 16:10:35 +02:00 committed by Andrei Gherzan
parent cbb15c7a34
commit 34c1d4739d
2 changed files with 6 additions and 35 deletions

View File

@ -1,30 +0,0 @@
From c86bfacc98d58244f532626954ed00d84ecfa82d Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
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 <raj.khem@gmail.com>
---
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 <stdint.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <sys/types.h>
#include <sys/mman.h>
#include "c_gpio.h"
--
2.7.0

View File

@ -3,12 +3,13 @@ GPIO interrups, TCP socket interrupts, command line tools and more"
HOMEPAGE = "https://github.com/metachris/RPIO" HOMEPAGE = "https://github.com/metachris/RPIO"
SECTION = "devel/python" SECTION = "devel/python"
LICENSE = "LGPL-3.0-or-later" 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" SRC_URI = "\
inherit pypi git://github.com/metachris/RPIO.git;protocol=https;branch=master \
"
SRC_URI += "file://0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch" SRCREV = "be1942a69b2592ddacd9dc833d2668a19aafd8d2"
S = "${WORKDIR}/git"
inherit setuptools3 inherit setuptools3