diff --git a/server/pypi/packages/rpi-gpio/meta.yaml b/server/pypi/packages/rpi-gpio/meta.yaml deleted file mode 100644 index b72e06c448..0000000000 --- a/server/pypi/packages/rpi-gpio/meta.yaml +++ /dev/null @@ -1,3 +0,0 @@ -package: - name: RPi.GPIO - version: "0.7.0" diff --git a/server/pypi/packages/rpi-gpio/patches/chaquopy.patch b/server/pypi/packages/rpi-gpio/patches/chaquopy.patch deleted file mode 100644 index c9e8526856..0000000000 --- a/server/pypi/packages/rpi-gpio/patches/chaquopy.patch +++ /dev/null @@ -1,239 +0,0 @@ ---- src-original/source/py_gpio.c 2019-07-21 12:41:22.000000000 +0000 -+++ src/source/py_gpio.c 2020-11-27 14:45:34.330456094 +0000 -@@ -70,6 +70,22 @@ - } - } - -+ -+// Chaquopy: moved nested function to top level to support Clang. -+static void cleanup_one(unsigned gpio, int *found) -+{ -+ // clean up any /sys/class exports -+ event_cleanup(gpio); -+ -+ // set everything back to input -+ if (gpio_direction[gpio] != -1) { -+ setup_gpio(gpio, INPUT, PUD_OFF); -+ gpio_direction[gpio] = -1; -+ *found = 1; -+ } -+} -+ -+ - // python function cleanup(channel=None) - static PyObject *py_cleanup(PyObject *self, PyObject *args, PyObject *kwargs) - { -@@ -83,19 +99,6 @@ - PyObject *tempobj; - static char *kwlist[] = {"channel", NULL}; - -- void cleanup_one(void) -- { -- // clean up any /sys/class exports -- event_cleanup(gpio); -- -- // set everything back to input -- if (gpio_direction[gpio] != -1) { -- setup_gpio(gpio, INPUT, PUD_OFF); -- gpio_direction[gpio] = -1; -- found = 1; -- } -- } -- - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O", kwlist, &chanlist)) - return NULL; - -@@ -140,7 +143,7 @@ - } else if (channel != -666) { // channel was an int indicating single channel - if (get_gpio_number(channel, &gpio)) - return NULL; -- cleanup_one(); -+ cleanup_one(gpio, &found); - } else { // channel was a list/tuple - for (i=0; i