[Buildroot] [PATCH 09/38] package/kodi: add patch to disable online check

Bernd Kuhls bernd.kuhls at t-online.de
Thu Feb 2 07:27:27 UTC 2017


Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
 package/kodi/0098-disable-online-check.patch | 65 ++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 package/kodi/0098-disable-online-check.patch

diff --git a/package/kodi/0098-disable-online-check.patch b/package/kodi/0098-disable-online-check.patch
new file mode 100644
index 000000000..ef8bd4990
--- /dev/null
+++ b/package/kodi/0098-disable-online-check.patch
@@ -0,0 +1,65 @@
+Ported from LibreELEC
+https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/mediacenter/kodi/patches/kodi-100.03-disable-online-check.patch
+
+
+From 468f917d3c1ee6f84b1a075d327d7c7626f1e223 Mon Sep 17 00:00:00 2001
+From: Stefan Saraev <stefan at saraev.ca>
+Date: Sat, 18 Apr 2015 15:03:31 +0300
+Subject: [PATCH 03/13] disable online check
+
+---
+ xbmc/GUIInfoManager.cpp              | 1 -
+ xbmc/utils/SystemInfo.cpp            | 5 +----
+ xbmc/windows/GUIWindowSystemInfo.cpp | 1 -
+ 3 files changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/xbmc/GUIInfoManager.cpp b/xbmc/GUIInfoManager.cpp
+index cb09e75..a218e1d 100644
+--- a/xbmc/GUIInfoManager.cpp
++++ b/xbmc/GUIInfoManager.cpp
+@@ -278,7 +278,6 @@ const infomap system_labels[] =  {{ "hasnetwork",       SYSTEM_ETHERNET_LINK_ACT
+                                   { "currentwindow",    SYSTEM_CURRENT_WINDOW },
+                                   { "currentcontrol",   SYSTEM_CURRENT_CONTROL },
+                                   { "dvdlabel",         SYSTEM_DVD_LABEL },
+-                                  { "internetstate",    SYSTEM_INTERNET_STATE },
+                                   { "osversioninfo",    SYSTEM_OS_VERSION_INFO },
+                                   { "kernelversion",    SYSTEM_OS_VERSION_INFO }, // old, not correct name
+                                   { "uptime",           SYSTEM_UPTIME },
+diff --git a/xbmc/utils/SystemInfo.cpp b/xbmc/utils/SystemInfo.cpp
+index f423cfe..d8483d0 100644
+--- a/xbmc/utils/SystemInfo.cpp
++++ b/xbmc/utils/SystemInfo.cpp
+@@ -247,7 +247,6 @@ bool CSysInfoJob::DoWork()
+ {
+   m_info.systemUptime      = GetSystemUpTime(false);
+   m_info.systemTotalUptime = GetSystemUpTime(true);
+-  m_info.internetState     = GetInternetState();
+   m_info.videoEncoder      = GetVideoEncoder();
+   m_info.cpuFrequency      = GetCPUFreqInfo();
+   m_info.osVersionInfo     = CSysInfo::GetOsPrettyNameWithVersion() + " (kernel: " + CSysInfo::GetKernelName() + " " + CSysInfo::GetKernelVersionFull() + ")";
+@@ -1023,9 +1022,7 @@ int CSysInfo::GetXbmcBitness(void)
+ 
+ bool CSysInfo::HasInternet()
+ {
+-  if (m_info.internetState != CSysData::UNKNOWN)
+-    return m_info.internetState == CSysData::CONNECTED;
+-  return (m_info.internetState = CSysInfoJob::GetInternetState()) == CSysData::CONNECTED;
++  return m_info.internetState == CSysData::UNKNOWN;
+ }
+ 
+ std::string CSysInfo::GetHddSpaceInfo(int drive, bool shortText)
+diff --git a/xbmc/windows/GUIWindowSystemInfo.cpp b/xbmc/windows/GUIWindowSystemInfo.cpp
+index 6ff2391..ee73c88 100644
+--- a/xbmc/windows/GUIWindowSystemInfo.cpp
++++ b/xbmc/windows/GUIWindowSystemInfo.cpp
+@@ -125,7 +125,6 @@ void CGUIWindowSystemInfo::FrameMove()
+     SetControlLabel(i++, "%s: %s", 13160, NETWORK_GATEWAY_ADDRESS);
+     SetControlLabel(i++, "%s: %s", 13161, NETWORK_DNS1_ADDRESS);
+     SetControlLabel(i++, "%s: %s", 20307, NETWORK_DNS2_ADDRESS);
+-    SetControlLabel(i++, "%s %s", 13295, SYSTEM_INTERNET_STATE);
+   }
+ 
+   else if (m_section == CONTROL_BT_VIDEO)
+-- 
+2.5.0
+
-- 
2.11.0



More information about the buildroot mailing list