diff --git a/hosts/hetzner-arm/profiles/mpd.nix b/hosts/hetzner-arm/profiles/mpd.nix index f77ce3c..f63fa37 100644 --- a/hosts/hetzner-arm/profiles/mpd.nix +++ b/hosts/hetzner-arm/profiles/mpd.nix @@ -34,7 +34,7 @@ in { services.mpd = { enable = true; - network.listenAddress = "0.0.0.0"; + network.listenAddress = "any"; musicDirectory = "/Music"; dbFile = null; credentials = [ diff --git a/hosts/raspberry-pi5/profiles/rbp-000-add-pi-support.patch b/hosts/raspberry-pi5/profiles/rbp-000-add-pi-support.patch index 6fa9b91..9ea8c78 100644 --- a/hosts/raspberry-pi5/profiles/rbp-000-add-pi-support.patch +++ b/hosts/raspberry-pi5/profiles/rbp-000-add-pi-support.patch @@ -1,157 +1,3 @@ -From 31acfdc558652ea480c773f095ab675218af8195 Mon Sep 17 00:00:00 2001 -From: Sam Nazarko -Date: Tue, 2 Jun 2015 22:56:15 +0100 -Subject: [PATCH 01/24] Fix UPower capability detection on Vero - -Signed-off-by: Sam Nazarko ---- - xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp b/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp -index bd04197a51..7cb68a19b4 100644 ---- a/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp -+++ b/xbmc/platform/linux/powermanagement/LogindUPowerSyscall.cpp -@@ -39,8 +39,8 @@ CLogindUPowerSyscall::CLogindUPowerSyscall() - if (!m_hasUPower) - CLog::Log(LOGINFO, "LogindUPowerSyscall - UPower not found, battery information will not be available"); - -- m_canPowerdown = LogindCheckCapability("CanPowerOff"); -- m_canReboot = LogindCheckCapability("CanReboot"); -+ m_canPowerdown = true; -+ m_canReboot = true; - m_canHibernate = LogindCheckCapability("CanHibernate"); - m_canSuspend = LogindCheckCapability("CanSuspend"); - --- -2.34.1 - - -From 4ae22b3482359e9ce9a015b61001eb1e9385c19c Mon Sep 17 00:00:00 2001 -From: Sam Nazarko -Date: Thu, 21 Dec 2017 11:38:02 +0000 -Subject: [PATCH 02/24] Add OSMC Helper routines to improve Kodi integration - with OSMC - -Signed-off-by: Sam Nazarko ---- - xbmc/CMakeLists.txt | 2 ++ - xbmc/OSMCHelper.cpp | 36 ++++++++++++++++++++++++++++++++++++ - xbmc/OSMCHelper.h | 38 ++++++++++++++++++++++++++++++++++++++ - 3 files changed, 76 insertions(+) - create mode 100644 xbmc/OSMCHelper.cpp - create mode 100644 xbmc/OSMCHelper.h - -diff --git a/xbmc/CMakeLists.txt b/xbmc/CMakeLists.txt -index b7c838b3da..3ddcc4da76 100644 ---- a/xbmc/CMakeLists.txt -+++ b/xbmc/CMakeLists.txt -@@ -16,6 +16,7 @@ set(SOURCES AutoSwitch.cpp - LangInfo.cpp - MediaSource.cpp - NfoFile.cpp -+ OSMCHelper.cpp - PasswordManager.cpp - PlayListPlayer.cpp - PartyModeManager.cpp -@@ -58,6 +59,7 @@ set(HEADERS AutoSwitch.h - LockType.h - MediaSource.h - NfoFile.h -+ OSMCHelper.h - PartyModeManager.h - PasswordManager.h - PlayListPlayer.h -diff --git a/xbmc/OSMCHelper.cpp b/xbmc/OSMCHelper.cpp -new file mode 100644 -index 0000000000..2b605881b1 ---- /dev/null -+++ b/xbmc/OSMCHelper.cpp -@@ -0,0 +1,36 @@ -+/* -+ * Copyright (C) 2005-2013 Team XBMC -+ * http://xbmc.org -+ * -+ * This Program is free software; you can redistribute it and/or modify -+ * it under the terms of the GNU General Public License as published by -+ * the Free Software Foundation; either version 2, or (at your option) -+ * any later version. -+ * -+ * This Program is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ * GNU General Public License for more details. -+ * -+ * You should have received a copy of the GNU General Public License -+ * along with XBMC; see the file COPYING. If not, see -+ * . -+ * -+ */ -+// OSMCHelper.cpp: implementation of OSMC helper routines -+// -+////////////////////////////////////////////////////////////////////// -+ -+extern "C" { -+#include "OSMCHelper.h" -+ #if defined(__arm__) -+ /* Ensure that uname returns arm, or machine model will reflect kernel bitness only */ -+ int uname(struct utsname *buf) -+ { -+ int r; -+ r = syscall(SYS_uname, buf); -+ strcpy(buf->machine, "armv7"); -+ return r; -+ } -+ #endif // __arm__ -+} -diff --git a/xbmc/OSMCHelper.h b/xbmc/OSMCHelper.h -new file mode 100644 -index 0000000000..709d21afbe ---- /dev/null -+++ b/xbmc/OSMCHelper.h -@@ -0,0 +1,38 @@ -+/* -+ * Copyright (C) 2005-2013 Team XBMC -+ * http://xbmc.org -+ * -+ * This Program is free software; you can redistribute it and/or modify -+ * it under the terms of the GNU General Public License as published by -+ * the Free Software Foundation; either version 2, or (at your option) -+ * any later version. -+ * -+ * This Program is distributed in the hope that it will be useful, -+ * but WITHOUT ANY WARRANTY; without even the implied warranty of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ * GNU General Public License for more details. -+ * -+ * You should have received a copy of the GNU General Public License -+ * along with XBMC; see the file COPYING. If not, see -+ * . -+ * -+ */ -+// OSMCHelper.h: routines to improve behaviour of Kodi on OSMC -+// -+////////////////////////////////////////////////////////////////////// -+ -+#pragma once -+ -+#include -+#include -+#include -+#include -+#include -+#include -+ -+extern "C" { -+ #if defined(__arm__) -+ /* Fix up uname for 64-bit kernels with 32-bit userland */ -+ int uname(struct utsname *buf); -+ #endif // __arm__ -+} --- -2.34.1 - - From 74b81e0fe134756e283f93b2acd20fada7bdc545 Mon Sep 17 00:00:00 2001 From: Sam Nazarko Date: Sat, 6 Mar 2021 18:29:22 +0000