From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4JCaMOp6sGF5IQEAgWs5BA (envelope-from ) for ; Wed, 08 Dec 2021 10:29:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6NY3LOp6sGH5OgAAbx9fmQ (envelope-from ) for ; Wed, 08 Dec 2021 09:29:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 148EE327A0 for ; Wed, 8 Dec 2021 10:29:14 +0100 (CET) Received: from localhost ([::1]:56100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mutGD-0004tC-4d for larch@yhetil.org; Wed, 08 Dec 2021 04:29:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mutG2-0004qg-QC for guix-patches@gnu.org; Wed, 08 Dec 2021 04:29:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56248) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mutG2-0007Zh-IQ for guix-patches@gnu.org; Wed, 08 Dec 2021 04:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mutG2-0003Lp-GB for guix-patches@gnu.org; Wed, 08 Dec 2021 04:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52371] [PATCH 0/2] Update tdlib and emacs-telega. Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Dec 2021 09:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52371 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52371@debbugs.gnu.org Cc: zevlg@yandex.ru X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163895569512818 (code B ref -1); Wed, 08 Dec 2021 09:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Dec 2021 09:28:15 +0000 Received: from localhost ([127.0.0.1]:39559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mutFD-0003Kd-VH for submit@debbugs.gnu.org; Wed, 08 Dec 2021 04:28:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:56636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mutFC-0003KV-0r for submit@debbugs.gnu.org; Wed, 08 Dec 2021 04:28:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mutFA-00045d-00 for guix-patches@gnu.org; Wed, 08 Dec 2021 04:28:08 -0500 Received: from [2a00:1450:4864:20::232] (port=41812 helo=mail-lj1-x232.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mutF6-0007RW-SO for guix-patches@gnu.org; Wed, 08 Dec 2021 04:28:07 -0500 Received: by mail-lj1-x232.google.com with SMTP id bn20so2859419ljb.8 for ; Wed, 08 Dec 2021 01:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version; bh=f81FdLcyBsrNk0NRpYhWld3xCv9XUdw4ZoRSKkFW0KI=; b=39+N0MPW+Voy2AtcDEM1ilcw83zMxk5qMW4D4kBqlVV44p1oOCZp3cg+n0RbRqd0+N +Tqorp6bjajlkW8551arUdStaRdXFdzfkhpIBNs8/2JQWK7TOUflBcHF6tIQrddDAqoN GU6dTm0zqSPxISpIHS8CfVHEVrUCfTLr71IOdG/VYPKOgCNEccgYwgY3vAyVcTb46KCs PrNwRlV3eH+uWLjcnAwybzVlZ+hLlq+3DBIthuGsnCYObtray5V0isgezCv9nLTk6M5Y NdshKHKZEnCUhrRqMNVHmDsQNyustVIIbzAWPoctrHFuHvP4KlCu2e66InG9OjqhG93t Tfwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=f81FdLcyBsrNk0NRpYhWld3xCv9XUdw4ZoRSKkFW0KI=; b=IAAW0oDSQuF2Eq6QGjNKz8+ESG2a/CgK6X75zUbiqfySAINyX2mrD7r6FD3ZaDYxSU W68WaXPpU66HiO/ojIu8XySUBbOdHD2g2nPJL3ywkL4HRoRm3KgPW08CzPUBhyFvanAq O6xHWEoJj2v3Lj+4MmOUUOTj/msCxhunQkkNn9AAJFzZyvq1guUZ+I9oAcusw3S0Yjak vHiwCSU6OZC08nGhbswFRyjDCHalcCJrPe5mL8s8EHCU/My06viznB396wlMjfkRugNs uglq+mc/zEfxUo6ar0l9VMAlm8iA/nP8MxsJyS35UJoy9k7UFXUSEwKUz8uceDauAHpA tdFQ== X-Gm-Message-State: AOAM533ay8GE2Pk9abIfOKasXPF8ZUArJynUt5rGLWMfy7WryBYG6or3 bEdo518dF1iOZBXVcRX4DWbKGxqKMEpEcw== X-Google-Smtp-Source: ABdhPJz+wzbYLyNB1beWYZW/SyWyjaT6PLh4fQaOQNPYsyi4DDzi/l1J1GLVugr7BLlnSGPVlotpag== X-Received: by 2002:a2e:95d6:: with SMTP id y22mr48104404ljh.5.1638955678472; Wed, 08 Dec 2021 01:27:58 -0800 (PST) Received: from localhost (109-252-187-66.dynamic.spd-mgts.ru. [109.252.187.66]) by smtp.gmail.com with ESMTPSA id bp36sm229309lfb.0.2021.12.08.01.27.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Dec 2021 01:27:57 -0800 (PST) From: Andrew Tropin Date: Wed, 08 Dec 2021 12:27:53 +0300 Message-ID: <875yrzh2ee.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::232 (failed) Received-SPF: none client-ip=2a00:1450:4864:20::232; envelope-from=andrew@trop.in; helo=mail-lj1-x232.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638955754; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=f81FdLcyBsrNk0NRpYhWld3xCv9XUdw4ZoRSKkFW0KI=; b=YbpV6n+DILj6tRXOqm6XeOtHcbPO5yi+XCkFbA21BaQWudwuLoTyLcXx07GKFDdUto6+4Q 7RP3dVhVO3tslE2urwJSavf137Th2+E6GmYfVZXHesyIZewmwiD6NLiufK0rEovXuLT0s9 NEVOI6os2QT9IdybSsNBq4iiMBgWZ9pWE6t8N202DHnuQgAMCYrlz939TWvpQr/ndNv/sH 5943Z2thwM10lL0iAr9XN1iiqVVcueM1XTqyds5wa79adFJtbtkFDnR0L4Xyor0X2MXZRm CbxQxwQP0m//axPnHzHYhB/vWp61G95kzUuxTYLm/QR4gHFS6MkOG5ED6spI5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638955754; a=rsa-sha256; cv=none; b=CG+F5/iTrO3oSp/jj/D1LnDI377gbgps5hejiqXQUEIwS13gn2tHuOjUfOm9GoiZuwHoh6 JcalngE2oGuZUy5ccRnnF7gOGxzbfl44rKVohdgTHN0eEq+S0BIYuv1N1fDsFiGpc6fT8q ix+mV0B6zsONICB9yTAOJ2fecNjlVeFyjm0d7Jasb/Oqde7UrhoP809GrZ7DORU4XLjHpP r3GAfI5jXTfy1UCtC/zO+LEsLqJ5ebqddnt8r9Kb8GIoVAzc6L8+spLE5RLPuv6lG7eMA0 2oHxreWbwarZhXhcZLj+OBQ+HKkDmu9l3zB3VGjOTvp3XYrnVdvYPnTgmBIDAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=39+N0MPW; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=39+N0MPW; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 148EE327A0 X-Spam-Score: -3.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: ab+glmZed+vs --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable tdlib version 1.7.0 is deprecated and doesn't work anymore, there is no 1.7.9 tag in upstream repo, but the version is present in source code. https://github.com/tdlib/td/blob/858078d89fcd2ad1d9860547e3f87c49d0f9abe9/C= MakeLists.txt#L9 emacs-telega 0.7.031 is inteded for tdlib 1.7.0, but because this tdlib version doesn't work anymore, Evgeny (author of telega.el) suggest to use telega version from master branch. I used 0.7.15 tag (closest tag to the version in master branch I found) + revision + commit hash. Without those updates tdlib and all clients based on it doesn't work, it's quite unfortunate behavior from Telegram developers, IMHO of course, but it's necessary to update to non-tagged versions to get it work again. Andrew Tropin (2): gnu: tdlib: Update to 1.7.9-1.858078d. gnu: emacs-telega: Update to 0.7.15-1.acf2d99. gnu/packages/emacs-xyz.scm | 100 +++++++++--------- gnu/packages/messaging.scm | 80 +++++++------- .../emacs-telega-path-placeholder.patch | 49 ++++----- .../patches/emacs-telega-test-env.patch | 30 ++++-- 4 files changed, 134 insertions(+), 125 deletions(-) =2D-=20 2.34.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-tdlib-Update-to-1.7.9-1.858078d.patch Content-Transfer-Encoding: quoted-printable From=209a302410c4cc5ea09e656afdbce50e67127ddd9a Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Tue, 7 Dec 2021 14:15:32 +0300 Subject: [PATCH 1/2] gnu: tdlib: Update to 1.7.9-1.858078d. * gnu/packages/messaging.scm (tdlib): Update to 1.7.9-1.858078d. =2D-- gnu/packages/messaging.scm | 80 +++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 4856df732e..3151ab0b3f 100644 =2D-- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -2648,48 +2648,50 @@ (define-public telegram-purple (license license:gpl2+))) =20 (define-public tdlib =2D (package =2D (name "tdlib") =2D (version "1.7.0") =2D (source (origin =2D (method git-fetch) =2D (uri (git-reference =2D (url "https://github.com/tdlib/td") =2D (commit (string-append "v" version)))) =2D (sha256 =2D (base32 =2D "0dfir57ljcn98mkg061c5642qb93wh2lm1n4nngpl3na9vvfk75i")) =2D (file-name (git-file-name name version)))) =2D (build-system cmake-build-system) =2D (arguments =2D `(#:tests? #t =2D #:configure-flags =2D (list "-DCMAKE_BUILD_TYPE=3DRelease" =2D "-DTD_ENABLE_LTO=3DOFF") ; FIXME: Get LTO to work. =2D #:phases =2D (modify-phases %standard-phases =2D (add-after 'unpack 'remove-failing-tests =2D (lambda _ =2D (substitute* "test/CMakeLists.txt" =2D ;; The test cases are compiled into a distinct binary =2D ;; which uses mtproto.cpp to attempt to connect to =2D ;; a remote server. Removing this file from the sources =2D ;; list disables those specific test cases. =2D (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/mtproto.cpp") "")) =2D #t))))) =2D (native-inputs =2D `(("gperf" ,gperf) =2D ("openssl" ,openssl) =2D ("zlib" ,zlib) =2D ("php" ,php) =2D ("doxygen" ,doxygen))) =2D (synopsis "Cross-platform library for building Telegram clients") =2D (description "Tdlib is a cross-platform library for creating custom + (let ((commit "858078d89fcd2ad1d9860547e3f87c49d0f9abe9") + (revision "1")) + (package + (name "tdlib") + (version (git-version "1.7.9" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tdlib/td") + (commit commit))) + (sha256 + (base32 + "1xwb2nb2ijdnz9q2v2mdaf7fsd2xzycxb3wmmf6dv63wl1h3hcwq")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #t + #:configure-flags + (list "-DCMAKE_BUILD_TYPE=3DRelease" + "-DTD_ENABLE_LTO=3DOFF") ; FIXME: Get LTO to work. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-failing-tests + (lambda _ + (substitute* "test/CMakeLists.txt" + ;; The test cases are compiled into a distinct b= inary + ;; which uses mtproto.cpp to attempt to connect = to + ;; a remote server. Removing this file from the = sources + ;; list disables those specific test cases. + (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/mtproto.cpp= ") "")) + #t))))) + (native-inputs + `(("gperf" ,gperf) + ("openssl" ,openssl) + ("zlib" ,zlib) + ("php" ,php) + ("doxygen" ,doxygen))) + (synopsis "Cross-platform library for building Telegram clients") + (description "Tdlib is a cross-platform library for creating custom Telegram clients following the official Telegram API. It can be easily us= ed from almost any programming language with a C-FFI and features first-class support for high performance Telegram Bot creation.") =2D (home-page "https://core.telegram.org/tdlib") =2D (license license:boost1.0))) + (home-page "https://core.telegram.org/tdlib") + (license license:boost1.0)))) =20 (define-public purple-mm-sms (package =2D-=20 2.34.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-emacs-telega-Update-to-0.7.15-1.acf2d99.patch Content-Transfer-Encoding: quoted-printable From=201e9d59573f7c6c76fb4f2e524d70a043b185a682 Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Tue, 7 Dec 2021 16:05:22 +0300 Subject: [PATCH 2/2] gnu: emacs-telega: Update to 0.7.15-1.acf2d99. * gnu/packages/emacs-xyz.scm (emacs-telega-server): Update to 0.7.15-1.acf2d99. * gnu/packages/patches/emacs-telega-path-placeholder.patch: Match patch with newer source code. * gnu/packages/patches/emacs-telega-test-env.patch: Match patch with newer source code. =2D-- gnu/packages/emacs-xyz.scm | 100 +++++++++--------- .../emacs-telega-path-placeholder.patch | 49 ++++----- .../patches/emacs-telega-test-env.patch | 30 ++++-- 3 files changed, 93 insertions(+), 86 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index e542da0c26..599790bc6e 100644 =2D-- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -27144,55 +27144,57 @@ (define-public emacs-helm-switch-to-repl (license license:gpl3+))) =20 (define-public emacs-telega-server =2D (package =2D (name "emacs-telega-server") =2D (version "0.7.031") =2D (source =2D (origin =2D (method git-fetch) =2D (uri (git-reference =2D (url "https://github.com/zevlg/telega.el") =2D (commit (string-append "v" version)))) =2D (sha256 =2D (base32 "05j82796s4k3yr0igl6hir3p8qj0cw66vvhbpbcy28d6q9v9vjjz")) =2D (file-name (git-file-name "emacs-telega" version)) =2D (patches =2D (search-patches "emacs-telega-path-placeholder.patch" =2D "emacs-telega-test-env.patch")))) =2D (build-system gnu-build-system) =2D (arguments =2D `(#:make-flags =2D (list (string-append "CC=3D" ,(cc-for-target)) =2D (string-append "INSTALL_PREFIX=3D" =2D (assoc-ref %outputs "out") "/bin")) =2D #:phases =2D (modify-phases %standard-phases =2D (add-before 'configure 'enter-subdirectory =2D (lambda _ (chdir "server") #t)) =2D (replace 'configure =2D (lambda* (#:key outputs #:allow-other-keys) =2D (let ((out (assoc-ref outputs "out"))) =2D (substitute* "run_tests.py" =2D (("^(TELEGA_SERVER =3D ).*$" _all prefix) =2D (string-append prefix =2D "\"" out "/bin/telega-server\"\n")))))) =2D (delete 'check) =2D (add-after 'install 'check =2D (assoc-ref %standard-phases 'check)) =2D (add-before 'install-license-files 'leave-subdirectory =2D (lambda _ (chdir "..") #t))) =2D #:test-target "test")) =2D (inputs =2D `(("tdlib" ,tdlib) =2D ("libappindicator" ,libappindicator))) =2D (native-inputs =2D `(("python" ,python) =2D ("pkg-config" ,pkg-config))) =2D (home-page "https://zevlg.github.io/telega.el/") =2D (synopsis "Server process of Telega") =2D (description "Telega-server is helper program to interact with Teleg= ram + (let ((commit "acf2d99df25f15c104cd13d5bbdcb17078a353f9") + (revision "1")) + (package + (name "emacs-telega-server") + (version (git-version "0.7.15" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zevlg/telega.el") + (commit commit))) + (sha256 + (base32 "1wxx77whwl5fw2fbq6k7082gqn6srvy8vckhdn0qd75xqm4axf93")) + (file-name (git-file-name "emacs-telega" version)) + (patches + (search-patches "emacs-telega-path-placeholder.patch" + "emacs-telega-test-env.patch")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list (string-append "CC=3D" ,(cc-for-target)) + (string-append "INSTALL_PREFIX=3D" + (assoc-ref %outputs "out") "/bin")) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'enter-subdirectory + (lambda _ (chdir "server") #t)) + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "run_tests.py" + (("^(TELEGA_SERVER =3D ).*$" _all prefix) + (string-append prefix + "\"" out "/bin/telega-server\"\n")))))) + (delete 'check) + (add-after 'install 'check + (assoc-ref %standard-phases 'check)) + (add-before 'install-license-files 'leave-subdirectory + (lambda _ (chdir "..") #t))) + #:test-target "test")) + (inputs + `(("tdlib" ,tdlib) + ("libappindicator" ,libappindicator))) + (native-inputs + `(("python" ,python) + ("pkg-config" ,pkg-config))) + (home-page "https://zevlg.github.io/telega.el/") + (synopsis "Server process of Telega") + (description "Telega-server is helper program to interact with Teleg= ram service, and connect it with Emacs via inter-process communication.") =2D (license license:gpl3+))) + (license license:gpl3+)))) =20 (define-public emacs-telega (package @@ -27226,7 +27228,7 @@ (define-public emacs-telega "\"" ffmpeg-bin "\")")))))) (add-after 'unpack 'configure (lambda* (#:key inputs outputs #:allow-other-keys) =2D (substitute* "telega-server.el" + (substitute* "telega-customize.el" (("@TELEGA_SERVER_BIN@") (string-append (assoc-ref inputs "emacs-telega-server") "/bin/telega-server"))) diff --git a/gnu/packages/patches/emacs-telega-path-placeholder.patch b/gnu= /packages/patches/emacs-telega-path-placeholder.patch index c20be36712..5829edd22a 100644 =2D-- a/gnu/packages/patches/emacs-telega-path-placeholder.patch +++ b/gnu/packages/patches/emacs-telega-path-placeholder.patch @@ -1,36 +1,31 @@ =2DFrom 865b8c553722a971c68742c2e849e41eb0e2360c Mon Sep 17 00:00:00 2001 =2DFrom: Zhu Zihao =2DDate: Thu, 24 Jun 2021 23:43:50 +0800 =2DSubject: [PATCH] Replace code that search path with placeholder for =2D configuration. +From bf95de21faa623e48bca00d6a2c9b33ab2c5d812 Mon Sep 17 00:00:00 2001 +From: Andrew Tropin +Date: Wed, 8 Dec 2021 11:01:31 +0300 +Subject: [PATCH] Use absolute path for telega-server-command. =20 --- =2D telega-server.el | 6 +----- =2D telega-util.el | 2 +- =2D 2 files changed, 2 insertions(+), 6 deletions(-) + telega-customize.el | 2 +- + telega-util.el | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) =20 =2Ddiff --git a/telega-server.el b/telega-server.el =2Dindex 999125d..0fa0817 100644 =2D--- a/telega-server.el =2D+++ b/telega-server.el =2D@@ -142,11 +142,7 @@ Otherwise query user about building flags." =2D (defun telega-server--find-bin () =2D "Find telega-server executable. =2D Raise error if not found." =2D- (let ((exec-path (cons telega-directory exec-path))) =2D- (or (executable-find "telega-server") =2D- (progn (telega-server-build) =2D- (executable-find "telega-server")) =2D- (error "`telega-server' not found in exec-path")))) =2D+ "@TELEGA_SERVER_BIN@") +diff --git a/telega-customize.el b/telega-customize.el +index 0af343f..cc2938c 100644 +--- a/telega-customize.el ++++ b/telega-customize.el +@@ -591,7 +591,7 @@ In range [1..3]. Use 1." + :prefix "telega-server-" + :group 'telega) =20=20 =2D (defun telega-server-version () =2D "Return telega-server version." +-(defcustom telega-server-command "telega-server" ++(defcustom telega-server-command "@TELEGA_SERVER_BIN@" + "Command to run as telega server. + It should be absolute path or binary file searchable in `exec-path'." + :type 'string diff --git a/telega-util.el b/telega-util.el =2Dindex 73a46b1..f53e20a 100644 +index 6340c27..01e3cb7 100644 --- a/telega-util.el +++ b/telega-util.el =2D@@ -464,7 +464,7 @@ N can't be 0." +@@ -587,7 +587,7 @@ N can't be 0." =20=20 (defun telega-etc-file (filename) "Return absolute path to FILENAME from etc/ directory in telega." @@ -40,5 +35,5 @@ index 73a46b1..f53e20a 100644 (defun telega-link-props (link-type link-to &optional face) "Generate props for link button openable with `telega-link--button-acti= on'." --=20 =2D2.32.0 +2.34.0 =20 diff --git a/gnu/packages/patches/emacs-telega-test-env.patch b/gnu/package= s/patches/emacs-telega-test-env.patch index 75fe2e12fc..c6b02be6ff 100644 =2D-- a/gnu/packages/patches/emacs-telega-test-env.patch +++ b/gnu/packages/patches/emacs-telega-test-env.patch @@ -1,14 +1,24 @@ =2DTest Emacs environment on startup. +From 237ea2471bb6521390bbac174ac2a8a5e9683e4d Mon Sep 17 00:00:00 2001 +From: Andrew Tropin +Date: Tue, 7 Dec 2021 16:20:38 +0300 +Subject: [PATCH] Test Emacs environment on startup. =20 =2DPatch by Diego N. Barbato +--- + telega.el | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) =20 =2D--- a/telega.el 2020-02-07 17:07:18.549970090 +0100 =2D+++ b/telega.el 2020-02-07 17:10:08.383499765 +0100 =2D@@ -82,6 +82,7 @@ =2D "Start telegramming. =2D If prefix ARG is given, then will not pop to telega root buffer." +diff --git a/telega.el b/telega.el +index d6b28b5..40854ec 100644 +--- a/telega.el ++++ b/telega.el +@@ -181,7 +181,7 @@ can't write to `telega-server-logfile'" logfile-dir))) + Pop to root buffer. + If `\\[universal-argument]' is specified, then do not pop to root buffer." (interactive "P") +- + (telega-test-env t) =2D (telega--create-hier) =2D=20 =2D (unless (telega-server-live-p) + ;; For multiple accounts setup possibly select (if there is no + ;; default account declared) an account to use + (if (and telega-accounts (not (telega-account-current))) +--=20 +2.34.0 =2D-=20 2.34.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmGwepkPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wjIMQAJah1k1Xgd3fwqzWmXKAwMvXHElkdtP83Oj+ 3Fs+u5aoZx32L3e56b6lbZ8KsmLybwAkUkHHe6fSA+4QL+uPm3rRsZbcILGVN5Ut IUKklDz5r+gllP4Fiha2xM5FyYAMFv+VfJf+Ua61AwItjqhe45ApiqFGeyWaiU9L 7GCAnK17zJyMwwCWD+IVR4r0FN/QqbV0vBOs1qwOnTORj84Pdu9sd6KG1WjGOrbZ TUU6LWLOc8xTVEXWpxdJ/h+luc2FGZtdT+Lt/aWRyu9kgLHU3qdsU8QhI8gEscX2 YSBokrCKSjdKhdRPVHeD/KyN5uGXUm2sHrLXj2fHA6erA4di2bwh50Yey+jjm6sn Qnd9JEPUKuHgMQ26VsgUQXjGB3l2QJB51IVISWPu/FQ4y2frDK8BZOFuYL9Xj9J3 Jrt/ZEZ5Kvs1V5YHhRpk01RtF8OxR4uJSl+U+f66FRacDtlws6+mdp22dWJ0BLTV 8nOdrK104E9p3TqdzbGJJi/+pEypT0q7qlMkOo+7+9aaei96J2QxNFsHZ3nBqDNb xdKdck/TgKkdOUNDizaJhYC8YvP955esEMo3ilcBwNKLu8mZBq6dyRy36WYgKNWd TviKFVYzgnEr2PN5Sv8CYCmrhCyWRHVvPMChWOklj2RHUJX3n4+SS5vhDFv/2Sww V7XKJzk0 =hjtw -----END PGP SIGNATURE----- --==-=-=--