vpeter

Untitled

Dec 3rd, 2020 (edited)
797
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/packages/python/devel/pgi/patches/pgi-0001-remove-type-as-it-s-not-Python-3-compatible.patch b/packages/python/devel/pgi/patches/pgi-0001-remove-type-as-it-s-not-Python-3-compatible.patch
  2. new file mode 100644
  3. index 0000000000..ead927354d
  4. --- /dev/null
  5. +++ b/packages/python/devel/pgi/patches/pgi-0001-remove-type-as-it-s-not-Python-3-compatible.patch
  6. @@ -0,0 +1,25 @@
  7. +From 40f45d7f4a49ec1e66acec5d5ff1ce10c94a99ce Mon Sep 17 00:00:00 2001
  8. +From: Portisch <hugo.portisch@yahoo.de>
  9. +Date: Wed, 25 Nov 2020 13:41:14 +0100
  10. +Subject: [PATCH] remove 'type' as it's not Python 3 compatible
  11. +
  12. +---
  13. + pgi/clib/_utils.py | 2 +-
  14. + 1 file changed, 1 insertion(+), 1 deletion(-)
  15. +
  16. +diff --git a/pgi/clib/_utils.py b/pgi/clib/_utils.py
  17. +index b45d901..bd0f416 100644
  18. +--- a/pgi/clib/_utils.py
  19. ++++ b/pgi/clib/_utils.py
  20. +@@ -31,7 +31,7 @@ class _BaseFinalizer(object):
  21. +         self.ptr = ptr
  22. +
  23. +     def delete(self, deadweakproxy):
  24. +-        type(self)._objects.remove(self)
  25. ++        self._objects.remove(self)
  26. +         self.destructor(deadweakproxy, self.ptr)
  27. +
  28. +
  29. +--
  30. +2.29.2
  31. +
  32. diff --git a/projects/Amlogic-ce/devices/Amlogic-ng/filesystem/etc/dbus-1/system.d/fix-xdbus-stoploop.conf b/projects/Amlogic-ce/devices/Amlogic-ng/filesystem/etc/dbus-1/system.d/fix-xdbus-stoploop.conf
  33. new file mode 100644
  34. index 0000000000..50783cf8ef
  35. --- /dev/null
  36. +++ b/projects/Amlogic-ce/devices/Amlogic-ng/filesystem/etc/dbus-1/system.d/fix-xdbus-stoploop.conf
  37. @@ -0,0 +1,8 @@
  38. +<!DOCTYPE busconfig PUBLIC
  39. +          "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  40. +          "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
  41. +<busconfig>
  42. +  <policy user="root">
  43. +    <allow own="com.service.coreelec.settings.xdbus.stoploop"/>
  44. +  </policy>
  45. +</busconfig>
  46. diff --git a/projects/Amlogic-ce/packages/mediacenter/CoreELEC-settings/patches/fix-xdbus-stoploop.patch b/projects/Amlogic-ce/packages/mediacenter/CoreELEC-settings/patches/fix-xdbus-stoploop.patch
  47. new file mode 100644
  48. index 0000000000..ccea61548d
  49. --- /dev/null
  50. +++ b/projects/Amlogic-ce/packages/mediacenter/CoreELEC-settings/patches/fix-xdbus-stoploop.patch
  51. @@ -0,0 +1,22 @@
  52. +--- a/src/resources/lib/modules/xdbus.py   2020-11-19 11:40:48.000000000 +0100
  53. ++++ b/src/resources/lib/modules/xdbus.py   2020-12-03 16:32:05.022311409 +0100
  54. +@@ -5,6 +5,7 @@
  55. + # Copyright (C) 2020-present Team CoreELEC (https://coreelec.org)
  56. +
  57. + import dbus
  58. ++import dbus.service
  59. + import threading
  60. + import pgi
  61. + pgi.install_as_gi()
  62. +@@ -77,6 +78,11 @@ class dbusMonitor(threading.Thread):
  63. +     def run(self):
  64. +         try:
  65. +             self.oe.dbg_log('xdbus::dbusMonitor::run', 'enter_function', self.oe.LOGDEBUG)
  66. ++
  67. ++            self.dbusSystemBus.request_name("com.service.coreelec.settings.xdbus.stoploop")
  68. ++            busName = dbus.service.BusName("com.service.coreelec.settings.xdbus.stoploop", bus=self.dbusSystemBus)
  69. ++            dbus.service.Object(busName, "/com/service/coreelec/settings/xdbus/stoploop")
  70. ++
  71. +             for strModule in sorted(self.oe.dictModules, key=lambda x: list(self.oe.dictModules[x].menu.keys())):
  72. +                 module = self.oe.dictModules[strModule]
  73. +                 if hasattr(module, 'monitor') and module.ENABLED:
  74.  
RAW Paste Data