Subject: [PATCH] gnu: chessx: Disable online version check by default.

From: Michael Rohleder <[email-masked]>
Date: Sat, 1 May 2021 01:29:00 +0200

* gnu/packages/games.scm (chessx)[arguments]: Add phase to disable
the online version check by default.
---
 gnu/packages/games.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 3227b3e6fc..4b0f9d74e0 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -11885,6 +11885,12 @@ and chess engines.")
            (lambda _
              (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
              #t))
+         (add-after 'make-qt-deterministic 'disable-versioncheck
+           (lambda _
+             (substitute* "src/database/settings.cpp"
+               (("\"/General/onlineVersionCheck\", true")
+                "\"/General/onlineVersionCheck\", false"))
+             #t))
          (replace 'configure
            (lambda _
              (invoke "qmake")
-- 
2.31.1