From unknown Sat Jun 21 10:18:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45954 <45954@debbugs.gnu.org> To: bug#45954 <45954@debbugs.gnu.org> Subject: Status: Telegram-CLI Reply-To: bug#45954 <45954@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:18:34 +0000 retitle 45954 Telegram-CLI reassign 45954 guix-patches submitter 45954 Raghav Gururajan severity 45954 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 04:17:13 2021 Received: (at submit) by debbugs.gnu.org; 18 Jan 2021 09:17:13 +0000 Received: from localhost ([127.0.0.1]:46330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1Qeu-0001kG-Lk for submit@debbugs.gnu.org; Mon, 18 Jan 2021 04:17:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:51842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1Qes-0001k5-3k for submit@debbugs.gnu.org; Mon, 18 Jan 2021 04:17:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1Qer-0006cy-Ug for guix-patches@gnu.org; Mon, 18 Jan 2021 04:17:09 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1Qeo-0002zs-S3 for guix-patches@gnu.org; Mon, 18 Jan 2021 04:17:09 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 8F75A60014 for ; Mon, 18 Jan 2021 09:17:01 +0000 (UTC) To: guix-patches@gnu.org From: Raghav Gururajan Subject: Telegram-CLI Message-ID: Date: Mon, 18 Jan 2021 04:16:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------D3920A52453F386FD64FF0D0" Content-Language: en-US Received-SPF: pass client-ip=217.70.183.195; envelope-from=rg@raghavgururajan.name; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: submit 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: -2.7 (--) This is a multi-part message in MIME format. --------------D3920A52453F386FD64FF0D0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello Guix! Please find the attached patch-set to add telegram-cli and its dependencies into Guix. Regards, RG. --------------D3920A52453F386FD64FF0D0 Content-Type: text/x-patch; charset=UTF-8; name="0018-gnu-Add-telegram-client.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0018-gnu-Add-telegram-client.patch" >From 46d83425664d862f20fd6a4e671cf68a0b2eb5cf Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 18 Jan 2021 04:04:25 -0500 Subject: [PATCH 18/18] gnu: Add telegram-client. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 83 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 4c7e34a1ff..1c75168f21 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -41,13 +41,18 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -443,3 +448,81 @@ a part of telegram-cli, but now being maintained separately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+))) + +(define-public telegram-cli + (package + (name "telegram-cli") + (version "1.3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit "6547c0b21b977b327b3c5e8142963f4bc246187a"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-tgl-and-tlparser + (lambda _ + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref %build-inputs "tgl") + "/include/tgl")) + (("AUTO=auto") + (string-append "AUTO=" (assoc-ref %build-inputs "tgl") + "/include/tgl/auto")) + (("LIB=libs") + (string-append "LIB=" (assoc-ref %build-inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (source (string-append (getenv "TEMP") "/source"))) + ;; Install client. + (install-file + (string-append source "/bin/telegram-cli") + (string-append out "/bin")) + ;; Install server public-key. + (install-file + (string-append source "/server.pub") + (string-append out "/etc/telegram-cli"))) + #t))))) + (native-inputs + `(("perl" ,perl) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messenger.") + (home-page "https://github.com/vysheng/tgl") + (license license:gpl2+))) -- 2.30.0 --------------D3920A52453F386FD64FF0D0 Content-Type: text/x-patch; charset=UTF-8; name="0017-gnu-Add-tgl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0017-gnu-Add-tgl.patch" >From 8c4aca963cda5fe706905dc8e67cf205845c662b Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 22:03:11 -0500 Subject: [PATCH 17/18] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 91 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 3c3aef4b9a..4c7e34a1ff 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -32,10 +32,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -53,6 +55,7 @@ #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system gnu) #:use-module (guix build-system qt)) (define-public tg_owt @@ -352,3 +355,91 @@ messenger.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (package + (name "tgl") + (version "2.0.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit "ffb04caca71de0cddf28cd33a4575922900a59ed"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-to (string-append out "/bin")) + (include-to (string-append out "/include")) + (lib-to (string-append out "/lib")) + (source (string-append (getenv "TEMP") "/source")) + (bin-from (string-append source "/bin")) + (lib-from (string-append source "/libs"))) + ;; Install executables. + (with-directory-excursion bin-from + (for-each + (lambda (file) + (install-file file bin-to)) + (list + "generate"))) + ;; Install headers. + (with-directory-excursion source + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/crypto")) + (delete-file file)) + (find-files "crypto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/auto")) + (delete-file file)) + (find-files "auto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl")) + (delete-file file)) + (find-files "." "\\.h$"))) + ;; Install libraries. + (for-each + (lambda (file) + (install-file file (string-append lib-to "/tgl"))) + (find-files lib-from "\\.(a|so)$"))) + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+))) -- 2.30.0 --------------D3920A52453F386FD64FF0D0 Content-Type: text/x-patch; charset=UTF-8; name="0016-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0016-gnu-Add-tl-parser.patch" >From 656d1067c9c9c15fc69386071dd94c0b29040fd4 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 12:16:34 -0500 Subject: [PATCH 16/18] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 9759a11873..3c3aef4b9a 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -303,3 +303,52 @@ messenger.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "1")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source (string-append (getenv "TEMP") "/source")) + (build (string-append (getenv "TEMP") "/build"))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parser"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) -- 2.30.0 --------------D3920A52453F386FD64FF0D0-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 10:08:52 2021 Received: (at 45954) by debbugs.gnu.org; 19 Jan 2021 15:08:52 +0000 Received: from localhost ([127.0.0.1]:51249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1scm-0001Oh-77 for submit@debbugs.gnu.org; Tue, 19 Jan 2021 10:08:52 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:39183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1sci-0001OC-GZ for 45954@debbugs.gnu.org; Tue, 19 Jan 2021 10:08:50 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 98FE860009 for <45954@debbugs.gnu.org>; Tue, 19 Jan 2021 15:08:41 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v2) Message-ID: <8faa59bb-369f-a6e5-f2bb-f2025cf41448@raghavgururajan.name> Date: Tue, 19 Jan 2021 10:08:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------7E0E7BBCD05BB9C0792B4372" Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 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 (-) This is a multi-part message in MIME format. --------------7E0E7BBCD05BB9C0792B4372 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit --------------7E0E7BBCD05BB9C0792B4372 Content-Type: text/x-patch; charset=UTF-8; name="0018-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0018-gnu-Add-telegram-cli.patch" >From 7ac04da6cf62d16531ac20658a1d6d441a6ef3ca Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 18 Jan 2021 04:04:25 -0500 Subject: [PATCH 18/18] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 117 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index c97289996c..13be4ae4fd 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -42,13 +42,18 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -451,3 +456,115 @@ a part of telegram-cli, but now being maintained separately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+))) + +(define-public telegram-cli + (package + (name "telegram-cli") + (version "1.3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit "6547c0b21b977b327b3c5e8142963f4bc246187a"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=auto") + (string-append "AUTO=" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=libs") + (string-append "LIB=" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (source (string-append (getenv "TEMP") "/source"))) + ;; Install client. + (install-file + (string-append source "/bin/telegram-cli") + (string-append out "/bin")) + ;; Install daemon. + (install-file + (string-append source "/start-telegram-daemon") + (string-append out "/bin")) + ;; Install daemon script. + (install-file + (string-append source "/telegram-daemon") + (string-append out "/etc/init.d")) + ;; Install server public-key. + (install-file + (string-append source "/server.pub") + (string-append out "/etc/telegram-cli"))) + #t)) + (add-after 'install 'patch-daemon-files + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (with-directory-excursion out + (substitute* "etc/init.d/telegram-daemon" + (("KOT\\'s meta engine") + "Telegram Messaging System") + (("/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin") + "$PATH") + (("\\$ROOT/usr/share/telegram-daemon/bin") + (string-append out "/bin")) + (("/etc/init\\.d") + (string-append out "/etc/init.d"))) + (substitute* "bin/start-telegram-daemon" + (("msg-search-engine") + "telegram-cli") + (("\\$root/usr/share/telegram-daemon/bin") + (string-append out "/bin"))))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messenger.") + (home-page "https://github.com/vysheng/tgl") + (license license:gpl2+))) -- 2.30.0 --------------7E0E7BBCD05BB9C0792B4372 Content-Type: text/x-patch; charset=UTF-8; name="0017-gnu-Add-tgl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0017-gnu-Add-tgl.patch" >From 3f8c1445e5486145d215a1f31962ca06e982e333 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 22:03:11 -0500 Subject: [PATCH 17/18] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 99 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 3c3aef4b9a..c97289996c 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -21,6 +21,7 @@ #:use-module (gnu packages aidc) #:use-module (gnu packages assembly) #:use-module (gnu packages audio) + #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages check) #:use-module (gnu packages cmake) @@ -32,10 +33,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -53,6 +56,7 @@ #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system gnu) #:use-module (guix build-system qt)) (define-public tg_owt @@ -352,3 +356,98 @@ messenger.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (package + (name "tgl") + (version "2.0.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit "ffb04caca71de0cddf28cd33a4575922900a59ed"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-to (string-append out "/bin")) + (include-to (string-append out "/include")) + (lib-to (string-append out "/lib")) + (source (string-append (getenv "TEMP") "/source")) + (bin-from (string-append source "/bin")) + (lib-from (string-append source "/libs"))) + ;; Install executables. + (with-directory-excursion bin-from + (for-each + (lambda (file) + (install-file file bin-to)) + (list + "generate"))) + ;; Install headers. + (with-directory-excursion source + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/crypto")) + (delete-file file)) + (find-files "crypto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/auto")) + (delete-file file)) + (find-files "auto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl")) + (delete-file file)) + (find-files "." "\\.h$"))) + ;; Install libraries. + (for-each + (lambda (file) + (install-file file (string-append lib-to "/tgl"))) + (find-files lib-from "\\.(a|so)$"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+))) -- 2.30.0 --------------7E0E7BBCD05BB9C0792B4372 Content-Type: text/x-patch; charset=UTF-8; name="0016-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0016-gnu-Add-tl-parser.patch" >From 656d1067c9c9c15fc69386071dd94c0b29040fd4 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 12:16:34 -0500 Subject: [PATCH 16/18] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 9759a11873..3c3aef4b9a 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -303,3 +303,52 @@ messenger.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "1")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source (string-append (getenv "TEMP") "/source")) + (build (string-append (getenv "TEMP") "/build"))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parser"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) -- 2.30.0 --------------7E0E7BBCD05BB9C0792B4372-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 05:44:28 2021 Received: (at 45954) by debbugs.gnu.org; 20 Jan 2021 10:44:28 +0000 Received: from localhost ([127.0.0.1]:53030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2AyR-0004cw-9D for submit@debbugs.gnu.org; Wed, 20 Jan 2021 05:44:28 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:37735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2AyP-0004ci-1M for 45954@debbugs.gnu.org; Wed, 20 Jan 2021 05:44:26 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 06684E000C for <45954@debbugs.gnu.org>; Wed, 20 Jan 2021 10:44:18 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v3) Message-ID: Date: Wed, 20 Jan 2021 05:44:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------54717843DD3AFFC82D04418B" Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 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 (-) This is a multi-part message in MIME format. --------------54717843DD3AFFC82D04418B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit --------------54717843DD3AFFC82D04418B Content-Type: text/x-patch; charset=UTF-8; name="0018-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0018-gnu-Add-telegram-cli.patch" >From c05ff4de2767a38b0a038f34194dfea83654526b Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 18 Jan 2021 04:04:25 -0500 Subject: [PATCH 18/18] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 117 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index b63af0d409..3235ea3dc6 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -42,13 +42,18 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -679,3 +684,115 @@ a part of telegram-cli, but now being maintained separately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+))) + +(define-public telegram-cli + (package + (name "telegram-cli") + (version "1.3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit "6547c0b21b977b327b3c5e8142963f4bc246187a"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=auto") + (string-append "AUTO=" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=libs") + (string-append "LIB=" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (source (string-append (getenv "TEMP") "/source"))) + ;; Install client. + (install-file + (string-append source "/bin/telegram-cli") + (string-append out "/bin")) + ;; Install daemon. + (install-file + (string-append source "/start-telegram-daemon") + (string-append out "/bin")) + ;; Install daemon script. + (install-file + (string-append source "/telegram-daemon") + (string-append out "/etc/init.d")) + ;; Install server public-key. + (install-file + (string-append source "/server.pub") + (string-append out "/etc/telegram-cli"))) + #t)) + (add-after 'install 'patch-daemon-files + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (with-directory-excursion out + (substitute* "etc/init.d/telegram-daemon" + (("KOT\\'s meta engine") + "Telegram Messaging System") + (("/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin") + "$PATH") + (("\\$ROOT/usr/share/telegram-daemon/bin") + (string-append out "/bin")) + (("/etc/init\\.d") + (string-append out "/etc/init.d"))) + (substitute* "bin/start-telegram-daemon" + (("msg-search-engine") + "telegram-cli") + (("\\$root/usr/share/telegram-daemon/bin") + (string-append out "/bin"))))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messenger.") + (home-page "https://github.com/vysheng/tgl") + (license license:gpl2+))) -- 2.30.0 --------------54717843DD3AFFC82D04418B Content-Type: text/x-patch; charset=UTF-8; name="0017-gnu-Add-tgl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0017-gnu-Add-tgl.patch" >From 59cfe5ad75f1ad4bb266443a405792fdddd077c1 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 20 Jan 2021 04:54:54 -0500 Subject: [PATCH 17/18] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 99 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index b77ae97358..b63af0d409 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -21,6 +21,7 @@ #:use-module (gnu packages aidc) #:use-module (gnu packages assembly) #:use-module (gnu packages audio) + #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages check) #:use-module (gnu packages cmake) @@ -32,10 +33,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -53,6 +56,7 @@ #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system gnu) #:use-module (guix build-system qt)) (define-public tg-owt @@ -580,3 +584,98 @@ Telegram instant messager.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (package + (name "tgl") + (version "2.0.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit "ffb04caca71de0cddf28cd33a4575922900a59ed"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-to (string-append out "/bin")) + (include-to (string-append out "/include")) + (lib-to (string-append out "/lib")) + (source (string-append (getenv "TEMP") "/source")) + (bin-from (string-append source "/bin")) + (lib-from (string-append source "/libs"))) + ;; Install executables. + (with-directory-excursion bin-from + (for-each + (lambda (file) + (install-file file bin-to)) + (list + "generate"))) + ;; Install headers. + (with-directory-excursion source + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/crypto")) + (delete-file file)) + (find-files "crypto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/auto")) + (delete-file file)) + (find-files "auto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl")) + (delete-file file)) + (find-files "." "\\.h$"))) + ;; Install libraries. + (for-each + (lambda (file) + (install-file file (string-append lib-to "/tgl"))) + (find-files lib-from "\\.(a|so)$"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+))) -- 2.30.0 --------------54717843DD3AFFC82D04418B Content-Type: text/x-patch; charset=UTF-8; name="0016-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0016-gnu-Add-tl-parser.patch" >From 294b64749c5762757acc60860186e215f9e13387 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 12:16:34 -0500 Subject: [PATCH 16/18] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 1d4e819a44..b77ae97358 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -531,3 +531,52 @@ Telegram instant messager.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "1")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source (string-append (getenv "TEMP") "/source")) + (build (string-append (getenv "TEMP") "/build"))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parser"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) -- 2.30.0 --------------54717843DD3AFFC82D04418B-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 21 23:44:58 2021 Received: (at 45954) by debbugs.gnu.org; 22 Jan 2021 04:44:58 +0000 Received: from localhost ([127.0.0.1]:59876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2oJd-0004Jx-Mf for submit@debbugs.gnu.org; Thu, 21 Jan 2021 23:44:58 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:34451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2oJb-0004JU-5D for 45954@debbugs.gnu.org; Thu, 21 Jan 2021 23:44:56 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 235F660004 for <45954@debbugs.gnu.org>; Fri, 22 Jan 2021 04:44:47 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v4) Message-ID: <3d9e9520-a5c2-8bed-cb24-f7b1d3b58b52@raghavgururajan.name> Date: Thu, 21 Jan 2021 23:44:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------C25F561D908D29853D187AEF" Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 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 (-) This is a multi-part message in MIME format. --------------C25F561D908D29853D187AEF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit --------------C25F561D908D29853D187AEF Content-Type: text/x-patch; charset=UTF-8; name="0018-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0018-gnu-Add-telegram-cli.patch" >From 8d70270726efb0c1b144df9154daf2119116d39d Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 18 Jan 2021 04:04:25 -0500 Subject: [PATCH 18/18] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 117 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 00efeeec39..44666a43ac 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -42,13 +42,18 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -713,3 +718,115 @@ a part of telegram-cli, but now being maintained separately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+))) + +(define-public telegram-cli + (package + (name "telegram-cli") + (version "1.3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit "6547c0b21b977b327b3c5e8142963f4bc246187a"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=auto") + (string-append "AUTO=" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=libs") + (string-append "LIB=" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (source (string-append (getenv "TEMP") "/source"))) + ;; Install client. + (install-file + (string-append source "/bin/telegram-cli") + (string-append out "/bin")) + ;; Install daemon. + (install-file + (string-append source "/start-telegram-daemon") + (string-append out "/bin")) + ;; Install daemon script. + (install-file + (string-append source "/telegram-daemon") + (string-append out "/etc/init.d")) + ;; Install server public-key. + (install-file + (string-append source "/server.pub") + (string-append out "/etc/telegram-cli"))) + #t)) + (add-after 'install 'patch-daemon-files + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (with-directory-excursion out + (substitute* "etc/init.d/telegram-daemon" + (("KOT\\'s meta engine") + "Telegram Messaging System") + (("/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin") + "$PATH") + (("\\$ROOT/usr/share/telegram-daemon/bin") + (string-append out "/bin")) + (("/etc/init\\.d") + (string-append out "/etc/init.d"))) + (substitute* "bin/start-telegram-daemon" + (("msg-search-engine") + "telegram-cli") + (("\\$root/usr/share/telegram-daemon/bin") + (string-append out "/bin"))))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messenger.") + (home-page "https://github.com/vysheng/tgl") + (license license:gpl2+))) -- 2.30.0 --------------C25F561D908D29853D187AEF Content-Type: text/x-patch; charset=UTF-8; name="0017-gnu-Add-tgl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0017-gnu-Add-tgl.patch" >From 86addd1eaea66e86c2bf33b86394312512f9c7bd Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 21 Jan 2021 23:23:29 -0500 Subject: [PATCH 17/18] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 97 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index baea47bd57..00efeeec39 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -33,10 +33,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -616,3 +618,98 @@ Telegram instant messager.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (package + (name "tgl") + (version "2.0.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit "ffb04caca71de0cddf28cd33a4575922900a59ed"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-to (string-append out "/bin")) + (include-to (string-append out "/include")) + (lib-to (string-append out "/lib")) + (source (string-append (getenv "TEMP") "/source")) + (bin-from (string-append source "/bin")) + (lib-from (string-append source "/libs"))) + ;; Install executables. + (with-directory-excursion bin-from + (for-each + (lambda (file) + (install-file file bin-to)) + (list + "generate"))) + ;; Install headers. + (with-directory-excursion source + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/crypto")) + (delete-file file)) + (find-files "crypto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/auto")) + (delete-file file)) + (find-files "auto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl")) + (delete-file file)) + (find-files "." "\\.h$"))) + ;; Install libraries. + (for-each + (lambda (file) + (install-file file (string-append lib-to "/tgl"))) + (find-files lib-from "\\.(a|so)$"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+))) -- 2.30.0 --------------C25F561D908D29853D187AEF Content-Type: text/x-patch; charset=UTF-8; name="0016-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0016-gnu-Add-tl-parser.patch" >From 2a10583ec96e30fed9fb14e2314eef725c26af58 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 12:16:34 -0500 Subject: [PATCH 16/18] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 9534433424..baea47bd57 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -567,3 +567,52 @@ Telegram instant messager.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "1")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source (string-append (getenv "TEMP") "/source")) + (build (string-append (getenv "TEMP") "/build"))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parser"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) -- 2.30.0 --------------C25F561D908D29853D187AEF-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 20:00:50 2021 Received: (at 45954) by debbugs.gnu.org; 28 Jan 2021 01:00:50 +0000 Received: from localhost ([127.0.0.1]:46558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4vg2-0006qZ-6C for submit@debbugs.gnu.org; Wed, 27 Jan 2021 20:00:50 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:44681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4vg0-0006qJ-Ab for 45954@debbugs.gnu.org; Wed, 27 Jan 2021 20:00:49 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 385E71BF209 for <45954@debbugs.gnu.org>; Thu, 28 Jan 2021 01:00:40 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v5) Message-ID: <30b8abee-81cf-67de-6753-f3b127c6ba7a@raghavgururajan.name> Date: Wed, 27 Jan 2021 20:00:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------62FE01D6AC8DF4E5AACB5EC6" Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 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 (-) This is a multi-part message in MIME format. --------------62FE01D6AC8DF4E5AACB5EC6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit --------------62FE01D6AC8DF4E5AACB5EC6 Content-Type: text/x-patch; charset=UTF-8; name="0016-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0016-gnu-Add-tl-parser.patch" >From a6a01b3ff31febee3a0175340dcb89f111550cae Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 12:16:34 -0500 Subject: [PATCH 16/18] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index c827516a51..12dfdfdbb8 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -555,3 +555,52 @@ Telegram instant messager.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "1")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source (string-append (getenv "TEMP") "/source")) + (build (string-append (getenv "TEMP") "/build"))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parser"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) -- 2.30.0 --------------62FE01D6AC8DF4E5AACB5EC6 Content-Type: text/x-patch; charset=UTF-8; name="0017-gnu-Add-tgl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0017-gnu-Add-tgl.patch" >From bdd5cd4eee1aa6a61dd76039d22c5a462b4393d5 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 21 Jan 2021 23:23:29 -0500 Subject: [PATCH 17/18] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 97 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 12dfdfdbb8..5b391d9dfd 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -34,10 +34,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -604,3 +606,98 @@ Telegram instant messager.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (package + (name "tgl") + (version "2.0.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit "ffb04caca71de0cddf28cd33a4575922900a59ed"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-to (string-append out "/bin")) + (include-to (string-append out "/include")) + (lib-to (string-append out "/lib")) + (source (string-append (getenv "TEMP") "/source")) + (bin-from (string-append source "/bin")) + (lib-from (string-append source "/libs"))) + ;; Install executables. + (with-directory-excursion bin-from + (for-each + (lambda (file) + (install-file file bin-to)) + (list + "generate"))) + ;; Install headers. + (with-directory-excursion source + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/crypto")) + (delete-file file)) + (find-files "crypto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/auto")) + (delete-file file)) + (find-files "auto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl")) + (delete-file file)) + (find-files "." "\\.h$"))) + ;; Install libraries. + (for-each + (lambda (file) + (install-file file (string-append lib-to "/tgl"))) + (find-files lib-from "\\.(a|so)$"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+))) -- 2.30.0 --------------62FE01D6AC8DF4E5AACB5EC6 Content-Type: text/x-patch; charset=UTF-8; name="0018-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0018-gnu-Add-telegram-cli.patch" >From dc5ea54ebb2f16923717eae9427fe7ff1bc7f433 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 27 Jan 2021 19:56:23 -0500 Subject: [PATCH 18/18] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 117 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 5b391d9dfd..d4e8252126 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -43,14 +43,19 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages telephony) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -701,3 +706,115 @@ a part of telegram-cli, but now being maintained separately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+))) + +(define-public telegram-cli + (package + (name "telegram-cli") + (version "1.3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit "6547c0b21b977b327b3c5e8142963f4bc246187a"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=auto") + (string-append "AUTO=" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=libs") + (string-append "LIB=" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (source (string-append (getenv "TEMP") "/source"))) + ;; Install client. + (install-file + (string-append source "/bin/telegram-cli") + (string-append out "/bin")) + ;; Install daemon. + (install-file + (string-append source "/start-telegram-daemon") + (string-append out "/bin")) + ;; Install daemon script. + (install-file + (string-append source "/telegram-daemon") + (string-append out "/etc/init.d")) + ;; Install server public-key. + (install-file + (string-append source "/server.pub") + (string-append out "/etc/telegram-cli"))) + #t)) + (add-after 'install 'patch-daemon-files + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (with-directory-excursion out + (substitute* "etc/init.d/telegram-daemon" + (("KOT\\'s meta engine") + "Telegram Messaging System") + (("/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin") + "$PATH") + (("\\$ROOT/usr/share/telegram-daemon/bin") + (string-append out "/bin")) + (("/etc/init\\.d") + (string-append out "/etc/init.d"))) + (substitute* "bin/start-telegram-daemon" + (("msg-search-engine") + "telegram-cli") + (("\\$root/usr/share/telegram-daemon/bin") + (string-append out "/bin"))))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messenger.") + (home-page "https://github.com/vysheng/tg") + (license license:gpl2+))) -- 2.30.0 --------------62FE01D6AC8DF4E5AACB5EC6-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 14:46:54 2021 Received: (at 45954) by debbugs.gnu.org; 31 Jan 2021 19:46:54 +0000 Received: from localhost ([127.0.0.1]:58088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6IgP-0004Lh-CD for submit@debbugs.gnu.org; Sun, 31 Jan 2021 14:46:53 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:48967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6IgM-0004LR-A6 for 45954@debbugs.gnu.org; Sun, 31 Jan 2021 14:46:51 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id B9B60C0009; Sun, 31 Jan 2021 19:46:42 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v6) Message-ID: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name> Date: Sun, 31 Jan 2021 14:46:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nyRCxYx6bbPzgeSIzooDFCglyM3JQWNAP" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nyRCxYx6bbPzgeSIzooDFCglyM3JQWNAP Content-Type: multipart/mixed; boundary="yxAjXu2GPAnqJDrrLiz7UjUyEonimTzFH"; protected-headers="v1" From: Raghav Gururajan To: 45954@debbugs.gnu.org Cc: Jonathan Brielmaier Message-ID: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name> Subject: Telegram-CLI (v6) --yxAjXu2GPAnqJDrrLiz7UjUyEonimTzFH Content-Type: multipart/mixed; boundary="------------D5816AFD63C97F312050A1FC" Content-Language: en-US This is a multi-part message in MIME format. --------------D5816AFD63C97F312050A1FC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable P.S. Just in case if v5 doesn't apply on current master. --------------D5816AFD63C97F312050A1FC Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-gnu-Add-tl-parser.patch" =46rom c0aecf538cdc3318cf3906965ef55633963fb661 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 12:16:34 -0500 Subject: [PATCH 1/3] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 66b94baf28..8e03283593 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -555,3 +555,52 @@ Telegram instant messager.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "1")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq"= )))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source (string-append (getenv "TEMP") "/source"))= + (build (string-append (getenv "TEMP") "/build"))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parse= r"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was= formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) --=20 2.30.0 --------------D5816AFD63C97F312050A1FC Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-tgl.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-gnu-Add-tgl.patch" =46rom 8ca84d054418feb4ceb3a2001ed082abeb2d5dbb Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 21 Jan 2021 23:23:29 -0500 Subject: [PATCH 2/3] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 97 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 8e03283593..a5f04eab65 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -34,10 +34,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -604,3 +606,98 @@ Telegram instant messager.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (package + (name "tgl") + (version "2.0.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit "ffb04caca71de0cddf28cd33a4575922900a59ed"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9"))= )) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-to (string-append out "/bin")) + (include-to (string-append out "/include")) + (lib-to (string-append out "/lib")) + (source (string-append (getenv "TEMP") "/source")) + (bin-from (string-append source "/bin")) + (lib-from (string-append source "/libs"))) + ;; Install executables. + (with-directory-excursion bin-from + (for-each + (lambda (file) + (install-file file bin-to)) + (list + "generate"))) + ;; Install headers. + (with-directory-excursion source + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/c= rypto")) + (delete-file file)) + (find-files "crypto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl/a= uto")) + (delete-file file)) + (find-files "auto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl")= ) + (delete-file file)) + (find-files "." "\\.h$"))) + ;; Install libraries. + (for-each + (lambda (file) + (install-file file (string-append lib-to "/tgl"))) + (find-files lib-from "\\.(a|so)$"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+))) --=20 2.30.0 --------------D5816AFD63C97F312050A1FC Content-Type: text/x-patch; charset=UTF-8; name="0003-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0003-gnu-Add-telegram-cli.patch" =46rom 44b079fd0e89a106a4212adc38abb916222ecb5b Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 27 Jan 2021 19:56:23 -0500 Subject: [PATCH 3/3] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 117 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index a5f04eab65..7b607476a8 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -43,14 +43,19 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages telephony) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -701,3 +706,115 @@ a part of telegram-cli, but now being maintained se= parately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+))) + +(define-public telegram-cli + (package + (name "telegram-cli") + (version "1.3.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit "6547c0b21b977b327b3c5e8142963f4bc246187a"))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6"))= )) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=3Dauto") + (string-append "AUTO=3D" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=3Dlibs") + (string-append "LIB=3D" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (source (string-append (getenv "TEMP") "/source"))) + ;; Install client. + (install-file + (string-append source "/bin/telegram-cli") + (string-append out "/bin")) + ;; Install daemon. + (install-file + (string-append source "/start-telegram-daemon") + (string-append out "/bin")) + ;; Install daemon script. + (install-file + (string-append source "/telegram-daemon") + (string-append out "/etc/init.d")) + ;; Install server public-key. + (install-file + (string-append source "/server.pub") + (string-append out "/etc/telegram-cli"))) + #t)) + (add-after 'install 'patch-daemon-files + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (with-directory-excursion out + (substitute* "etc/init.d/telegram-daemon" + (("KOT\\'s meta engine") + "Telegram Messaging System") + (("/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbi= n:/usr/bin") + "$PATH") + (("\\$ROOT/usr/share/telegram-daemon/bin") + (string-append out "/bin")) + (("/etc/init\\.d") + (string-append out "/etc/init.d"))) + (substitute* "bin/start-telegram-daemon" + (("msg-search-engine") + "telegram-cli") + (("\\$root/usr/share/telegram-daemon/bin") + (string-append out "/bin"))))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messenge= r.") + (home-page "https://github.com/vysheng/tg") + (license license:gpl2+))) --=20 2.30.0 --------------D5816AFD63C97F312050A1FC Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsCG= wMF CwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCX28v0AIZA= QAK CRBfWBZkf4vlUQf2AQD63gsdJzk0w6Gy0AzpJtMa63mbVRAh4xfnxsRNu6SbGQD/UDytGjwnQ= 4nK YsGdoCcA7LM64EkknDvI3ZmlqG7Xuw/NPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DMROf -----END PGP PUBLIC KEY BLOCK----- --------------D5816AFD63C97F312050A1FC-- --yxAjXu2GPAnqJDrrLiz7UjUyEonimTzFH-- --nyRCxYx6bbPzgeSIzooDFCglyM3JQWNAP Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBcJIAUDAAAAAAAKCRBfWBZkf4vlUWQR AP0RStf5eA59KNqIOZadp6Svnw1AilFlhRT7WSgLi7aKzQEAyFP4nS78Sul2CvQ5v4jvbkej7tzu tj+P5sj4XN2YxQk= =Tsgo -----END PGP SIGNATURE----- --nyRCxYx6bbPzgeSIzooDFCglyM3JQWNAP-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 03:30:58 2021 Received: (at 45954) by debbugs.gnu.org; 1 Feb 2021 08:30:58 +0000 Received: from localhost ([127.0.0.1]:58672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ubj-0008LL-5o for submit@debbugs.gnu.org; Mon, 01 Feb 2021 03:30:58 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:63386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ubg-0008LB-IW for 45954@debbugs.gnu.org; Mon, 01 Feb 2021 03:30:49 -0500 Received: from nijino.local (217-149-173-242.nat.highway.telekom.at [217.149.173.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DTh3S710Rz3wXl; Mon, 1 Feb 2021 09:30:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1612168245; bh=f2PcBOiPgDnsx5TNKpDxQxC9I673xmXSp4g4gwjXnT4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=TAtHEJV+mycNqGmQo152uID4rV5pSemGbY0OaaYM0hdPY0a6AD3XUXMxRG5s+UbnM bvHJA6l57I0Ta+xmjLH4P+rMP+XMoEf6Sah6HfDVha1RCuph0bH38RlerpHM+Vw9Ps OqlBj4bNBDK+rLCr6yYZ5CB8pg3YkAU4yAzmH5lw= Message-ID: Subject: Re: Telegram-CLI (v6) From: Leo Prikler To: Raghav Gururajan , 45954@debbugs.gnu.org Date: Mon, 01 Feb 2021 09:30:43 +0100 In-Reply-To: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name> References: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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: -3.3 (---) Am Sonntag, den 31.01.2021, 14:46 -0500 schrieb Raghav Gururajan: > +(define-public tgl > + (package > + (name "tgl") > + (version "2.0.1") > + (source > + (origin > + (method git-fetch) > + (uri > + (git-reference > + (url "https://github.com/vysheng/tgl.git") > + (commit "ffb04caca71de0cddf28cd33a4575922900a59ed"))) The commit does not match up with the version. If this is intended, use git-version instead. > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (bin-to (string-append out "/bin")) > + (include-to (string-append out "/include")) > + (lib-to (string-append out "/lib")) > + (source (string-append (getenv "TEMP") > "/source")) > + (bin-from (string-append source "/bin")) > + (lib-from (string-append source "/libs"))) > + ;; Install executables. > + (with-directory-excursion bin-from > + (for-each > + (lambda (file) > + (install-file file bin-to)) > + (list > + "generate"))) > + ;; Install headers. > + (with-directory-excursion source > + (for-each > + (lambda (file) > + (install-file file (string-append include-to > "/tgl/crypto")) > + (delete-file file)) > + (find-files "crypto" "\\.h$")) > + (for-each > + (lambda (file) > + (install-file file (string-append include-to > "/tgl/auto")) > + (delete-file file)) > + (find-files "auto" "\\.h$")) > + (for-each > + (lambda (file) > + (install-file file (string-append include-to > "/tgl")) > + (delete-file file)) > + (find-files "." "\\.h$"))) > + ;; Install libraries. > + (for-each > + (lambda (file) > + (install-file file (string-append lib-to "/tgl"))) > + (find-files lib-from "\\.(a|so)$"))) > + #t))))) You might want to write that in terms of copy-build-system. > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (source (string-append (getenv "TEMP") > "/source"))) > + ;; Install client. > + (install-file > + (string-append source "/bin/telegram-cli") > + (string-append out "/bin")) > + ;; Install daemon. > + (install-file > + (string-append source "/start-telegram-daemon") > + (string-append out "/bin")) > + ;; Install daemon script. > + (install-file > + (string-append source "/telegram-daemon") > + (string-append out "/etc/init.d")) > + ;; Install server public-key. > + (install-file > + (string-append source "/server.pub") > + (string-append out "/etc/telegram-cli"))) > + #t)) Same here. Also, I'm not sure if SysV init scripts are that compatible with Guix running on Shepherd. Is there a more direct way of launching the daemon? > + (("/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr > /sbin:/usr/bin") > + "$PATH") Not that it makes much of a difference, as I doubt this file will still be needed, but PATH=$PATH is a noop. Perhaps you want (getenv "PATH") instead? Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 17:08:33 2021 Received: (at 45954) by debbugs.gnu.org; 1 Feb 2021 22:08:33 +0000 Received: from localhost ([127.0.0.1]:33451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6hN1-0004cu-Ci for submit@debbugs.gnu.org; Mon, 01 Feb 2021 17:08:33 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:54077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6hMy-0004cd-CN for 45954@debbugs.gnu.org; Mon, 01 Feb 2021 17:08:29 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 433FCFF802; Mon, 1 Feb 2021 22:08:19 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v7) Message-ID: Date: Mon, 1 Feb 2021 17:08:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k4teRQwZKA118LHBhpTEGPL0ZRpEoK439" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 Cc: Leo Prikler , Jonathan Brielmaier 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 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --k4teRQwZKA118LHBhpTEGPL0ZRpEoK439 Content-Type: multipart/mixed; boundary="n9jlNasFgpQhTZAWLXw3guMXsGNXjp2Ok"; protected-headers="v1" From: Raghav Gururajan To: 45954@debbugs.gnu.org Cc: Jonathan Brielmaier , Leo Prikler Message-ID: Subject: Telegram-CLI (v7) --n9jlNasFgpQhTZAWLXw3guMXsGNXjp2Ok Content-Type: multipart/mixed; boundary="------------4106989C4B2985D43CA75C3C" Content-Language: en-US This is a multi-part message in MIME format. --------------4106989C4B2985D43CA75C3C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable --------------4106989C4B2985D43CA75C3C Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-gnu-Add-tl-parser.patch" =46rom 597f4fe496a3bd9653ea1d2c6afb8bcf098da64f Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:38:25 -0500 Subject: [PATCH 1/3] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 66b94baf28..ab8b9362f2 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -555,3 +555,52 @@ Telegram instant messager.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "21")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq"= )))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source (string-append (getenv "TEMP") "/source"))= + (build (string-append (getenv "TEMP") "/build"))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parse= r"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was= formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) --=20 2.30.0 --------------4106989C4B2985D43CA75C3C Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-tgl.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-gnu-Add-tgl.patch" =46rom 8bd200771ed33ca12cbb815948f6d7a5576d4e57 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:42:24 -0500 Subject: [PATCH 2/3] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 100 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index ab8b9362f2..2ff30c209e 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -34,10 +34,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -604,3 +606,101 @@ Telegram instant messager.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (let ((commit "ffb04caca71de0cddf28cd33a4575922900a59ed") + (revision "181")) + (package + (name "tgl") + (version + (git-version "2.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9"= )))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-to (string-append out "/bin")) + (include-to (string-append out "/include")) + (lib-to (string-append out "/lib")) + (source (string-append (getenv "TEMP") "/source"))= + (bin-from (string-append source "/bin")) + (lib-from (string-append source "/libs"))) + ;; Install executables. + (with-directory-excursion bin-from + (for-each + (lambda (file) + (install-file file bin-to)) + (list + "generate"))) + ;; Install headers. + (with-directory-excursion source + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl= /crypto")) + (delete-file file)) + (find-files "crypto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl= /auto")) + (delete-file file)) + (find-files "auto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl= ")) + (delete-file file)) + (find-files "." "\\.h$"))) + ;; Install libraries. + (for-each + (lambda (file) + (install-file file (string-append lib-to "/tgl"))) + (find-files lib-from "\\.(a|so)$"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+)))) --=20 2.30.0 --------------4106989C4B2985D43CA75C3C Content-Type: text/x-patch; charset=UTF-8; name="0003-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0003-gnu-Add-telegram-cli.patch" =46rom f7bb371f28dfac22dc52e2091c7fc5adb88dd3a4 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:49:04 -0500 Subject: [PATCH 3/3] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 120 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 2ff30c209e..1e83e33dfa 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -43,14 +43,19 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages telephony) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -704,3 +709,118 @@ a part of telegram-cli, but now being maintained se= parately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+)))) + +(define-public telegram-cli + (let ((commit "6547c0b21b977b327b3c5e8142963f4bc246187a") + (revision "324")) + (package + (name "telegram-cli") + (version + (git-version "1.3.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6"= )))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=3Dauto") + (string-append "AUTO=3D" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=3Dlibs") + (string-append "LIB=3D" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (source (string-append (getenv "TEMP") "/source"))= ) + ;; Install client. + (install-file + (string-append source "/bin/telegram-cli") + (string-append out "/bin")) + ;; Install daemon. + (install-file + (string-append source "/start-telegram-daemon") + (string-append out "/bin")) + ;; Install daemon script. + (install-file + (string-append source "/telegram-daemon") + (string-append out "/etc/init.d")) + ;; Install server public-key. + (install-file + (string-append source "/server.pub") + (string-append out "/etc/telegram-cli"))) + #t)) + (add-after 'install 'patch-daemon-files + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (with-directory-excursion out + (substitute* "etc/init.d/telegram-daemon" + (("KOT\\'s meta engine") + "Telegram Messaging System") + (("/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/s= bin:/usr/bin") + "$PATH") + (("\\$ROOT/usr/share/telegram-daemon/bin") + (string-append out "/bin")) + (("/etc/init\\.d") + (string-append out "/etc/init.d"))) + (substitute* "bin/start-telegram-daemon" + (("msg-search-engine") + "telegram-cli") + (("\\$root/usr/share/telegram-daemon/bin") + (string-append out "/bin"))))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messen= ger.") + (home-page "https://github.com/vysheng/tg") + (license license:gpl2+)))) --=20 2.30.0 --------------4106989C4B2985D43CA75C3C-- --n9jlNasFgpQhTZAWLXw3guMXsGNXjp2Ok-- --k4teRQwZKA118LHBhpTEGPL0ZRpEoK439 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBh70gUDAAAAAAAKCRBfWBZkf4vlUaXo AQCIaG7qyLJIHb9I1jJ1Gno4GW/rvL3Jn/VGNtKUSASY+wEA2wYrh2VE2fjM0CjpOn27kjmCjj4+ 2oqldfemSmpHlQ4= =KzCF -----END PGP SIGNATURE----- --k4teRQwZKA118LHBhpTEGPL0ZRpEoK439-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 17:18:17 2021 Received: (at 45954) by debbugs.gnu.org; 1 Feb 2021 22:18:17 +0000 Received: from localhost ([127.0.0.1]:33457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6hWT-0004qf-Is for submit@debbugs.gnu.org; Mon, 01 Feb 2021 17:18:17 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:58289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6hWQ-0004qP-V4 for 45954@debbugs.gnu.org; Mon, 01 Feb 2021 17:18:16 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 1F404FF807; Mon, 1 Feb 2021 22:18:06 +0000 (UTC) To: Leo Prikler , 45954@debbugs.gnu.org References: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name> From: Raghav Gururajan Subject: Re: Telegram-CLI (v6) Message-ID: <494758df-748b-7f1d-5f69-45d80cdaa0e8@raghavgururajan.name> Date: Mon, 1 Feb 2021 17:18:05 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HKS1OQkwwE7cxzlF7PTQbGCQPch6PTPPf" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HKS1OQkwwE7cxzlF7PTQbGCQPch6PTPPf Content-Type: multipart/mixed; boundary="txiDAt85QzwJtPyJ9c2ejnHXdBxPnVTn5"; protected-headers="v1" From: Raghav Gururajan To: Leo Prikler , 45954@debbugs.gnu.org Cc: Jonathan Brielmaier Message-ID: <494758df-748b-7f1d-5f69-45d80cdaa0e8@raghavgururajan.name> Subject: Re: Telegram-CLI (v6) References: <5f1840a5-37b2-731d-b3fe-eff1f33e2550@raghavgururajan.name> In-Reply-To: --txiDAt85QzwJtPyJ9c2ejnHXdBxPnVTn5 Content-Type: multipart/mixed; boundary="------------D76F52B5F33C4F72155516B7" Content-Language: en-US This is a multi-part message in MIME format. --------------D76F52B5F33C4F72155516B7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Leo! > The commit does not match up with the version. If this is intended, > use git-version instead. Changed in v7. > You might want to write that in terms of copy-build-system. Hmm. I tried but couldn't come up with a way to do it like that. :( > Same here. Also, I'm not sure if SysV init scripts are that compatible= > with Guix running on Shepherd. Is there a more direct way of launching= > the daemon? Updated git-version in v7. The script may only be used on foreign-distro for now. For guix system,=20 we need to define a service for it. Also, running telegram-cli doesn't require daemon, but vice-versa. The=20 daemon is intended to be a complimentary feature to run telegram-cli on=20 headless server. > Not that it makes much of a difference, as I doubt this file will still= > be needed, but PATH=3D$PATH is a noop. Perhaps you want (getenv "PATH"= ) > instead? I don't think so. The file is a run-time script. So the script will use=20 the value of env-var PATH provided by the system. Using (getenv "PATH")=20 will instead use the value of PATH inside the build environment. Regards, RG. --------------D76F52B5F33C4F72155516B7 Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsCG= wMF CwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCX28v0AIZA= QAK CRBfWBZkf4vlUQf2AQD63gsdJzk0w6Gy0AzpJtMa63mbVRAh4xfnxsRNu6SbGQD/UDytGjwnQ= 4nK YsGdoCcA7LM64EkknDvI3ZmlqG7Xuw/NPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DMROf -----END PGP PUBLIC KEY BLOCK----- --------------D76F52B5F33C4F72155516B7-- --txiDAt85QzwJtPyJ9c2ejnHXdBxPnVTn5-- --HKS1OQkwwE7cxzlF7PTQbGCQPch6PTPPf Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBh+HQUDAAAAAAAKCRBfWBZkf4vlUbsK AP9a5+g5saCXtMb5O5KhT9a4ENo+VnXm9sUlmSohQug4QQEA3n6vVLQSMTl3fGnmIJWtTT1YrB5R eQDIpZNGJFpEgwM= =fwOD -----END PGP SIGNATURE----- --HKS1OQkwwE7cxzlF7PTQbGCQPch6PTPPf-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 17:39:31 2021 Received: (at 45954) by debbugs.gnu.org; 1 Feb 2021 22:39:31 +0000 Received: from localhost ([127.0.0.1]:33497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6hr1-0005Rx-3O for submit@debbugs.gnu.org; Mon, 01 Feb 2021 17:39:31 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:61148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6hqv-0005Rk-1c for 45954@debbugs.gnu.org; Mon, 01 Feb 2021 17:39:29 -0500 Received: from nijino.local (217-149-173-242.nat.highway.telekom.at [217.149.173.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DV2td1cPNz1LLyL; Mon, 1 Feb 2021 23:39:20 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4DV2td1cPNz1LLyL DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1612219161; bh=OQQ71mP9lMRHI33Rv3lsM1LzYM5mlsDdweqKRIp2N2M=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=X67x/SQUATeisc52pYpV/tAjurZzMhqX2PNSaQu0SmuZ4glyakHnXepL9sNqPoKoo aVR+lLVhqpka5a+6Qfwn0RSUX5OD0lkHn6p0ZlcSUQrKyKeYby7Taf7UoO/wAdmt9h vMcTAVoCvkXWSfEWIk28Rta0xu9ekrhsraVfF3ds= Message-ID: <515542411e38fa921ef936fe116bd3e0fb2a44d1.camel@student.tugraz.at> Subject: Re: Telegram-CLI (v7) From: Leo Prikler To: Raghav Gururajan , 45954@debbugs.gnu.org Date: Mon, 01 Feb 2021 23:39:20 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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: -3.3 (---) Am Montag, den 01.02.2021, 17:08 -0500 schrieb Raghav Gururajan: > +(define-public telegram-cli > + (let ((commit "6547c0b21b977b327b3c5e8142963f4bc246187a") > + (revision "324")) > + (package > + (name "telegram-cli") > + (version > + (git-version "1.3.1" revision commit)) I didn't notice this before, but is there a reason to package this version over 1.3.1? > (getenv "TEMP") Please stop trying to use this as a snippet to mean "the root of the source and build directory". It is extremely obscure and people are already using "../source" just fine. (Just do an rgrep if you aren't convinced.) > > You might want to write that in terms of copy-build-system. > > Hmm. I tried but couldn't come up with a way to do it like that. :( You can still try harder for v8 ;) > The script may only be used on foreign-distro for now. For guix > system, > we need to define a service for it. > > Also, running telegram-cli doesn't require daemon, but vice-versa. > The > daemon is intended to be a complimentary feature to run telegram-cli > on > headless server. In that case, does the daemon script have any value of its own? Given that the latest release of telegram-cli is about six years old, I doubt there is – foreign distros should already have it in their repos and Guix as a package manager makes no claim to manage system stuff like services on foreign distros. > The file is a run-time script. That means literally nothing. The wrap phase exists for a reason, some programs and script are even wrapped twice. > Using (getenv "PATH") will instead use the value of PATH inside the > build environment. So you'll inadvertently have some native-inputs in it, is what you're trying to say? Of course, there are better ways of wrapping PATH, but in this case wouldn't it be wise to limit it to just the expected paths? Again, assuming that there is even merit in shipping this file, which is yet to be proven. Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 21:25:56 2021 Received: (at 45954) by debbugs.gnu.org; 2 Feb 2021 02:25:56 +0000 Received: from localhost ([127.0.0.1]:33686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6lO7-0004aU-7q for submit@debbugs.gnu.org; Mon, 01 Feb 2021 21:25:56 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:54197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6lO4-0004aF-OU for 45954@debbugs.gnu.org; Mon, 01 Feb 2021 21:25:54 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 45C4E40005; Tue, 2 Feb 2021 02:25:43 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v8) Message-ID: <8bc01610-44a7-875a-20da-1f0693811851@raghavgururajan.name> Date: Mon, 1 Feb 2021 21:25:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="M2gegrbadimt7N8Swevzvs2VEpzwnwFs4" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 Cc: Leo Prikler , Jonathan Brielmaier 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 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --M2gegrbadimt7N8Swevzvs2VEpzwnwFs4 Content-Type: multipart/mixed; boundary="VSdSIS4umZQLL5XZacP8WGa6sBi5MKYQZ"; protected-headers="v1" From: Raghav Gururajan To: 45954@debbugs.gnu.org Cc: Leo Prikler , Jonathan Brielmaier Message-ID: <8bc01610-44a7-875a-20da-1f0693811851@raghavgururajan.name> Subject: Telegram-CLI (v8) --VSdSIS4umZQLL5XZacP8WGa6sBi5MKYQZ Content-Type: multipart/mixed; boundary="------------85FAA4FF16AFC016520B109D" Content-Language: en-US This is a multi-part message in MIME format. --------------85FAA4FF16AFC016520B109D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable --------------85FAA4FF16AFC016520B109D Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-gnu-Add-tl-parser.patch" =46rom 694ddc229f4fd6b1a18ae4d1a56a6a2fb43c6988 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:38:25 -0500 Subject: [PATCH 1/3] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 66b94baf28..d05670fc51 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -555,3 +555,52 @@ Telegram instant messager.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "21")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq"= )))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source "../source") + (build (getcwd))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parse= r"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was= formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) --=20 2.30.0 --------------85FAA4FF16AFC016520B109D Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-tgl.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-gnu-Add-tgl.patch" =46rom 4fe2b461cc07ffac3de2bd37775e01a217d485df Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:42:24 -0500 Subject: [PATCH 2/3] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 100 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index d05670fc51..d61fdf21eb 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -34,10 +34,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -604,3 +606,101 @@ Telegram instant messager.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (let ((commit "ffb04caca71de0cddf28cd33a4575922900a59ed") + (revision "181")) + (package + (name "tgl") + (version + (git-version "2.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9"= )))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-to (string-append out "/bin")) + (include-to (string-append out "/include")) + (lib-to (string-append out "/lib")) + (source "../source") + (bin-from (string-append source "/bin")) + (lib-from (string-append source "/libs"))) + ;; Install executables. + (with-directory-excursion bin-from + (for-each + (lambda (file) + (install-file file bin-to)) + (list + "generate"))) + ;; Install headers. + (with-directory-excursion source + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl= /crypto")) + (delete-file file)) + (find-files "crypto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl= /auto")) + (delete-file file)) + (find-files "auto" "\\.h$")) + (for-each + (lambda (file) + (install-file file (string-append include-to "/tgl= ")) + (delete-file file)) + (find-files "." "\\.h$"))) + ;; Install libraries. + (for-each + (lambda (file) + (install-file file (string-append lib-to "/tgl"))) + (find-files lib-from "\\.(a|so)$"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+)))) --=20 2.30.0 --------------85FAA4FF16AFC016520B109D Content-Type: text/x-patch; charset=UTF-8; name="0003-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0003-gnu-Add-telegram-cli.patch" =46rom 6f3621496e19b8b71c04e126de22f6f837714d5e Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:49:04 -0500 Subject: [PATCH 3/3] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 93 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index d61fdf21eb..fdafa7fdbf 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -43,14 +43,19 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages telephony) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -704,3 +709,91 @@ a part of telegram-cli, but now being maintained sep= arately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+)))) + +(define-public telegram-cli + (let ((commit "6547c0b21b977b327b3c5e8142963f4bc246187a") + (revision "324")) + (package + (name "telegram-cli") + (version + (git-version "1.3.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6"= )))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=3Dauto") + (string-append "AUTO=3D" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=3Dlibs") + (string-append "LIB=3D" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (source "../source")) + ;; Install client. + (install-file + (string-append source "/bin/telegram-cli") + (string-append out "/bin")) + ;; Install server public-key. + (install-file + (string-append source "/server.pub") + (string-append out "/etc/telegram-cli"))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messen= ger.") + (home-page "https://github.com/vysheng/tg") + (license license:gpl2+)))) --=20 2.30.0 --------------85FAA4FF16AFC016520B109D Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsCG= wMF CwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCX28v0AIZA= QAK CRBfWBZkf4vlUQf2AQD63gsdJzk0w6Gy0AzpJtMa63mbVRAh4xfnxsRNu6SbGQD/UDytGjwnQ= 4nK YsGdoCcA7LM64EkknDvI3ZmlqG7Xuw/NPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DMROf -----END PGP PUBLIC KEY BLOCK----- --------------85FAA4FF16AFC016520B109D-- --VSdSIS4umZQLL5XZacP8WGa6sBi5MKYQZ-- --M2gegrbadimt7N8Swevzvs2VEpzwnwFs4 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBi4JQUDAAAAAAAKCRBfWBZkf4vlUVkH AQCGGbcS4WZOqpA6DZrw2uY/IMPSG7/OxMoYY+sLK0mHzwEA2QMR9i30LQW2MmiLJPTv0wIcCqZX LSfE55iG9487wg8= =DpXk -----END PGP SIGNATURE----- --M2gegrbadimt7N8Swevzvs2VEpzwnwFs4-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 21:33:58 2021 Received: (at 45954) by debbugs.gnu.org; 2 Feb 2021 02:33:58 +0000 Received: from localhost ([127.0.0.1]:33699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6lVt-0004nX-9G for submit@debbugs.gnu.org; Mon, 01 Feb 2021 21:33:58 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:38671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6lVq-0004nH-QB for 45954@debbugs.gnu.org; Mon, 01 Feb 2021 21:33:55 -0500 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 8DFA6240004; Tue, 2 Feb 2021 02:33:46 +0000 (UTC) To: Leo Prikler , 45954@debbugs.gnu.org References: <515542411e38fa921ef936fe116bd3e0fb2a44d1.camel@student.tugraz.at> From: Raghav Gururajan Subject: Re: Telegram-CLI (v7) Message-ID: <596596fa-35d4-a7db-d890-153f51728780@raghavgururajan.name> Date: Mon, 1 Feb 2021 21:33:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 In-Reply-To: <515542411e38fa921ef936fe116bd3e0fb2a44d1.camel@student.tugraz.at> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fuMuzX4zkTKP8Qhpe5X0uRafvfWtzOTnH" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fuMuzX4zkTKP8Qhpe5X0uRafvfWtzOTnH Content-Type: multipart/mixed; boundary="26CM8dhvXUhXlyF2XQYHCQQ7jihNMsbmi"; protected-headers="v1" From: Raghav Gururajan To: Leo Prikler , 45954@debbugs.gnu.org Cc: Jonathan Brielmaier Message-ID: <596596fa-35d4-a7db-d890-153f51728780@raghavgururajan.name> Subject: Re: Telegram-CLI (v7) References: <515542411e38fa921ef936fe116bd3e0fb2a44d1.camel@student.tugraz.at> In-Reply-To: <515542411e38fa921ef936fe116bd3e0fb2a44d1.camel@student.tugraz.at> --26CM8dhvXUhXlyF2XQYHCQQ7jihNMsbmi Content-Type: multipart/mixed; boundary="------------C83D16B55317947517621158" Content-Language: en-US This is a multi-part message in MIME format. --------------C83D16B55317947517621158 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Leo! > I didn't notice this before, but is there a reason to package this > version over 1.3.1? Yeah, there are quite a lot of improvements after the 1.3.1 release. > Please stop trying to use this as a snippet to mean "the root of the > source and build directory". It is extremely obscure and people are > already using "../source" just fine. (Just do an rgrep if you aren't > convinced.) Fixed in v8. >> Hmm. I tried but couldn't come up with a way to do it like that. :( > You can still try harder for v8 ;) I tried different ways but the arguments key-words between gnu and copy=20 differ a lot. I am unable use key-words from both build systems at the=20 same time. Like using #:configure-flags (from gnu) and #:install (from=20 copy). Also, I spent significant amount time to come up the phase I have. So if = there are no critical issues, I would like to keep it as-is. :-) >> The script may only be used on foreign-distro for now. For guix >> system, >> we need to define a service for it. >> >> Also, running telegram-cli doesn't require daemon, but vice-versa. >> The >> daemon is intended to be a complimentary feature to run telegram-cli >> on >> headless server. > In that case, does the daemon script have any value of its own? Given > that the latest release of telegram-cli is about six years old, I doubt= > there is =E2=80=93 foreign distros should already have it in their repo= s and > Guix as a package manager makes no claim to manage system stuff like > services on foreign distros. >=20 >> The file is a run-time script. > That means literally nothing. The wrap phase exists for a reason, some= > programs and script are even wrapped twice. >=20 >> Using (getenv "PATH") will instead use the value of PATH inside the >> build environment. > So you'll inadvertently have some native-inputs in it, is what you're > trying to say? Of course, there are better ways of wrapping PATH, but > in this case wouldn't it be wise to limit it to just the expected > paths? Again, assuming that there is even merit in shipping this file,= > which is yet to be proven. I don't know what I was thinking. XD. It is pretty useless to ship. I=20 removed it in v8. Regards, RG. --------------C83D16B55317947517621158 Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsCG= wMF CwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCX28v0AIZA= QAK CRBfWBZkf4vlUQf2AQD63gsdJzk0w6Gy0AzpJtMa63mbVRAh4xfnxsRNu6SbGQD/UDytGjwnQ= 4nK YsGdoCcA7LM64EkknDvI3ZmlqG7Xuw/NPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DMROf -----END PGP PUBLIC KEY BLOCK----- --------------C83D16B55317947517621158-- --26CM8dhvXUhXlyF2XQYHCQQ7jihNMsbmi-- --fuMuzX4zkTKP8Qhpe5X0uRafvfWtzOTnH Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBi6BwUDAAAAAAAKCRBfWBZkf4vlUWQ/ AQC+r3NiTxZJRhDfdnuFhXmSsObtYTtTGBT7fNLkI5kgCgD/TyOVNNQOBonZeLE2y/ryOjAdPImR o2M7HK8Dd8kH5g4= =4jVT -----END PGP SIGNATURE----- --fuMuzX4zkTKP8Qhpe5X0uRafvfWtzOTnH-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 02 04:51:01 2021 Received: (at 45954) by debbugs.gnu.org; 2 Feb 2021 09:51:01 +0000 Received: from localhost ([127.0.0.1]:34170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6sKr-0007IK-Jg for submit@debbugs.gnu.org; Tue, 02 Feb 2021 04:51:01 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:58454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6sKo-0007I7-BB for 45954@debbugs.gnu.org; Tue, 02 Feb 2021 04:51:00 -0500 Received: from nijino.local (217-149-173-242.nat.highway.telekom.at [217.149.173.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DVKnV4dTGz3w9M; Tue, 2 Feb 2021 10:50:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1612259454; bh=gjza/KFuaD1oGkB1BC5xuG0W2SvxPusCjutW0LunsdI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=HFEyfdQion1WQ20+tPHmyklvjf0A7u+t+oiT2VewrJwDZWks0jGVjO2cPwEEpHYjT DH0/yyvi9XDrILF8tYwK8Tk4JbnfIJDja53T4IptNSyKvWmU2TTARdHmgro+feQH68 /0oLWluP3+JWkulaO5osxyfsVT3txTUYQU60TP40= Message-ID: Subject: Re: Telegram-CLI (v7/v8) From: Leo Prikler To: Raghav Gururajan , 45954@debbugs.gnu.org Date: Tue, 02 Feb 2021 10:50:53 +0100 In-Reply-To: <596596fa-35d4-a7db-d890-153f51728780@raghavgururajan.name> References: <515542411e38fa921ef936fe116bd3e0fb2a44d1.camel@student.tugraz.at> <596596fa-35d4-a7db-d890-153f51728780@raghavgururajan.name> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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: -3.3 (---) Hi Raghav, Am Montag, den 01.02.2021, 21:33 -0500 schrieb Raghav Gururajan: > Hi Leo! > > > I didn't notice this before, but is there a reason to package this > > version over 1.3.1? > > Yeah, there are quite a lot of improvements after the 1.3.1 release. Anything particularly worth noting? > > Please stop trying to use this as a snippet to mean "the root of > > the > > source and build directory". It is extremely obscure and people > > are > > already using "../source" just fine. (Just do an rgrep if you > > aren't > > convinced.) > > Fixed in v8. "Fixed". While it is true, that you're no longer using getenv, binding source for string-append later on is not a particularly elegant solution either. > > > Hmm. I tried but couldn't come up with a way to do it like that. > > > :( > > You can still try harder for v8 ;) > > I tried different ways but the arguments key-words between gnu and > copy > differ a lot. I am unable use key-words from both build systems at > the > same time. Like using #:configure-flags (from gnu) and #:install > (from > copy). Use something along the lines of (replace 'install (lambda args (apply (assoc-ref copy:%standard-phases 'install) #:install-plan args))) Phases should be written in a way, that gratuitous arguments will not be read, but passing it in arguments through the package-arguments fields remains tricky. Though even if it were possible, the snippet above has better locality. > Also, I spent significant amount time to come up the phase I have. So > if > there are no critical issues, I would like to keep it as-is. :-) I personally regard readability as a severe issue in this case. Of course there would be ways of doing this without invoking copy-build- system, but in my personal opinion an install plan would likely be the most concise here. For instance instead of using string-append source everywhere, you could just use a directory excursion. But more importantly, why is it, that all of the stuff you're installing is located in the source directory? Do you even build anything that ends up in the installation? Would it make more sense to have #:out-of-source? #f? In tgl, you use several directory excursions when arguably only one would be needed. Try to simplify your install process, so that you need to bind as few variables as possible. Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 02 20:56:52 2021 Received: (at 45954) by debbugs.gnu.org; 3 Feb 2021 01:56:52 +0000 Received: from localhost ([127.0.0.1]:36448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l77PX-0001yX-Fq for submit@debbugs.gnu.org; Tue, 02 Feb 2021 20:56:52 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l77PU-0001yH-3E for 45954@debbugs.gnu.org; Tue, 02 Feb 2021 20:56:50 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E9CC5C0003; Wed, 3 Feb 2021 01:56:39 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v9) Message-ID: <1828c834-eb18-5ee6-deeb-c3b55bbe248a@raghavgururajan.name> Date: Tue, 2 Feb 2021 20:56:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="08eRjNQwJMQ3Kg6QU6TVmPnnOPWHfeZ1t" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 Cc: Leo Prikler , Jonathan Brielmaier 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 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --08eRjNQwJMQ3Kg6QU6TVmPnnOPWHfeZ1t Content-Type: multipart/mixed; boundary="0F9LjLSL2KxetcFJispm5besMWIWNfkEF"; protected-headers="v1" From: Raghav Gururajan To: 45954@debbugs.gnu.org Cc: Jonathan Brielmaier , Leo Prikler Message-ID: <1828c834-eb18-5ee6-deeb-c3b55bbe248a@raghavgururajan.name> Subject: Telegram-CLI (v9) --0F9LjLSL2KxetcFJispm5besMWIWNfkEF Content-Type: multipart/mixed; boundary="------------2FCD8BFB4611059EDF9BA153" Content-Language: en-US This is a multi-part message in MIME format. --------------2FCD8BFB4611059EDF9BA153 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable --------------2FCD8BFB4611059EDF9BA153 Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-gnu-Add-tl-parser.patch" =46rom d4e345b0d04b0bfd3d60bf9734be4f4e80ef1066 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:38:25 -0500 Subject: [PATCH 1/3] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 66b94baf28..ed0484366c 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -55,6 +55,7 @@ #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) @@ -555,3 +556,49 @@ Telegram instant messager.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "21")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq"= )))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:imported-modules + (,@%cmake-build-system-modules + (guix build copy-build-system)) + #:modules + ((guix build cmake-build-system) + ((guix build copy-build-system) + #:prefix copy:) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("tl-parser")) + ("../source" "include/tl-parser" + #:include-regexp ("\\.h$"))) + args)))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was= formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) --=20 2.30.0 --------------2FCD8BFB4611059EDF9BA153 Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-tgl.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-gnu-Add-tgl.patch" =46rom 0fa448a90e6759c96f0185b275b2c52b5c96aaf3 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:42:24 -0500 Subject: [PATCH 2/3] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 78 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index ed0484366c..526f6878e4 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -34,10 +34,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -602,3 +604,79 @@ Telegram instant messager.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (let ((commit "ffb04caca71de0cddf28cd33a4575922900a59ed") + (revision "181")) + (package + (name "tgl") + (version + (git-version "2.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9"= )))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:imported-modules + (,@%gnu-build-system-modules + (guix build copy-build-system)) + #:modules + ((guix build gnu-build-system) + ((guix build copy-build-system) + #:prefix copy:) + (guix build utils)) + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("bin" "bin") + ("." "include/tgl" + #:include-regexp ("\\.h$")) + ("libs" "lib/tgl")) + args)))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+)))) --=20 2.30.0 --------------2FCD8BFB4611059EDF9BA153 Content-Type: text/x-patch; charset=UTF-8; name="0003-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0003-gnu-Add-telegram-cli.patch" =46rom d9b04976499e2639b2058c0b349f9fa4e2749772 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:49:04 -0500 Subject: [PATCH 3/3] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 97 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 526f6878e4..cbce76b3e9 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -43,14 +43,19 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages telephony) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -680,3 +685,95 @@ a part of telegram-cli, but now being maintained sep= arately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+)))) + +(define-public telegram-cli + (let ((commit "6547c0b21b977b327b3c5e8142963f4bc246187a") + (revision "324")) + (package + (name "telegram-cli") + (version + (git-version "1.3.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6"= )))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:imported-modules + (,@%gnu-build-system-modules + (guix build copy-build-system)) + #:modules + ((guix build gnu-build-system) + ((guix build copy-build-system) + #:prefix copy:) + (guix build utils)) + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=3Dauto") + (string-append "AUTO=3D" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=3Dlibs") + (string-append "LIB=3D" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("bin" "bin") + ("." "etc/telegram-cli" + #:include-regexp ("\\.pub$") + #:exclude ("tg-server.pub"))) + args)))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messen= ger.") + (home-page "https://github.com/vysheng/tg") + (license license:gpl2+)))) --=20 2.30.0 --------------2FCD8BFB4611059EDF9BA153-- --0F9LjLSL2KxetcFJispm5besMWIWNfkEF-- --08eRjNQwJMQ3Kg6QU6TVmPnnOPWHfeZ1t Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBoC1QUDAAAAAAAKCRBfWBZkf4vlUd3I AP9Ul9AP6/1r8iAioht5EgdRg4D7bRCUnq49gXKKwOq9/AD/amC6fdOqa1HSXKW9urJDliyJbdWL YmrTgUZZwFf34Ac= =ROOC -----END PGP SIGNATURE----- --08eRjNQwJMQ3Kg6QU6TVmPnnOPWHfeZ1t-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 02 21:41:27 2021 Received: (at 45954) by debbugs.gnu.org; 3 Feb 2021 02:41:27 +0000 Received: from localhost ([127.0.0.1]:36470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l786h-00032A-91 for submit@debbugs.gnu.org; Tue, 02 Feb 2021 21:41:27 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:37849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l786e-00031v-NH for 45954@debbugs.gnu.org; Tue, 02 Feb 2021 21:41:25 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id AED3C20003; Wed, 3 Feb 2021 02:41:16 +0000 (UTC) To: Leo Prikler , 45954@debbugs.gnu.org References: <515542411e38fa921ef936fe116bd3e0fb2a44d1.camel@student.tugraz.at> <596596fa-35d4-a7db-d890-153f51728780@raghavgururajan.name> From: Raghav Gururajan Subject: Re: Telegram-CLI (v7/v8) Message-ID: Date: Tue, 2 Feb 2021 21:41:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KqY2bthp4SyfLloI8SpNA1zJ1iDEO98s9" X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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.9 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KqY2bthp4SyfLloI8SpNA1zJ1iDEO98s9 Content-Type: multipart/mixed; boundary="pnZAm4p5OAeuxTOO4Tyt5rGSEqibVJApf"; protected-headers="v1" From: Raghav Gururajan To: Leo Prikler , 45954@debbugs.gnu.org Cc: Jonathan Brielmaier Message-ID: Subject: Re: Telegram-CLI (v7/v8) References: <515542411e38fa921ef936fe116bd3e0fb2a44d1.camel@student.tugraz.at> <596596fa-35d4-a7db-d890-153f51728780@raghavgururajan.name> In-Reply-To: --pnZAm4p5OAeuxTOO4Tyt5rGSEqibVJApf Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Leo! > Anything particularly worth noting? Not sure. But based on commit messages, it seems lot of bug fixes. >>> Please stop trying to use this as a snippet to mean "the root of >>> the >>> source and build directory". It is extremely obscure and people >>> are >>> already using "../source" just fine. (Just do an rgrep if you >>> aren't >>> convinced.) >> >> Fixed in v8. > "Fixed". While it is true, that you're no longer using getenv, binding= > source for string-append later on is not a particularly elegant > solution either. >=20 >>>> Hmm. I tried but couldn't come up with a way to do it like that. >>>> :( >>> You can still try harder for v8 ;) >> >> I tried different ways but the arguments key-words between gnu and >> copy >> differ a lot. I am unable use key-words from both build systems at >> the >> same time. Like using #:configure-flags (from gnu) and #:install >> (from >> copy). > Use something along the lines of > (replace 'install > (lambda args > (apply (assoc-ref copy:%standard-phases 'install) > #:install-plan > args))) > Phases should be written in a way, that gratuitous arguments will not > be read, but passing it in arguments through the package-arguments > fields remains tricky. Though even if it were possible, the snippet > above has better locality. >=20 >> Also, I spent significant amount time to come up the phase I have. So >> if >> there are no critical issues, I would like to keep it as-is. :-) > I personally regard readability as a severe issue in this case. Of > course there would be ways of doing this without invoking copy-build- > system, but in my personal opinion an install plan would likely be the > most concise here. >=20 > For instance instead of using string-append source everywhere, you > could just use a directory excursion. But more importantly, why is it,= > that all of the stuff you're installing is located in the source > directory? Do you even build anything that ends up in the > installation? Would it make more sense to have #:out-of-source? #f? >=20 > In tgl, you use several directory excursions when arguably only one > would be needed. Try to simplify your install process, so that you > need to bind as few variables as possible. Agreed. I have updated the pack-def in v9. :-) Regards, RG. --pnZAm4p5OAeuxTOO4Tyt5rGSEqibVJApf-- --KqY2bthp4SyfLloI8SpNA1zJ1iDEO98s9 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBoNSgUDAAAAAAAKCRBfWBZkf4vlUYes AP9HXvPRgcA75CZmLIl2cp+5pvtX1xFhip97TTbD8VQgyQEAwNAmyfBSLp+3kJeB/hYGPQEGWxZ4 gr5fuBDOsha5JwI= =Y71/ -----END PGP SIGNATURE----- --KqY2bthp4SyfLloI8SpNA1zJ1iDEO98s9-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 03:16:54 2021 Received: (at 45954) by debbugs.gnu.org; 3 Feb 2021 08:16:54 +0000 Received: from localhost ([127.0.0.1]:36680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7DLK-00033H-C5 for submit@debbugs.gnu.org; Wed, 03 Feb 2021 03:16:54 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:24616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7DLH-000336-M8 for 45954@debbugs.gnu.org; Wed, 03 Feb 2021 03:16:52 -0500 Received: from nijino.local (217-149-173-242.nat.highway.telekom.at [217.149.173.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DVvfS3tVnz1LBRt; Wed, 3 Feb 2021 09:16:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4DVvfS3tVnz1LBRt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1612340208; bh=Ho3xh7oqoQnWFQkvyFeqqAvEVlNtNfl8BYIiKtKdKpM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=oU79vjo90kU9lkgqimNkP9/kZPbQ1wF4o2k9ibkfhmVgRvJ0dUCem2Ao/SmJLrerf 3GP2/jMlsYk6A97oJ3NwMRqflYBPgElkZTR93238sukBq2RM47X0IFbDwdEh0qGUdb 6NMH6U7XnGPrFYQjzZ0bkpqo9Opq0BF3/tvXdbKY= Message-ID: <4467685fc58b1f3da3305711bc19345819a06d6c.camel@student.tugraz.at> Subject: Re: Telegram-CLI (v9) From: Leo Prikler To: Raghav Gururajan , 45954@debbugs.gnu.org Date: Wed, 03 Feb 2021 09:16:47 +0100 In-Reply-To: <1828c834-eb18-5ee6-deeb-c3b55bbe248a@raghavgururajan.name> References: <1828c834-eb18-5ee6-deeb-c3b55bbe248a@raghavgururajan.name> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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: -3.3 (---) Hello Raghav, Am Dienstag, den 02.02.2021, 20:56 -0500 schrieb Raghav Gururajan: > + (,@%gnu-build-system-modules > + (guix build copy-build-system)) > + #:modules > + ((guix build gnu-build-system) > + ((guix build copy-build-system) > + #:prefix copy:) > + (guix build utils)) It is Guix convention to put the added component in front of the others, i.e. > + ((guix build copy-build-system) > + ,@%gnu-build-system-modules) and so on. Otherwise LGTM so far; I'll be doing functionality tests later today. If you don't send v10 by then, I can also make that change for you. Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 12:50:51 2021 Received: (at 45954) by debbugs.gnu.org; 3 Feb 2021 17:50:51 +0000 Received: from localhost ([127.0.0.1]:38780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7MIk-0008Ac-LG for submit@debbugs.gnu.org; Wed, 03 Feb 2021 12:50:51 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:63335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7MIi-0008AK-3x for 45954@debbugs.gnu.org; Wed, 03 Feb 2021 12:50:49 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 194B640006; Wed, 3 Feb 2021 17:50:39 +0000 (UTC) To: 45954@debbugs.gnu.org From: Raghav Gururajan Subject: Telegram-CLI (v10) Message-ID: <8a4daaa9-2e86-b0fd-cdc5-164621e54037@raghavgururajan.name> Date: Wed, 3 Feb 2021 12:50:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FqwNVnqnzsnV4rhxGQfOTNRuYFd6eb4oi" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45954 Cc: Leo Prikler , Jonathan Brielmaier 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 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FqwNVnqnzsnV4rhxGQfOTNRuYFd6eb4oi Content-Type: multipart/mixed; boundary="5YpgD03zvP4DMsJgdkMqqr0Hqm5AXjqbr"; protected-headers="v1" From: Raghav Gururajan To: 45954@debbugs.gnu.org Cc: Leo Prikler , Jonathan Brielmaier Message-ID: <8a4daaa9-2e86-b0fd-cdc5-164621e54037@raghavgururajan.name> Subject: Telegram-CLI (v10) --5YpgD03zvP4DMsJgdkMqqr0Hqm5AXjqbr Content-Type: multipart/mixed; boundary="------------832F9CF1164E9F307C4DAFB1" Content-Language: en-US This is a multi-part message in MIME format. --------------832F9CF1164E9F307C4DAFB1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable --------------832F9CF1164E9F307C4DAFB1 Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-tl-parser.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-gnu-Add-tl-parser.patch" =46rom d06c864e9afef080e1e12e33e50d751494853d07 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:38:25 -0500 Subject: [PATCH 1/3] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 66b94baf28..fcc22949df 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -55,6 +55,7 @@ #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) @@ -555,3 +556,49 @@ Telegram instant messager.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "21")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq"= )))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:imported-modules + ((guix build copy-build-system) + ,@%cmake-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build cmake-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" + #:include ("tl-parser")) + ("../source" "include/tl-parser" + #:include-regexp ("\\.h$"))) + args)))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was= formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) --=20 2.30.0 --------------832F9CF1164E9F307C4DAFB1 Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-tgl.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-gnu-Add-tgl.patch" =46rom 2026d222aa1f9f376f70717b4a4348bd920107c2 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:42:24 -0500 Subject: [PATCH 2/3] gnu: Add tgl. * gnu/packages/telegram.scm (tgl): New variable. --- gnu/packages/telegram.scm | 78 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index fcc22949df..73eeb80535 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -34,10 +34,12 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages language) + #:use-module (gnu packages libevent) #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) @@ -602,3 +604,79 @@ Telegram instant messager.") a part of telegram-cli, but now being maintained separately.") (home-page "https://github.com/vysheng/tl-parser") (license license:gpl2+)))) + +(define-public tgl + (let ((commit "ffb04caca71de0cddf28cd33a4575922900a59ed") + (revision "181")) + (package + (name "tgl") + (version + (git-version "2.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tgl.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0cf5s7ygslb5klg1qv9qdc3hivhspmvh3zkacyyhd2yyikb5p0f9"= )))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:imported-modules + ((guix build copy-build-system) + ,@%gnu-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build gnu-build-system) + (guix build utils)) + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl" + ;; Enable extended queries system. + "--enable-extf" + ;; Include libevent-based net and timers. + "--enable-libevent") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tl-parser + (lambda _ + (delete-file "Makefile.tl-parser") + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("\\$\\{EXE\\}/tl-parser") + "tl-parser")) + #t)) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("bin" "bin") + ("." "include/tgl" + #:include-regexp ("\\.h$")) + ("libs" "lib/tgl")) + args)))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Library") + (description "TGL is the telegram library for telegram-cli.") + (home-page "https://github.com/vysheng/tgl") + (license license:lgpl2.1+)))) --=20 2.30.0 --------------832F9CF1164E9F307C4DAFB1 Content-Type: text/x-patch; charset=UTF-8; name="0003-gnu-Add-telegram-cli.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0003-gnu-Add-telegram-cli.patch" =46rom 9ea10b70d4fc15f4ccfacc6ee2c64e9aaccbfc47 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Feb 2021 16:49:04 -0500 Subject: [PATCH 3/3] gnu: Add telegram-cli. * gnu/packages/telegram.scm (telegram-cli): New variable. --- gnu/packages/telegram.scm | 97 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 73eeb80535..9b27b86e50 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -43,14 +43,19 @@ #:use-module (gnu packages libreoffice) #:use-module (gnu packages linux) #:use-module (gnu packages lxqt) + #:use-module (gnu packages lua) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages qt) + #:use-module (gnu packages readline) + #:use-module (gnu packages textutils) #:use-module (gnu packages telephony) #:use-module (gnu packages tls) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -680,3 +685,95 @@ a part of telegram-cli, but now being maintained sep= arately.") (description "TGL is the telegram library for telegram-cli.") (home-page "https://github.com/vysheng/tgl") (license license:lgpl2.1+)))) + +(define-public telegram-cli + (let ((commit "6547c0b21b977b327b3c5e8142963f4bc246187a") + (revision "324")) + (package + (name "telegram-cli") + (version + (git-version "1.3.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tg.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0c1w7jgska71jjbvg1y09v52549pwa4zkdjly18yxywn7gayd2p6"= )))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:imported-modules + ((guix build copy-build-system) + ,@%gnu-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build gnu-build-system) + (guix build utils)) + #:configure-flags + (list + ;; Use gcrypt instead of openssl. + "--disable-openssl") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'trigger-bootstrap + (lambda _ + (delete-file "configure") + #t)) + (add-after 'trigger-bootstrap 'patch-tgl-and-tlparser + (lambda* (#:key inputs #:allow-other-keys) + (for-each delete-file + (list + "Makefile.tgl" + "Makefile.tl-parser")) + (substitute* "Makefile.in" + (("include \\$\\{srcdir\\}/Makefile\\.tl-parser") + "") + (("include \\$\\{srcdir\\}/Makefile\\.tgl") + "") + (("-I\\$\\{srcdir\\}/tgl") + (string-append "-I" (assoc-ref inputs "tgl") + "/include/tgl")) + (("AUTO=3Dauto") + (string-append "AUTO=3D" (assoc-ref inputs "tgl") + "/include/tgl/auto")) + (("LIB=3Dlibs") + (string-append "LIB=3D" (assoc-ref inputs "tgl") + "/lib/tgl"))) + #t)) + (replace 'install + (lambda args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("bin" "bin") + ("." "etc/telegram-cli" + #:include-regexp ("\\.pub$") + #:exclude ("tg-server.pub"))) + args)))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("jansson" ,jansson) + ("libconfig" ,libconfig) + ("libevent" ,libevent) + ("libgcrypt" ,libgcrypt) + ("lua" ,lua) + ("openssl" ,openssl) + ("perl" ,perl) + ("python" ,python) + ("readline" ,readline) + ("tgl" ,tgl) + ("tl-parser" ,tl-parser) + ("zlib" ,zlib))) + (synopsis "Telegram Messenger CLI") + (description "TG is the command-line interface for Telegram Messen= ger.") + (home-page "https://github.com/vysheng/tg") + (license license:gpl2+)))) --=20 2.30.0 --------------832F9CF1164E9F307C4DAFB1 Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsCG= wMF CwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCX28v0AIZA= QAK CRBfWBZkf4vlUQf2AQD63gsdJzk0w6Gy0AzpJtMa63mbVRAh4xfnxsRNu6SbGQD/UDytGjwnQ= 4nK YsGdoCcA7LM64EkknDvI3ZmlqG7Xuw/NPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DMROf -----END PGP PUBLIC KEY BLOCK----- --------------832F9CF1164E9F307C4DAFB1-- --5YpgD03zvP4DMsJgdkMqqr0Hqm5AXjqbr-- --FqwNVnqnzsnV4rhxGQfOTNRuYFd6eb4oi Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBribQUDAAAAAAAKCRBfWBZkf4vlUTO3 APoCa8+7RDvs/SC3WGkGM+Y0+iUH9jTvrIZLwgVTLiqGdgD/ebrckbA8s4wi7dndg2IuAcO/5KEy 6Y2Ee300mkOhBgg= =jyFg -----END PGP SIGNATURE----- --FqwNVnqnzsnV4rhxGQfOTNRuYFd6eb4oi-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 12:52:12 2021 Received: (at 45954) by debbugs.gnu.org; 3 Feb 2021 17:52:12 +0000 Received: from localhost ([127.0.0.1]:38790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7MK4-0008DR-E4 for submit@debbugs.gnu.org; Wed, 03 Feb 2021 12:52:12 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:43741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7MK2-0008DB-FH for 45954@debbugs.gnu.org; Wed, 03 Feb 2021 12:52:11 -0500 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay11.mail.gandi.net (Postfix) with ESMTPSA id A1EB6100008; Wed, 3 Feb 2021 17:52:02 +0000 (UTC) To: Leo Prikler , 45954@debbugs.gnu.org References: <1828c834-eb18-5ee6-deeb-c3b55bbe248a@raghavgururajan.name> <4467685fc58b1f3da3305711bc19345819a06d6c.camel@student.tugraz.at> From: Raghav Gururajan Subject: Re: Telegram-CLI (v9) Message-ID: <653d4414-d1df-81ad-759c-f46d3534e8a7@raghavgururajan.name> Date: Wed, 3 Feb 2021 12:52:00 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 In-Reply-To: <4467685fc58b1f3da3305711bc19345819a06d6c.camel@student.tugraz.at> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r86kjOIlaB1inKI9Qau7EGMTmx9oMqSAH" X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 45954 Cc: Jonathan Brielmaier 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.9 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --r86kjOIlaB1inKI9Qau7EGMTmx9oMqSAH Content-Type: multipart/mixed; boundary="cPP84SOJWKpeDjzPZHUD1eUwcifoXV2y9"; protected-headers="v1" From: Raghav Gururajan To: Leo Prikler , 45954@debbugs.gnu.org Cc: Jonathan Brielmaier Message-ID: <653d4414-d1df-81ad-759c-f46d3534e8a7@raghavgururajan.name> Subject: Re: Telegram-CLI (v9) References: <1828c834-eb18-5ee6-deeb-c3b55bbe248a@raghavgururajan.name> <4467685fc58b1f3da3305711bc19345819a06d6c.camel@student.tugraz.at> In-Reply-To: <4467685fc58b1f3da3305711bc19345819a06d6c.camel@student.tugraz.at> --cPP84SOJWKpeDjzPZHUD1eUwcifoXV2y9 Content-Type: multipart/mixed; boundary="------------C73CED88A866DB7FAB05DDC0" Content-Language: en-US This is a multi-part message in MIME format. --------------C73CED88A866DB7FAB05DDC0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Leo! > It is Guix convention to put the added component in front of the > others, i.e. >> + ((guix build copy-build-system) >> + ,@%gnu-build-system-modules) > and so on. Otherwise LGTM so far; I'll be doing functionality tests > later today. If you don't send v10 by then, I can also make that > change for you. I have sent v10. :-) Regards, RG. --------------C73CED88A866DB7FAB05DDC0 Content-Type: application/pgp-keys; name="OpenPGP_0x5F5816647F8BE551.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="OpenPGP_0x5F5816647F8BE551.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX2ZCJBYJKwYBBAHaRw8BAQdAdiUK33kml2dYjrWidlr4/v0pmjpUv7hOsBN/oSl5wx7NL= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJHKSA8cmdAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpMEExYIADsCG= wMF CwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCX28v0AIZA= QAK CRBfWBZkf4vlUQf2AQD63gsdJzk0w6Gy0AzpJtMa63mbVRAh4xfnxsRNu6SbGQD/UDytGjwnQ= 4nK YsGdoCcA7LM64EkknDvI3ZmlqG7Xuw/NPVJhZ2hhdiBHdXJ1cmFqYW4gKEVkdWNhdGlvbikgP= GVk dWNhdGlvbkByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpjMs32pHWsF9YF= mR/ i+VRBQJgE0xGAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i+VRQcQBALNRe= 1V/ 5DKN8ZxyVQlzt4TdGUyNom7xJ6r23ANtcygxAQDBjw6NLXV3aYGDMVVmQPbdAnFiB/x1rpJsA= wB/ 1BSBDc05UmFnaGF2IEd1cnVyYWphbiAoRmluYW5jZSkgPGZpbmFuY2VAcmFnaGF2Z3VydXJha= mFu Lm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNMbwIbAwULCQgHAgYVC= gkI CwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUWnLAP914hb0IzSCiaj+XrcEBaIt/Q+KjRn2fj5A7= V6Z ucJJqwEA64eks7xjLBS3mpTpaGwdDtluJcR7G8XZJJdbdK2YyQ/NN1JhZ2hhdiBHdXJ1cmFqY= W4g KEhlYWx0aCkgPGhlYWx0aEByYWdoYXZndXJ1cmFqYW4ubmFtZT7CkAQTFggAOBYhBM0tXqqpj= Ms3 2pHWsF9YFmR/i+VRBQJgE0yhAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEF9YFmR/i= +VR xdcA/3YxFzlKKHrTguDxE1tBWD31BUYlXWl351j6MB/U+tWdAPwJB8QD8janaddv3U5ZGzswf= hQv GGzx6SLcX0E253uNC80/UmFnaGF2IEd1cnVyYWphbiAoT2NjdXBhdGlvbikgPG9jY3VwYXRpb= 25A cmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY= BNM ugIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUSrlAP0VJw8frvWHAGd6l= Zdy x1v+relUGB4DToqDgIMBQyG58gD+NU5t4h0IY6YaiQ+FPyJzdV62k15d9IDvTMYPvcWIpQPNP= 1Jh Z2hhdiBHdXJ1cmFqYW4gKFJlY3JlYXRpb24pIDxyZWNyZWF0aW9uQHJhZ2hhdmd1cnVyYWphb= i5u YW1lPsKQBBMWCAA4FiEEzS1eqqmMyzfakdawX1gWZH+L5VEFAmATTNkCGwMFCwkIBwIGFQoJC= AsC BBYCAwECHgECF4AACgkQX1gWZH+L5VHhbQD/b6jXWdQfxi+xzrs1+A0lvnihfUgQ0H/r5U2bO= w9d FIkA/0nCh0VJKX+YrySJhWugL7e8ItqwKADh0v05vO6qtlkAzTdSYWdoYXYgR3VydXJhamFuI= ChT b2NpYWwpIDxzb2NpYWxAcmFnaGF2Z3VydXJhamFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN= 9qR 1rBfWBZkf4vlUQUCYBNM8AIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlU= dtv AQCKMxBdxwMUJdyigGWqrTuJUaLVL2dgvqGa0k39nsQA8gD+PH3LsQAaJ98xREKxYXMAszNnJ= RJR xYa9trfixyQbrw7NNVJhZ2hhdiBHdXJ1cmFqYW4gKFRyYWRlKSA8dHJhZGVAcmFnaGF2Z3Vyd= XJh amFuLm5hbWU+wpAEExYIADgWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBNNHQIbAwULCQgHA= gYV CgkICwIEFgIDAQIeAQIXgAAKCRBfWBZkf4vlUQ+9AP0S/6S5PLshS/vz7ezRO2HokruaRiDhg= w0t yRM3LAefSQEA7rEBw9sSUsDgRILGKUi1ZzQq5AJ0F77KOXyurVqnywXOOARfZkIkEgorBgEEA= ZdV AQUBAQdAZgiqc2NhH/myrCCan9x7gKI6QBPZ/1b+Bz/f3n95ozkDAQgHwngEGBYIACAWIQTNL= V6q qYzLN9qR1rBfWBZkf4vlUQUCX2ZCJAIbDAAKCRBfWBZkf4vlUV/OAQD+tMNgmddPSchLpaDPp= sdD hpvra2uTonNUmnfbTvPgpQD/dG72NCT8hBUVqtzxwQmBrXY/nPEUxctYuvu3unUmzQU=3D =3DMROf -----END PGP PUBLIC KEY BLOCK----- --------------C73CED88A866DB7FAB05DDC0-- --cPP84SOJWKpeDjzPZHUD1eUwcifoXV2y9-- --r86kjOIlaB1inKI9Qau7EGMTmx9oMqSAH Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYBriwAUDAAAAAAAKCRBfWBZkf4vlUTFH AQCfpcaCUn3mpl5vhvbOC3YHo32SJWIzlg67lOfifUazrgEA3WVdmcUP02FvCdjmIRprj8m/WRBB gMT7OqPm2AKfNwg= =ARnA -----END PGP SIGNATURE----- --r86kjOIlaB1inKI9Qau7EGMTmx9oMqSAH-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 13:18:27 2021 Received: (at 45954-done) by debbugs.gnu.org; 3 Feb 2021 18:18:27 +0000 Received: from localhost ([127.0.0.1]:38827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7MjS-0000QO-V7 for submit@debbugs.gnu.org; Wed, 03 Feb 2021 13:18:27 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:40781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7MjR-0000QF-AG for 45954-done@debbugs.gnu.org; Wed, 03 Feb 2021 13:18:26 -0500 Received: from nijino.local (217-149-173-242.nat.highway.telekom.at [217.149.173.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DW90Z1HXYz1LBTq; Wed, 3 Feb 2021 19:18:21 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4DW90Z1HXYz1LBTq DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1612376302; bh=qesNXyMY1sMCmeFESH74cd1ZRHUK/Xcd5hrOSNBJpoY=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=BFIdllsw7qzaJcIqZZrWI7vGaPtZymoTPSqk5CGNAXvv/5qe4GrZaglYpGL8pz0Aa 4RVtzoVVVTV1kBS41l6pBLpOL25bdaNrVuRzq/qMYFaRPII6O7TL1fHNRdRM/lKv7Q hDqzgSOiN+TbgPB634JXPYgWlV1MjGI7FDvq4Ci0= Message-ID: Subject: Re: Telegram-CLI (v10) From: Leo Prikler To: Raghav Gururajan , 45954-done@debbugs.gnu.org Date: Wed, 03 Feb 2021 19:18:20 +0100 In-Reply-To: <8a4daaa9-2e86-b0fd-cdc5-164621e54037@raghavgururajan.name> References: <8a4daaa9-2e86-b0fd-cdc5-164621e54037@raghavgururajan.name> Content-Type: text/plain User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45954-done Cc: Jonathan Brielmaier 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: -3.3 (---) Thanks, pushed! From unknown Sat Jun 21 10:18:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 04 Mar 2021 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