From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 13 07:45:44 2018 Received: (at submit) by debbugs.gnu.org; 13 Sep 2018 11:45:44 +0000 Received: from localhost ([127.0.0.1]:38786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0Q48-0000d2-Ce for submit@debbugs.gnu.org; Thu, 13 Sep 2018 07:45:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0Q46-0000cq-6B for submit@debbugs.gnu.org; Thu, 13 Sep 2018 07:45:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0Q40-0005b5-6a for submit@debbugs.gnu.org; Thu, 13 Sep 2018 07:45:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g0Q40-0005av-2h for submit@debbugs.gnu.org; Thu, 13 Sep 2018 07:45:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Q3z-000551-0H for guix-patches@gnu.org; Thu, 13 Sep 2018 07:45:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0Q3v-0005We-SG for guix-patches@gnu.org; Thu, 13 Sep 2018 07:45:34 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Q3v-0005WQ-OO for guix-patches@gnu.org; Thu, 13 Sep 2018 07:45:31 -0400 Received: from [195.39.106.169] (port=43104 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g0Q3v-0006Vz-7G; Thu, 13 Sep 2018 07:45:31 -0400 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= To: guix-patches@gnu.org Subject: [PATCH] gnu: Add telegram-purple. Date: Thu, 13 Sep 2018 13:45:24 +0200 Message-Id: <20180913114524.9280-1-sleep_walker@gnu.org> X-Mailer: git-send-email 2.18.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * gnu/packages/messaging.scm (telegram-purple): New variable. --- gnu/packages/messaging.scm | 70 +++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 42a0847b7..90c1b7b47 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -96,7 +96,8 @@ #:use-module (gnu packages less) #:use-module (gnu packages readline) #:use-module (gnu packages photo) - #:use-module (gnu packages texinfo)) + #:use-module (gnu packages texinfo) + #:use-module (gnu packages version-control)) (define-public libotr (package @@ -1719,4 +1720,71 @@ QMatrixClient project.") (license (list license:gpl3+ ; all source code license:lgpl3+)))) ; icons/breeze +(define-public telegram-purple + (package + (name "telegram-purple") + (version "1.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/majn/telegram-purple") + (commit (string-append "v" version)) + (recursive? #t))) + (sha256 + (base32 + "0p93jpjpx7hszwffzgixw04zkrpsiyzz4za3gfr4j07krc4771fp")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("git" ,git) + ("which" ,which))) + (inputs + `(("pidgin" ,pidgin) + ("libgcrypt" ,libgcrypt) + ("libwebp" ,libwebp) + ("glib" ,glib) + ("gettext" ,gnu-gettext) + ("gtk+" ,gtk+-2) + ("zlib" ,zlib))) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'prepare-commit.h + (lambda _ + (with-output-to-file "./commit.h" + (lambda () + (display + (string-append "//generated by guix, use version instead of " + "commit\n" + "#ifndef GIT_COMMIT\n" + "# define GIT_COMMIT \"v" + ,version "\"\n" + "#endif\n")))))) + (replace 'configure + ;; configure does not work followed by both "SHELL=..." and + ;; "CONFIG_SHELL=..."; set environment variables instead + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bash (which "bash")) + (flags `(,(string-append "--prefix=" out) + ,@configure-flags))) + (setenv "SHELL" bash) + (setenv "CONFIG_SHELL" bash) + (apply invoke "./configure" flags)))) + (replace 'install + ;; install is trying to use pidgin's lib directory instead of + ;; its own + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (let* ((tgt (string-append (assoc-ref outputs "out") + "/lib/purple-2/"))) + (mkdir-p tgt) + (install-file "bin/telegram-purple.so" + tgt))))))) + ;; gettext + (home-page "https://github.com/majn/telegram-purple") + (synopsis "Telegram support for pidgin") + (description "Telegram protocol support for pidgin.") + (license license:gpl2+)))) + ;;; messaging.scm ends here -- 2.18.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 13 07:50:13 2018 Received: (at 32727) by debbugs.gnu.org; 13 Sep 2018 11:50:13 +0000 Received: from localhost ([127.0.0.1]:38792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0Q8T-0000kf-0f for submit@debbugs.gnu.org; Thu, 13 Sep 2018 07:50:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0Q8Q-0000kO-Rj for 32727@debbugs.gnu.org; Thu, 13 Sep 2018 07:50:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0Q8I-0002C2-G9 for 32727@debbugs.gnu.org; Thu, 13 Sep 2018 07:50:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Q8I-0002Bt-BA for 32727@debbugs.gnu.org; Thu, 13 Sep 2018 07:50:02 -0400 Received: from [195.39.106.169] (port=43192 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g0Q8H-0006om-TP; Thu, 13 Sep 2018 07:50:02 -0400 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= To: 32727@debbugs.gnu.org Subject: [PATCH] gnu: Add telegram-purple. Date: Thu, 13 Sep 2018 13:49:58 +0200 Message-Id: <20180913114958.14496-1-sleep_walker@gnu.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180913114524.9280-1-sleep_walker@gnu.org> References: <20180913114524.9280-1-sleep_walker@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32727 Cc: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * gnu/packages/messaging.scm (telegram-purple): New variable. --- gnu/packages/messaging.scm | 70 +++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 42a0847b7..22865ead5 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -96,7 +96,8 @@ #:use-module (gnu packages less) #:use-module (gnu packages readline) #:use-module (gnu packages photo) - #:use-module (gnu packages texinfo)) + #:use-module (gnu packages texinfo) + #:use-module (gnu packages version-control)) (define-public libotr (package @@ -1719,4 +1720,71 @@ QMatrixClient project.") (license (list license:gpl3+ ; all source code license:lgpl3+)))) ; icons/breeze +(define-public telegram-purple + (package + (name "telegram-purple") + (version "1.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/majn/telegram-purple") + (commit (string-append "v" version)) + (recursive? #t))) + (sha256 + (base32 + "0p93jpjpx7hszwffzgixw04zkrpsiyzz4za3gfr4j07krc4771fp")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("git" ,git) + ("which" ,which))) + (inputs + `(("pidgin" ,pidgin) + ("libgcrypt" ,libgcrypt) + ("libwebp" ,libwebp) + ("glib" ,glib) + ("gettext" ,gnu-gettext) + ("gtk+" ,gtk+-2) + ("zlib" ,zlib))) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'prepare-commit.h + (lambda _ + (with-output-to-file "./commit.h" + (lambda () + (display + (string-append "//generated by guix, use version instead of " + "commit\n" + "#ifndef GIT_COMMIT\n" + "# define GIT_COMMIT \"v" + ,version "\"\n" + "#endif\n")))))) + (replace 'configure + ;; configure does not work followed by both "SHELL=..." and + ;; "CONFIG_SHELL=..."; set environment variables instead + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bash (which "bash")) + (flags `(,(string-append "--prefix=" out) + ,@configure-flags))) + (setenv "SHELL" bash) + (setenv "CONFIG_SHELL" bash) + (apply invoke "./configure" flags)))) + (replace 'install + ;; install is trying to use pidgin's lib directory instead of + ;; its own + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (let* ((tgt (string-append (assoc-ref outputs "out") + "/lib/purple-2/"))) + (mkdir-p tgt) + (install-file "bin/telegram-purple.so" + tgt))))))) + ;; gettext + (home-page "https://github.com/majn/telegram-purple") + (synopsis "Telegram support for pidgin") + (description "Telegram protocol support for pidgin.") + (license license:gpl2+))) + ;;; messaging.scm ends here -- 2.18.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 13 08:21:13 2018 Received: (at 32727) by debbugs.gnu.org; 13 Sep 2018 12:21:14 +0000 Received: from localhost ([127.0.0.1]:38809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0QcT-0001b9-KX for submit@debbugs.gnu.org; Thu, 13 Sep 2018 08:21:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0QcP-0001an-MD for 32727@debbugs.gnu.org; Thu, 13 Sep 2018 08:21:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0QcG-0001Tj-HT for 32727@debbugs.gnu.org; Thu, 13 Sep 2018 08:21:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0QcG-0001Tb-DS for 32727@debbugs.gnu.org; Thu, 13 Sep 2018 08:21:00 -0400 Received: from [195.39.106.169] (port=44774 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g0QcG-0000RC-1U; Thu, 13 Sep 2018 08:21:00 -0400 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= To: 32727@debbugs.gnu.org Subject: [PATCH] gnu: Add telegram-purple. Date: Thu, 13 Sep 2018 14:20:56 +0200 Message-Id: <20180913122056.21012-1-sleep_walker@gnu.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180913114958.14496-1-sleep_walker@gnu.org> References: <20180913114958.14496-1-sleep_walker@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32727 Cc: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * gnu/packages/messaging.scm (telegram-purple): New variable. --- gnu/packages/messaging.scm | 66 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 42a0847b7..e1df38a2d 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -1719,4 +1719,70 @@ QMatrixClient project.") (license (list license:gpl3+ ; all source code license:lgpl3+)))) ; icons/breeze +(define-public telegram-purple + (package + (name "telegram-purple") + (version "1.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/majn/telegram-purple") + (commit (string-append "v" version)) + (recursive? #t))) + (sha256 + (base32 + "0p93jpjpx7hszwffzgixw04zkrpsiyzz4za3gfr4j07krc4771fp")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("which" ,which))) + (inputs + `(("pidgin" ,pidgin) + ("libgcrypt" ,libgcrypt) + ("libwebp" ,libwebp) + ("glib" ,glib) + ("gettext" ,gnu-gettext) + ("gtk+" ,gtk+-2) + ("zlib" ,zlib))) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'prepare-commit.h + (lambda _ + (with-output-to-file "./commit.h" + (lambda () + (display + (string-append "//generated by guix, use version instead of " + "commit\n" + "#ifndef GIT_COMMIT\n" + "# define GIT_COMMIT \"v" + ,version "\"\n" + "#endif\n")))))) + (replace 'configure + ;; configure does not work followed by both "SHELL=..." and + ;; "CONFIG_SHELL=..."; set environment variables instead + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bash (which "bash")) + (flags `(,(string-append "--prefix=" out) + ,@configure-flags))) + (setenv "SHELL" bash) + (setenv "CONFIG_SHELL" bash) + (apply invoke "./configure" flags)))) + (replace 'install + ;; install is trying to use pidgin's lib directory instead of + ;; its own + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (let* ((tgt (string-append (assoc-ref outputs "out") + "/lib/purple-2/"))) + (mkdir-p tgt) + (install-file "bin/telegram-purple.so" + tgt))))))) + ;; gettext + (home-page "https://github.com/majn/telegram-purple") + (synopsis "Telegram support for pidgin") + (description "Telegram protocol support for pidgin.") + (license license:gpl2+))) + ;;; messaging.scm ends here -- 2.18.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 13 12:39:32 2018 Received: (at 32727) by debbugs.gnu.org; 13 Sep 2018 16:39:32 +0000 Received: from localhost ([127.0.0.1]:39439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0UeS-00029j-LV for submit@debbugs.gnu.org; Thu, 13 Sep 2018 12:39:32 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0UeS-00029d-04 for 32727@debbugs.gnu.org; Thu, 13 Sep 2018 12:39:32 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C6E9E21F17; Thu, 13 Sep 2018 12:39:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 13 Sep 2018 12:39:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=u/OF33ht3bRndjEo7a1m3roI7XknSjdKvnOjXb1EXhs=; b=Z+DwH o1niHl5crhDOOcvQOVrbHwZxcn18gMtTZqAnrei2tzmO1L7+ei0wwyiJBUS5g1nk +UU4TAUzvQH2AZ+6Rz5HxAI+v7dciUj8ryJUk0bm7v46kxuYsQ9o+LJfJ+CeR622 P4HqUWlYvLcS7M+yfvPQpdNexrvuJ8btYoX2a4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=u/OF33ht3bRndjEo7a1m3roI7XknS jdKvnOjXb1EXhs=; b=QQJkbdQxs5UY/+7jyjlQLwfwp3i81RYkA9V+WWBvopoEV vTe435TfuXH/2prtqJO0U3Wivarck1aPxDm2XCrDu8uRKJcFwKye3i1Tni94N6F4 LkKbD9O0GVjDmyx9cHBxEPgMao4Hq6u1tYDWnfeaCsmjBF9s5b86GzfW166Nfonb YleDZpiu0/FfXFwlkyT4YST/NSrVl+N+2M4CZjVm0Ek89PAgqJWOD2SgnMVbCSiX WffMHWpjrWn2BiJJcsf3Zo5/Jd3Ymh8lHoO5UBcCNWir4T1s0A2XqMraIa0pbK34 i+3z4lVnCjlIAe5uI9JjfTwSMXRENKL2OP8Jf/6GQ== X-ME-Proxy: X-ME-Sender: Received: from localhost (c-76-124-202-137.hsd1.pa.comcast.net [76.124.202.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A934E4588; Thu, 13 Sep 2018 12:39:31 -0400 (EDT) Date: Thu, 13 Sep 2018 12:39:30 -0400 From: Leo Famulari To: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= Subject: Re: [bug#32727] [PATCH] gnu: Add telegram-purple. Message-ID: <20180913163930.GB11458@jasmine.lan> References: <20180913114524.9280-1-sleep_walker@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline In-Reply-To: <20180913114524.9280-1-sleep_walker@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32727 Cc: 32727@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 13, 2018 at 01:45:24PM +0200, Tom=C3=A1=C5=A1 =C4=8Cech wrote: > * gnu/packages/messaging.scm (telegram-purple): New variable. Thanks! Can you let us know which version of the patch (I see 3) you're proposing? --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAluaksEACgkQJkb6MLrK fwi4qQ//U75M4UvcNlzbRLIL1Cqehu2bb2tCY3p8LMGiHfWBawU31H+JBdrNfky8 OJHvQ+nZoDQNLp6x56lhWfi/dIhnMH55mQUl6PV8lW+mOfitpCPhckETx8sLMas+ +L3WAOjJ2bomwcvnAtMNXiYKKNNcvhCsOrLiMg9mLfU7KkWsPq1gJ610g4SPpFLy WCzm/KbyNcgIqyy3YBXVJiHkpT/3HLJvqUj8ZKDZ2jJR60QVGCaiLws3lr8mUnhf boAfmUIubYwW2Xiqp0Loh7hwiUdfN82eo/XTr2R6qH44f87C7AcNMz6VQhIQU1rR NCWYEHwlRrfku8sh4rKLlVSFcRnbS0IQ/cmBYz7PpPaHr3W7ay4A5oYVYXhKXAZ4 v9FlC6JNKdieGcGWlNo+T0jeHyq8jYmJohqRwJi3HNAjPFB9rSVG9iW0/tCQt777 Qw2JUid7DDNwsuZ1led6wil6J4gsOI8/crkm3wznozCicUS07pz3ly/bB+y0fG5I kN7IR8FSC7ttnsEjsElUIkPgY8qpbzeyLBP77UquCgupLOkLEwVdsrG5qKb3PzuJ fh5LVAwbA/98kwB/zur3Y+oHfUj5jmzZN19IMpsuXNyGzGmRDQLxEw5eoXUvi3g8 Sh9gVM2SgZvMuX9vgzI5tvSM0IRGhZn3Q08X6c9Ux08yujVLRQ8= =shfY -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 15 20:58:22 2018 Received: (at 32727) by debbugs.gnu.org; 16 Sep 2018 00:58:22 +0000 Received: from localhost ([127.0.0.1]:41838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1LOI-0004vn-4v for submit@debbugs.gnu.org; Sat, 15 Sep 2018 20:58:22 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:48491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g1LOE-0004ve-A8 for 32727@debbugs.gnu.org; Sat, 15 Sep 2018 20:58:20 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CFA8C21ADF; Sat, 15 Sep 2018 20:58:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 15 Sep 2018 20:58:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=M71Y70SJG/a1Y8YtOc9IO6s4PUIy4r+0EPxdtIyF4OU=; b=BKcem G0TmvYwkpYhpd16stPfzGl9EalcHGiXSjHsQ3p9bnRY9nbnXgF1HsV56xIdo2XE+ WfCFjl/hy81eJqvok3uSDCFZCMtQ+RIziBbro4S31XopGb2L7Q2e968ebiZ5I7F4 BBy6licyzhxzek7Ful04DfDPOyU/mYGU6OlQmw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=M71Y70SJG/a1Y8YtOc9IO6s4PUIy4 r+0EPxdtIyF4OU=; b=E9BT4oB9eSbDbNulCUQduo+XhJBviDd+Cgf2mHTbTCa7n lrFe88sArTXEt0XP/OGpZkNEoQrzuBG+ROiZF/FFw+vM9yxCCNVXjYUkTi+lwiL5 X+TL02q/B08P1Rev0HqHlzJ+sKmP2JMrfQ4NqR16KmAxQsvn9LAk4NsMiNSV0v9h cXLmxEboR/uXpyL6Xp48IDV2s7zh3aOPrjWCKkmgcgVwpeA3j1wOYs7GxxGI20g9 DEZCb/nAcvJFx/WzT1Cl7AjDREkIrof//dfqAxdgnd5Z95gQ8ahxhvNCHpy2qloa 4u+EGe15kFgV7nZ8wXOjpVqq8PoBasZSMCONVqBug== X-ME-Proxy: X-ME-Sender: Received: from localhost (unknown [172.58.200.132]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CCEB102D3; Sat, 15 Sep 2018 20:58:17 -0400 (EDT) Date: Sat, 15 Sep 2018 20:58:15 -0400 From: Leo Famulari To: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= Subject: Re: [bug#32727] [PATCH] gnu: Add telegram-purple. Message-ID: <20180916005815.GA4866@jasmine.lan> References: <20180913114958.14496-1-sleep_walker@gnu.org> <20180913122056.21012-1-sleep_walker@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20180913122056.21012-1-sleep_walker@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32727 Cc: 32727@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 13, 2018 at 02:20:56PM +0200, Tom=C3=A1=C5=A1 =C4=8Cech wrote: > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/majn/telegram-purple") > + (commit (string-append "v" version)) > + (recursive? #t))) This recursive Git clone brings brings two libraries with it, 'tgl' and 'tl-parser': https://github.com/majn/tgl/ https://github.com/vysheng/tl-parser Is it possible to include these as their own separate Guix packages? Would anything else potentially use them? In general we try to avoid bundling things, but sometimes the effort is not worth it. > + `(#:tests? #f If there are no tests, please add a comment like "No test suite". Or else leave a comment explaining why we skip the tests. > + (add-after 'unpack 'prepare-commit.h > + (lambda _ > + (with-output-to-file "./commit.h" > + (lambda () > + (display > + (string-append "//generated by guix, use version inste= ad of " > + "commit\n" > + "#ifndef GIT_COMMIT\n" > + "# define GIT_COMMIT \"v" > + ,version "\"\n" > + "#endif\n")))))) Can you add a brief comment explaining this? > + (description "Telegram protocol support for pidgin.") To make it a complete sentence, how about ""Telegram-purple is a Libpurple protocol plugin that adds support for the Telegram messenger."? --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAludqqQACgkQJkb6MLrK fwjXlQ//YRgV3afmvCCuf0Pt+6ls6HI1KIY8eupAHxOH5Nz7DQHWhS9YcFz2md+q yRlbvSZp8lKdPESqWvAIAdTUTS7b9xuIT+ab9gZt+cUtt+iIfpKrQ+W4QR1sImV/ 3463a4xknKW4+AVyVE0ibixTZXAH6Cr8/wewPrD9SRYyhpZfy1HMvPqMKN8F1XRN nJrmF557V/gr6qTZtU7XjXxM2NtUoJ1RD8bd3Zl+F0M4SHzxoIsnsB8UQ3mpzUTB nXYPTPeMtB1LS1USRmDXm4ztvp61aNL7zBLTyxqV1bUUCymwIr2jbY6fRgK/Z9A0 OumjVUVrudi++x3bZdZ6tM8RdLucAmMbf6bpX7MgjADS7cr212lhgxJSSAWglh3y e5xLqnNW0UYaI/kmR0Y1bfk186wvGANx7mQVlsJnDXNXUnoFPSuWlu/76FScdc9W LbOTLsWZi/6n7vScXQ5fGlwgtXsj9cdCAmwyzB92JiXV71pvD2USikQVUIUW23Hu SqBtmgcxEaDg2UgF/74v/ecNiQiQGZxJ04MmL9EsayHd/AuMq4R7Etb+MKZ/sJE0 CAyNdwywtqu3whNQEaVf7dGsKzgLwc1mgjtX7cXpQ5bG3nRyhTzp/dnXDe+t6dud P8FXAW/y6uG2U87/uLB/q9MUr5PMIzHubb7Wp3Z2F+NwYcUT61M= =7m4h -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 02 05:49:07 2018 Received: (at 32727) by debbugs.gnu.org; 2 Oct 2018 09:49:07 +0000 Received: from localhost ([127.0.0.1]:33790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7HIg-0002ny-RJ for submit@debbugs.gnu.org; Tue, 02 Oct 2018 05:49:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g7HId-0002nI-DV for 32727@debbugs.gnu.org; Tue, 02 Oct 2018 05:49:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7HIT-0003KC-QP for 32727@debbugs.gnu.org; Tue, 02 Oct 2018 05:48:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7HIT-0003Jd-HV; Tue, 02 Oct 2018 05:48:53 -0400 Received: from [193.50.110.166] (port=57848 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g7HIT-0004FV-1R; Tue, 02 Oct 2018 05:48:53 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Leo Famulari Subject: Re: [bug#32727] [PATCH] gnu: Add telegram-purple. References: <20180913114958.14496-1-sleep_walker@gnu.org> <20180913122056.21012-1-sleep_walker@gnu.org> <20180916005815.GA4866@jasmine.lan> Date: Tue, 02 Oct 2018 11:48:51 +0200 In-Reply-To: <20180916005815.GA4866@jasmine.lan> (Leo Famulari's message of "Sat, 15 Sep 2018 20:58:15 -0400") Message-ID: <87wor0r858.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32727 Cc: 32727@debbugs.gnu.org, =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello! Tom=C3=A1=C5=A1, did you have a chance to look into this? Thanks, Ludo=E2=80=99. Leo Famulari skribis: > On Thu, Sep 13, 2018 at 02:20:56PM +0200, Tom=C3=A1=C5=A1 =C4=8Cech wrote: >> + (source (origin >> + (method git-fetch) >> + (uri (git-reference >> + (url "https://github.com/majn/telegram-purple") >> + (commit (string-append "v" version)) >> + (recursive? #t))) > > This recursive Git clone brings brings two libraries with it, 'tgl' and > 'tl-parser': > > https://github.com/majn/tgl/ > https://github.com/vysheng/tl-parser > > Is it possible to include these as their own separate Guix packages? > Would anything else potentially use them? > > In general we try to avoid bundling things, but sometimes the effort is > not worth it. > >> + `(#:tests? #f > > If there are no tests, please add a comment like "No test suite". Or > else leave a comment explaining why we skip the tests. > >> + (add-after 'unpack 'prepare-commit.h >> + (lambda _ >> + (with-output-to-file "./commit.h" >> + (lambda () >> + (display >> + (string-append "//generated by guix, use version inst= ead of " >> + "commit\n" >> + "#ifndef GIT_COMMIT\n" >> + "# define GIT_COMMIT \"v" >> + ,version "\"\n" >> + "#endif\n")))))) > > Can you add a brief comment explaining this? > >> + (description "Telegram protocol support for pidgin.") > > To make it a complete sentence, how about ""Telegram-purple is a Libpurple > protocol plugin that adds support for the Telegram messenger."? From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 21 12:18:27 2018 Received: (at 32727) by debbugs.gnu.org; 21 Oct 2018 16:18:27 +0000 Received: from localhost ([127.0.0.1]:34524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEGQt-0008LL-DU for submit@debbugs.gnu.org; Sun, 21 Oct 2018 12:18:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEGQr-0008L9-FH for 32727@debbugs.gnu.org; Sun, 21 Oct 2018 12:18:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEGQj-0005hv-Ob for 32727@debbugs.gnu.org; Sun, 21 Oct 2018 12:18:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEGQj-0005hp-KP for 32727@debbugs.gnu.org; Sun, 21 Oct 2018 12:18:17 -0400 Received: from [2a00:c500:22e:1d3:593a:e2b1:6d07:eb] (port=58974 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gEGQj-0006qB-4A; Sun, 21 Oct 2018 12:18:17 -0400 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= To: 32727@debbugs.gnu.org Subject: [PATCH] gnu: Add telegram-purple. Date: Sun, 21 Oct 2018 18:18:13 +0200 Message-Id: <20181021161813.3141-1-sleep_walker@gnu.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20180916005815.GA4866@jasmine.lan> References: <20180916005815.GA4866@jasmine.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32727 Cc: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * gnu/packages/messaging.scm (telegram-purple): New variable. --- gnu/packages/messaging.scm | 73 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index d50732dfc..b3ee19953 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -1720,4 +1720,77 @@ QMatrixClient project.") (license (list license:gpl3+ ; all source code license:lgpl3+)))) ; icons/breeze +(define-public telegram-purple + (package + (name "telegram-purple") + (version "1.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/majn/telegram-purple") + (commit (string-append "v" version)) + (recursive? #t))) + (sha256 + (base32 + "0p93jpjpx7hszwffzgixw04zkrpsiyzz4za3gfr4j07krc4771fp")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("which" ,which))) + (inputs + `(("pidgin" ,pidgin) + ("libgcrypt" ,libgcrypt) + ("libwebp" ,libwebp) + ("glib" ,glib) + ("gettext" ,gnu-gettext) + ("gtk+" ,gtk+-2) + ("zlib" ,zlib))) + (arguments + `(;; disable tests for now - tests are failing on pidgin path + ;; verification but it seems to be harmless + #:tests? #f + #:phases + (modify-phases %standard-phases + ;; We're using release tag for repository checkout - let's prepare + ;; header defining GIT_COMMIT manually instead of running git to + ;; identify version which is being compiled. Git repository + ;; is removed anyway and only source code is kept. + (add-after 'unpack 'prepare-commit.h + (lambda _ + (with-output-to-file "./commit.h" + (lambda () + (display + (string-append "//generated by guix, use version instead of " + "commit\n" + "#ifndef GIT_COMMIT\n" + "# define GIT_COMMIT \"v" + ,version "\"\n" + "#endif\n")))))) + (replace 'configure + ;; configure does not work followed by both "SHELL=..." and + ;; "CONFIG_SHELL=..."; set environment variables instead + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bash (which "bash")) + (flags `(,(string-append "--prefix=" out) + ,@configure-flags))) + (setenv "SHELL" bash) + (setenv "CONFIG_SHELL" bash) + (apply invoke "./configure" flags)))) + (replace 'install + ;; install is trying to use pidgin's lib directory instead of + ;; its own + (lambda* (#:key outputs configure-flags #:allow-other-keys) + (let* ((tgt (string-append (assoc-ref outputs "out") + "/lib/purple-2/"))) + (mkdir-p tgt) + (install-file "bin/telegram-purple.so" + tgt))))))) + ;; gettext + (home-page "https://github.com/majn/telegram-purple") + (synopsis "Telegram support for pidgin") + (description "Telegram-purple is a Libpurple protocol plugin that adds +support for the Telegram messenger.") + (license license:gpl2+))) + ;;; messaging.scm ends here -- 2.19.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 27 10:35:16 2018 Received: (at 32727-done) by debbugs.gnu.org; 27 Oct 2018 14:35:16 +0000 Received: from localhost ([127.0.0.1]:45565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGPgK-0002Sy-0r for submit@debbugs.gnu.org; Sat, 27 Oct 2018 10:35:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGPgJ-0002Sn-87 for 32727-done@debbugs.gnu.org; Sat, 27 Oct 2018 10:35:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGPgB-0003t1-F7 for 32727-done@debbugs.gnu.org; Sat, 27 Oct 2018 10:35:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGPgB-0003sU-3z for 32727-done@debbugs.gnu.org; Sat, 27 Oct 2018 10:35:07 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58906 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gGPg8-0006Lr-Dt; Sat, 27 Oct 2018 10:35:05 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= Subject: Re: [bug#32727] [PATCH] gnu: Add telegram-purple. References: <20180916005815.GA4866@jasmine.lan> <20181021161813.3141-1-sleep_walker@gnu.org> Date: Sat, 27 Oct 2018 16:35:03 +0200 In-Reply-To: <20181021161813.3141-1-sleep_walker@gnu.org> (=?utf-8?B?IlRv?= =?utf-8?B?bcOhxaEgxIxlY2giJ3M=?= message of "Sun, 21 Oct 2018 18:18:13 +0200") Message-ID: <87h8h7a25k.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32727-done Cc: 32727-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Tom=C3=A1=C5=A1, Tom=C3=A1=C5=A1 =C4=8Cech skribis: > * gnu/packages/messaging.scm (telegram-purple): New variable. I=E2=80=99ve applied this patch but I ended up making substantial changes (= patch attached), in particular: =E2=80=A2 Arrange to run =E2=80=9Cmake install=E2=80=9D so that all the f= iles get installed (locales, icons, etc.) and not just the .so; =E2=80=A2 Adjust the test/loadtest.c so that it actually runs; =E2=80=A2 Arrange to keep the standard =E2=80=98configure=E2=80=99 phase = rather than overriding it. The other changes are more cosmetic. Are we really more picky than openSuSE? :-) Thank you, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/gnu/local.mk b/gnu/local.mk index c46f3a8c4a..ba86d556a0 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1166,6 +1166,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/tcsh-fix-out-of-bounds-read.patch \ %D%/packages/patches/teensy-loader-cli-help.patch \ %D%/packages/patches/teeworlds-use-latest-wavpack.patch \ + %D%/packages/patches/telegram-purple-adjust-test.patch \ %D%/packages/patches/texi2html-document-encoding.patch \ %D%/packages/patches/texi2html-i18n.patch \ %D%/packages/patches/thefuck-test-environ.patch \ diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index dd937ef53e..0d818514a7 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -1767,15 +1767,35 @@ messaging that aren=E2=80=99t available to clients = that connect over XMPP.") (package (name "telegram-purple") (version "1.3.1") + (home-page "https://github.com/majn/telegram-purple") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/majn/telegram-purple") + (url home-page) (commit (string-append "v" version)) (recursive? #t))) (sha256 (base32 - "0p93jpjpx7hszwffzgixw04zkrpsiyzz4za3gfr4j07krc4771fp")))) + "0p93jpjpx7hszwffzgixw04zkrpsiyzz4za3gfr4j07krc4771fp")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Makefile.in" + ;; By default these two directories point to Pidgin's = own + ;; prefix. + (("^PLUGIN_DIR_PURPLE=3D.*") + (string-append + "exec_prefix :=3D @exec_prefix@\n" + "PLUGIN_DIR_PURPLE :=3D @libdir@/purple-2\n")) + (("^DATA_ROOT_DIR_PURPLE=3D.*") + "DATA_ROOT_DIR_PURPLE :=3D @datarootdir@\n") + + ;; Honor sysconfdir instead of trying to write to /etc. + (("DESTDIR\\)/etc/telegram-purple") + "DESTDIR)@sysconfdir@/telegram-purple")) + #t)) + (patches (search-patches "telegram-purple-adjust-test.patch"= )) + (file-name (git-file-name name version)))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config) @@ -1791,7 +1811,7 @@ messaging that aren=E2=80=99t available to clients th= at connect over XMPP.") (arguments `(;; disable tests for now - tests are failing on pidgin path ;; verification but it seems to be harmless - #:tests? #f + #:tests? #t #:phases (modify-phases %standard-phases ;; We're using release tag for repository checkout - let's prepare @@ -1808,32 +1828,24 @@ messaging that aren=E2=80=99t available to clients = that connect over XMPP.") "#ifndef GIT_COMMIT\n" "# define GIT_COMMIT \"v" ,version "\"\n" - "#endif\n")))))) - (replace 'configure - ;; configure does not work followed by both "SHELL=3D..." and - ;; "CONFIG_SHELL=3D..."; set environment variables instead - (lambda* (#:key outputs configure-flags #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bash (which "bash")) - (flags `(,(string-append "--prefix=3D" out) - ,@configure-flags))) + "#endif\n")))) + #t)) + (add-before 'configure 'set-SHELL-variables + ;; Set these environment variables so that 'tgl/configure' uses= the + ;; right shell and not /bin/sh. + (lambda _ + (let ((bash (which "bash"))) (setenv "SHELL" bash) (setenv "CONFIG_SHELL" bash) - (apply invoke "./configure" flags)))) - (replace 'install - ;; install is trying to use pidgin's lib directory instead of - ;; its own - (lambda* (#:key outputs configure-flags #:allow-other-keys) - (let* ((tgt (string-append (assoc-ref outputs "out") - "/lib/purple-2/"))) - (mkdir-p tgt) - (install-file "bin/telegram-purple.so" - tgt))))))) - ;; gettext - (home-page "https://github.com/majn/telegram-purple") - (synopsis "Telegram support for pidgin") - (description "Telegram-purple is a Libpurple protocol plugin that adds -support for the Telegram messenger.") + #t)))))) + (synopsis "Telegram messaging support for Pidgin") + (description + "Telegram-purple is a plugin for Libpurple, the communication library +used by the Pidgin instant messaging client, that adds support for the +Telegram messenger.") + + ;; Code under tgl/ (the Telegram library) is LGPLv2.1+, but the plugin + ;; itself is GPLv2+. (license license:gpl2+))) =20 ;;; messaging.scm ends here diff --git a/gnu/packages/patches/telegram-purple-adjust-test.patch b/gnu/p= ackages/patches/telegram-purple-adjust-test.patch new file mode 100644 index 0000000000..db3b497d5d --- /dev/null +++ b/gnu/packages/patches/telegram-purple-adjust-test.patch @@ -0,0 +1,14 @@ +This test incorrectly expects the libpurple search path to initially +contain exactly one element. Remove this incorrect assertion. + +--- telegram-purple-1.3.1-checkout/test/loadtest.c 2018-10-27 16:25:06.258= 459600 +0200 ++++ telegram-purple-1.3.1-checkout/test/loadtest.c 2018-10-27 16:25:11.830= 434770 +0200 +@@ -156,7 +156,7 @@ static void tdf_inject_plugin (void) { + printf ("Injecting our module into purple_plugins_* ...\n"); + purple_plugins_init (); + GList *search_paths =3D purple_plugins_get_search_paths (); +- assert (!search_paths->prev && !search_paths->next && search_paths->dat= a); ++ assert (!search_paths->prev && search_paths->data); + GList *new_paths =3D g_list_append (search_paths, g_strdup ("bin/")); + assert (new_paths =3D=3D search_paths); + // Load "my" path before the default. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 27 10:58:10 2018 Received: (at 32727-done) by debbugs.gnu.org; 27 Oct 2018 14:58:10 +0000 Received: from localhost ([127.0.0.1]:45608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGQ2U-00031W-A6 for submit@debbugs.gnu.org; Sat, 27 Oct 2018 10:58:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGQ2R-00031K-Vh for 32727-done@debbugs.gnu.org; Sat, 27 Oct 2018 10:58:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGQ2M-0001yo-4E for 32727-done@debbugs.gnu.org; Sat, 27 Oct 2018 10:58:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_05,FROM_EXCESS_BASE64 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGQ2K-0001xz-CH; Sat, 27 Oct 2018 10:58:00 -0400 Received: from [2a00:c500:22e:1d3:903b:6b2c:84e4:bd83] (port=37150 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1gGQ2J-00013b-Te; Sat, 27 Oct 2018 10:58:00 -0400 Date: Sat, 27 Oct 2018 16:57:55 +0200 From: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= To: Ludovic =?iso-8859-1?Q?Court=E8s?= Subject: Re: [bug#32727] [PATCH] gnu: Add telegram-purple. Message-ID: <20181027145755.GC10836@doom> References: <20180916005815.GA4866@jasmine.lan> <20181021161813.3141-1-sleep_walker@gnu.org> <87h8h7a25k.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SWTRyWv/ijrBap1m" Content-Disposition: inline In-Reply-To: <87h8h7a25k.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 32727-done Cc: 32727-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.9 (-----) --SWTRyWv/ijrBap1m Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 27, 2018 at 04:35:03PM +0200, Ludovic Court=C3=A8s wrote: >Hello Tom=C3=A1=C5=A1, > >Tom=C3=A1=C5=A1 =C4=8Cech skribis: > >> * gnu/packages/messaging.scm (telegram-purple): New variable. > >I=E2=80=99ve applied this patch but I ended up making substantial changes = (patch >attached), in particular: > > =E2=80=A2 Arrange to run =E2=80=9Cmake install=E2=80=9D so that all the = files get installed > (locales, icons, etc.) and not just the .so; > > =E2=80=A2 Adjust the test/loadtest.c so that it actually runs; > > =E2=80=A2 Arrange to keep the standard =E2=80=98configure=E2=80=99 phase= rather than > overriding it. > >The other changes are more cosmetic. Thanks! You didn't have to do that by yourself, really. I would eventually made it if you wouldn't accept that. > >Are we really more picky than openSuSE? :-) Yes, you definitely are! And it is good that way, don't lower your (our) standards! Best regards, S_W --SWTRyWv/ijrBap1m Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEDOrssfr9jDQthC2PSiPjT6AzQ20FAlvUfOwACgkQSiPjT6Az Q23xYRAAh4UVDiF/kbS3+YPj+5LqW86B/Ebz8G2IpKDDK7Orfw3sAC4c8xlhhhyc 75j66zGwEC8ZB8OntOGIVz9PmtwZMs8bdr4W7itCB7xbpp67cl0/nyhUBxgqMgeV F4OOs1F3pXUyVq5ppCjxFnlnflMpF8sh6436dzdYUVZD8Q7ddZNTE+FgybO94Oxk SVpVHpu9c2wvbK9SGS+wZfNGUyglPPdwRZJnT9VwStChJGRQ0QXrHGcIWWqJ9rj0 i0N8UhahiHvbvXRzfqwg7Nzpkb94O6s3eBViWMjHl6RKN1At9P5bhS8l1jy+23hm qsNh0iVongen5neKhwD41MsvZyIK49hBeBhgaUw1oViX+tKNlC68WM1nEAnIJ05Y H5k5a9I2GpVz7D7VvFaOJRT2zIVziBvlHHyeiLv5tzvcaj1ml5K3jWkLBcv/PjSj FrRrIPcfVhyM6oJVzXf32PjVZqJk1FrQYimQ/ajXC3uJeJhQZzd/mknBQnsY+aRo V5AnwW8IuiTudiJRa6STd0dEnVX02bAq0Bl1ysid5i0QQ2Z/l6ov2UbfBoN0Cftc WteWyt8Z1e05f3mFXgqDFBOe2d0B/MIoxhQ0kJGcqt8C0y0uYPxBMFp3HPhIhVzf /mp3GvOaiy1voIhClybrHdLWWwrNOxkBTiyLLGER8pOv6fCE/bU= =f3Ub -----END PGP SIGNATURE----- --SWTRyWv/ijrBap1m-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 28 18:27:49 2018 Received: (at 32727-done) by debbugs.gnu.org; 28 Oct 2018 22:27:49 +0000 Received: from localhost ([127.0.0.1]:49411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGtXB-0000Rm-5n for submit@debbugs.gnu.org; Sun, 28 Oct 2018 18:27:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGtX9-0000RZ-Rb for 32727-done@debbugs.gnu.org; Sun, 28 Oct 2018 18:27:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGtX2-00011P-47 for 32727-done@debbugs.gnu.org; Sun, 28 Oct 2018 18:27:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGtWy-0000zm-0n for 32727-done@debbugs.gnu.org; Sun, 28 Oct 2018 18:27:36 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43800 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gGtWu-0007YE-Fp; Sun, 28 Oct 2018 18:27:34 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= Subject: Re: [bug#32727] [PATCH] gnu: Add telegram-purple. References: <20180916005815.GA4866@jasmine.lan> <20181021161813.3141-1-sleep_walker@gnu.org> <87h8h7a25k.fsf@gnu.org> <20181027145755.GC10836@doom> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 28 Oct 2018 23:27:31 +0100 In-Reply-To: <20181027145755.GC10836@doom> (=?utf-8?B?IlRvbcOhxaEgxIxlY2gi?= =?utf-8?B?J3M=?= message of "Sat, 27 Oct 2018 16:57:55 +0200") Message-ID: <87d0rt671o.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32727-done Cc: 32727-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello! Tom=C3=A1=C5=A1 =C4=8Cech skribis: > On Sat, Oct 27, 2018 at 04:35:03PM +0200, Ludovic Court=C3=A8s wrote: [...] >>I=E2=80=99ve applied this patch but I ended up making substantial changes= (patch >>attached), in particular: >> >> =E2=80=A2 Arrange to run =E2=80=9Cmake install=E2=80=9D so that all the= files get installed >> (locales, icons, etc.) and not just the .so; >> >> =E2=80=A2 Adjust the test/loadtest.c so that it actually runs; >> >> =E2=80=A2 Arrange to keep the standard =E2=80=98configure=E2=80=99 phas= e rather than >> overriding it. >> >>The other changes are more cosmetic. > > Thanks! You didn't have to do that by yourself, really. I would > eventually made it if you wouldn't accept that. OK, noted! (Initially I didn=E2=80=99t mean to dig into it but as I was replying I found myself effectively going deeper than expected=E2=80=A6) >>Are we really more picky than openSuSE? :-) > > Yes, you definitely are! And it is good that way, don't lower your > (our) standards! Heh, thanks! Ludo=E2=80=99. From unknown Tue Aug 19 08:37:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 26 Nov 2018 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator