From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sBMHJvOJ7mKTjgAAbAwnHQ (envelope-from ) for ; Sat, 06 Aug 2022 17:34:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sJ3wJfOJ7mJtmwAAauVa8A (envelope-from ) for ; Sat, 06 Aug 2022 17:34:11 +0200 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 5FD41339B0 for ; Sat, 6 Aug 2022 17:34:11 +0200 (CEST) Received: from localhost ([::1]:47276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKLoY-0005qW-HW for larch@yhetil.org; Sat, 06 Aug 2022 11:34:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKLoR-0005kA-IB for guix-patches@gnu.org; Sat, 06 Aug 2022 11:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKLoR-00038Z-7J for guix-patches@gnu.org; Sat, 06 Aug 2022 11:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKLoP-0005n5-Sc for guix-patches@gnu.org; Sat, 06 Aug 2022 11:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57017] [PATCH]: gnu: tdlib: Update to 1.8.4. Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Aug 2022 15:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57017 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57017@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.165979999622202 (code B ref -1); Sat, 06 Aug 2022 15:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2022 15:33:16 +0000 Received: from localhost ([127.0.0.1]:35283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKLnf-0005m2-Ry for submit@debbugs.gnu.org; Sat, 06 Aug 2022 11:33:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:60036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKLnd-0005ls-1K for submit@debbugs.gnu.org; Sat, 06 Aug 2022 11:33:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKLnb-0003vn-SF for guix-patches@gnu.org; Sat, 06 Aug 2022 11:33:12 -0400 Received: from mail-m971.mail.163.com ([123.126.97.1]:61319) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKLnV-00033j-8b for guix-patches@gnu.org; Sat, 06 Aug 2022 11:33:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=tvaYd TzzvNJz6BX4s+ldRUVqpV7bOc43LjImFguCUsA=; b=aIv7kiGnYG8FLVpoSRvOf tRmqPsiOgApNURSFDN68QTqxVJXYmepU715vbGhXDbMzD/HSpKvxS42vAycc8yMd RE4BHJLk6Gy88XXVuCAGW9FYqHm/BJs4Y2m1v7DhMkiRZIZVebClchCuggsXk/bc PDNyeEjZP8dW+KSBk52RRs= Received: from asus-laptop (unknown [163.125.249.234]) by smtp1 (Coremail) with SMTP id GdxpCgC3R7mrie5iZnl5TA--.4083S2; Sat, 06 Aug 2022 23:32:59 +0800 (CST) User-agent: mu4e 1.6.11; emacs 29.0.50 From: Zhu Zihao Date: Sat, 06 Aug 2022 23:30:19 +0800 Message-ID: <86a68hgzfb.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: GdxpCgC3R7mrie5iZnl5TA--.4083S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4RplkaUUUUU X-Originating-IP: [163.125.249.234] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBLwxVr2Hmn5d6LQAAsB Received-SPF: pass client-ip=123.126.97.1; envelope-from=all_but_last@163.com; helo=mail-m971.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659800051; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=tvaYdTzzvNJz6BX4s+ldRUVqpV7bOc43LjImFguCUsA=; b=ZZEJShrmeBD8/9+xnsMquR42vbB3C3VKeyzeBQCmfaxIp3qmxIjCHmA2pjouxJZ6k2fm1u +ckrcm59gbvt2m2Aa87f29wP9NFIjmiLsObuA0E9eeGznBNckoOhMlcYTmEjSvMARb3w55 JWWCYi1XN48x8goXo6aqUXt+vsLXOUvSScK1BHREZk9M0IAGS3tEbbYQrJvLopM+NL4Lod lSfkUM2nA+aFdhYDTUJPD54CsuIZLSRP2XvDi/pUe6k7JO8ui6zw/o5kaGWUNsZqjrkJ55 w8YpvPk+6/3nxcZMwi//IBq58eU6rMfynoZ5UcVyYRbxkVIdb3FuDN30ZHT5vQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659800051; a=rsa-sha256; cv=none; b=SoCArD5jDgqq2gifqWPJ+kwdDwe1y9bkk1dLCiQ0FRBonjQlMnVZY/WeyrfGQ+UrSs86Hh U5BBdRi2P4nubT3BJiN6gfRbfJ9+Clu1x7OmssaK44ZYJP/j+NBR7AdK1vMjYaYrCg7RtY 3g+cLTDTGnceiSHrm3UFCPf4hg2YIJSQC2pXMTojQAY4nBub3kuQnN1Tcv94dUBZ7T825e WhZUpJTzx0/ydNCt3erAXxyQXo0x6BNYWahi/je4GoAXbyqC8wQsasl6BvUq47u4WE+AwC feYv8lCVt/VrNQExOPRmW334ocFehgkkOM0OLYTE20BaDiTs5zv9hEOCL6K2Xw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=aIv7kiGn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=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: 4.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=aIv7kiGn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=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: 5FD41339B0 X-Spam-Score: 4.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: ed50BRhfupeo --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIsEARYIADMWIQRefA5qkqvnKdl/GTlmOX+E92aT+QUCYu6JqBUcYWxsX2J1dF9s YXN0QDE2My5jb20ACgkQZjl/hPdmk/krigD+Ogfho6IS6SAcvcdjMBFnfm+nR/DM psXSbQpubH3G2GABAOVyxxgZplMxLJbAhgZs3Eh//ivVV/ju5HiwCQbmJZUN =8RQz -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-tdlib-Use-G-expressions.patch >From 0037a0f2847fe39846c5a03139ef1be5b0a45155 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sat, 6 Aug 2022 23:10:56 +0800 Subject: [PATCH 1/2] gnu: tdlib: Use G-expressions. * gnu/packages/messaging.scm (tdlib)[arguments]: Use G-expressions. --- gnu/packages/messaging.scm | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 2f61a8f783..aa15bf5b53 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -2665,19 +2665,20 @@ (define-public tdlib (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments - `(#:configure-flags - (list "-DCMAKE_BUILD_TYPE=Release" - "-DTD_ENABLE_LTO=OFF") ; 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 binary - ;; 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") ""))))))) + (list + #:configure-flags + #~(list "-DCMAKE_BUILD_TYPE=Release" + "-DTD_ENABLE_LTO=OFF") ; 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 binary + ;; 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") ""))))))) (native-inputs (list gperf openssl zlib php doxygen)) (synopsis "Cross-platform library for building Telegram clients") -- 2.37.1 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-tdlib-Update-to-1.8.4.patch >From 45ff40bc27f6cacba976814841c90e8572118302 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sat, 6 Aug 2022 23:12:17 +0800 Subject: [PATCH 2/2] gnu: tdlib: Update to 1.8.4. * gnu/packages/messaging.scm (tdlib): Update to 1.8.4. <#:configure-flags>: Enable LTO. Move build type settings to #:build-type arguments. <#:build-type>: Use "Release build". --- gnu/packages/messaging.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index aa15bf5b53..89ba419f18 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -2653,22 +2653,20 @@ (define-public telegram-purple (define-public tdlib (package (name "tdlib") - (version "1.8.0") + (version "1.8.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/tdlib/td") - (commit (string-append "v" version)))) + (commit "7eabd8ca60de025e45e99d4e5edd39f4ebd9467e"))) (sha256 - (base32 "19psqpyh9a2kzfdhgqkirpif4x8pzy89phvi59dq155y30a3661q")) + (base32 "1chs0ibghjj275v9arsn3k68ppblpm7ysqk0za9kya5vdnldlld5")) (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments (list - #:configure-flags - #~(list "-DCMAKE_BUILD_TYPE=Release" - "-DTD_ENABLE_LTO=OFF") ; FIXME: Get LTO to work. + #:build-type "Release" #:phases #~(modify-phases %standard-phases (add-after 'unpack 'remove-failing-tests -- 2.37.1 --=-=-= Content-Type: text/plain -- Retrieve my PGP public key: gpg --recv-keys 481F5EEEBA425ADC13247C76A6E672D981B8E744 Zihao --=-=-=--