From feb1706f8ea9f8526aa92c5dad87cb5d04fa11c5 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 7 Aug 2020 21:35:41 +0200 Subject: pkgs/psi: Update to latest upstream master The latest master version no longer crashes on Jingle file transfer requests. So alongside updating to the latest Git version, I also dropped the patch disabling Jingle. Another reason for updating is simply because the client version already feels old (heck, it's been February since the last update) and I'm really craving for fresh new bugs. I rebased the patch for the default configuration against current master with no changes in configuration (only obsolete stuff removed) and fixed the move of the src/plugins directory to the project's root directory. Signed-off-by: aszlig --- pkgs/aszlig/psi/config.patch | 54 ++++++++++++------------------------ pkgs/aszlig/psi/default.nix | 11 ++++---- pkgs/aszlig/psi/disable-jingle.patch | 12 -------- 3 files changed, 22 insertions(+), 55 deletions(-) delete mode 100644 pkgs/aszlig/psi/disable-jingle.patch (limited to 'pkgs/aszlig') diff --git a/pkgs/aszlig/psi/config.patch b/pkgs/aszlig/psi/config.patch index a37276fd..b122c1b9 100644 --- a/pkgs/aszlig/psi/config.patch +++ b/pkgs/aszlig/psi/config.patch @@ -1,5 +1,5 @@ diff --git a/options/default.xml b/options/default.xml -index 63fd2667..de3332ed 100644 +index d8dddeb2..a04dc50a 100644 --- a/options/default.xml +++ b/options/default.xml @@ -19,7 +19,7 @@ @@ -20,7 +20,7 @@ index 63fd2667..de3332ed 100644 true -@@ -135,7 +135,7 @@ QWidget#bottomFrame>QWidget>QTextEdit[correction="true"] { +@@ -137,7 +137,7 @@ QWidget#bottomFrame>QWidget>QTextEdit[correction="true"] { auto @@ -29,18 +29,7 @@ index 63fd2667..de3332ed 100644 -@@ -153,8 +153,8 @@ QWidget#bottomFrame>QWidget>QTextEdit[correction="true"] { - false - 100 - -- true -- false -+ false -+ true - - - -@@ -215,7 +215,7 @@ QLineEdit#le_status_text { +@@ -217,7 +217,7 @@ QLineEdit#le_status_text { false false true @@ -49,16 +38,7 @@ index 63fd2667..de3332ed 100644 status false true -@@ -230,7 +230,7 @@ QLineEdit#le_status_text { - true - true - true -- true -+ false - true - - true -@@ -255,7 +255,7 @@ QLineEdit#le_status_text { +@@ -257,7 +257,7 @@ QLineEdit#le_status_text { false false true @@ -67,8 +47,8 @@ index 63fd2667..de3332ed 100644 true 64 -@@ -292,7 +292,7 @@ QLineEdit#le_status_text { - true +@@ -293,7 +293,7 @@ QLineEdit#le_status_text { + true
- true @@ -77,9 +57,9 @@ index 63fd2667..de3332ed 100644 true @@ -343,7 +343,7 @@ QLineEdit#le_status_text { + true - false - true + false false @@ -192,7 +172,7 @@ index 63fd2667..de3332ed 100644 true -@@ -502,7 +502,7 @@ QLineEdit#le_status_text { +@@ -503,7 +503,7 @@ QLineEdit#le_status_text { close detach @@ -201,7 +181,7 @@ index 63fd2667..de3332ed 100644 true -@@ -715,7 +715,7 @@ QLineEdit#le_status_text { +@@ -717,7 +717,7 @@ QLineEdit#le_status_text { true @@ -210,7 +190,7 @@ index 63fd2667..de3332ed 100644 false true true -@@ -738,7 +738,20 @@ QLineEdit#le_status_text { +@@ -740,7 +740,20 @@ QLineEdit#le_status_text { true false @@ -232,7 +212,7 @@ index 63fd2667..de3332ed 100644 submenu false true -@@ -778,5 +791,9 @@ QLineEdit#le_status_text { +@@ -779,5 +792,9 @@ QLineEdit#le_status_text { @@ -244,10 +224,10 @@ index 63fd2667..de3332ed 100644 + diff --git a/src/psi_profiles.cpp b/src/psi_profiles.cpp -index 894c8ac9..a6798e76 100644 +index a3d441c0..ede53edf 100644 --- a/src/psi_profiles.cpp +++ b/src/psi_profiles.cpp -@@ -75,8 +75,8 @@ void UserAccount::reset() +@@ -74,8 +74,8 @@ void UserAccount::reset() req_mutual_auth = false; legacy_ssl_probe = false; security_level = QCA::SL_None; @@ -258,7 +238,7 @@ index 894c8ac9..a6798e76 100644 pass = ""; scramSaltedHashPassword = ""; opt_pass = false; -@@ -86,7 +86,7 @@ void UserAccount::reset() +@@ -85,7 +85,7 @@ void UserAccount::reset() opt_automatic_resource = true; priority_dep_on_status = true; ignore_global_actions = false; @@ -267,12 +247,12 @@ index 894c8ac9..a6798e76 100644 priority = 55; ibbOnly = false; opt_keepAlive = true; -@@ -129,7 +129,7 @@ void UserAccount::reset() +@@ -127,7 +127,7 @@ void UserAccount::reset() << "stun.voipbuster.com" << "stun.voxgratia.org"; - stunHost = stunHosts[0]; + stunHost = ""; - keybind.clear(); - + pgpKnownKeys.clear(); + pgpEnabledChats.clear(); diff --git a/pkgs/aszlig/psi/default.nix b/pkgs/aszlig/psi/default.nix index d2e43d76..61fa44da 100644 --- a/pkgs/aszlig/psi/default.nix +++ b/pkgs/aszlig/psi/default.nix @@ -23,22 +23,21 @@ in stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "psi-im"; repo = "psi"; - rev = "f1ca4cc0d45d0c1981fd2abd5da40182bbd8c5fb"; - sha256 = "170g3dlpd8hp9g4j4y28l8y2xhgsmfay4m7dknvd9vanxd7s42ks"; + rev = "23c1e3ffa5c33ecf7a7d8064a319b49422bb9469"; + sha256 = "044npsb5xs25a4ybsk9a6advpdamzb3da19w9lj6q660p19syjar"; fetchSubmodules = true; }; plugins = fetchFromGitHub { owner = "psi-im"; repo = "plugins"; - rev = "5dc21909fc46c4780e1f4d23c56bf4be94802912"; - sha256 = "0bxlsmwisc22m8y0py1ms69fyqspyx1a1zcjh6m51c4vmzskfr7a"; + rev = "c430f74e2e0063ece73e4bcd5ce0430d7259e050"; + sha256 = "05m8980c5ssnm6wpmcd1hz6glh0p3i1g8vipnfv31rrfw5wh97m3"; }; patches = [ ./disable-xep-0232.patch ./darkstyle.patch - ./disable-jingle.patch (substituteAll { src = ./config.patch; inherit jid resource; @@ -46,7 +45,7 @@ in stdenv.mkDerivation rec { ]; preConfigure = '' - cp --no-preserve=all -rt src/plugins "$plugins"/* + cp --no-preserve=all -rt plugins "$plugins"/* ''; cmakeFlags = [ diff --git a/pkgs/aszlig/psi/disable-jingle.patch b/pkgs/aszlig/psi/disable-jingle.patch deleted file mode 100644 index d76b9451..00000000 --- a/pkgs/aszlig/psi/disable-jingle.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/iris/src/xmpp/xmpp-im/jingle.cpp b/iris/src/xmpp/xmpp-im/jingle.cpp -index 0ac149a..e445acf 100644 ---- a/iris/src/xmpp/xmpp-im/jingle.cpp -+++ b/iris/src/xmpp/xmpp-im/jingle.cpp -@@ -1681,6 +1681,7 @@ namespace XMPP { namespace Jingle { - - Session *Manager::incomingSessionInitiate(const Jid &from, const Jingle &jingle, const QDomElement &jingleEl) - { -+ return nullptr; - if (d->maxSessions > 0 && d->sessions.size() == d->maxSessions) { - d->lastError = XMPP::Stanza::Error(XMPP::Stanza::Error::Wait, XMPP::Stanza::Error::ResourceConstraint); - return nullptr; -- cgit 1.4.1