From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wJ3PNheP92GtWwAAgWs5BA (envelope-from ) for ; Mon, 31 Jan 2022 08:26:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iFpINBeP92HLTwAA9RJhRA (envelope-from ) for ; Mon, 31 Jan 2022 08:26:15 +0100 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 CA5F330F8D for ; Mon, 31 Jan 2022 08:26:14 +0100 (CET) Received: from localhost ([::1]:56948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nER4n-0001qx-15 for larch@yhetil.org; Mon, 31 Jan 2022 02:26:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEQae-0008Pn-7q for guix-patches@gnu.org; Mon, 31 Jan 2022 01:55:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEQac-0002Ng-T6 for guix-patches@gnu.org; Mon, 31 Jan 2022 01:55:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEQac-0006aQ-OR for guix-patches@gnu.org; Mon, 31 Jan 2022 01:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53648] [PATCH] gnu: fcitx5-gtk: Add GTK 4 support. Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 31 Jan 2022 06:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53648 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53648@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164361209825303 (code B ref -1); Mon, 31 Jan 2022 06:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Jan 2022 06:54:58 +0000 Received: from localhost ([127.0.0.1]:38208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEQaY-0006a2-0U for submit@debbugs.gnu.org; Mon, 31 Jan 2022 01:54:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:46676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEQaW-0006Zv-8z for submit@debbugs.gnu.org; Mon, 31 Jan 2022 01:54:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEQaS-0008MZ-Mg for guix-patches@gnu.org; Mon, 31 Jan 2022 01:54:53 -0500 Received: from mail-m971.mail.163.com ([123.126.97.1]:62070) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEQaL-0002Lh-CP for guix-patches@gnu.org; Mon, 31 Jan 2022 01:54:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=63TuL fkEI51Qt0CVnzHb1Ar2IRkyZJiup3/PHqmXmns=; b=GhJErM67n0YUMV7H1fkMc R5GWS4q+1f1CoUL8NUDO65YSCkJIiRhylkg0YaWoGA+v7bziMwreO0iM1GSUe59D BMiBstRUmohxazNBsAZKeyteJMVuamMZLqvDg7BOGlxm/4tCcb5ungEfVn4/c0l5 IMBTEBRAq5VE2N7Wdkmy7o= Received: from asus-laptop (unknown [27.46.106.14]) by smtp1 (Coremail) with SMTP id GdxpCgDn+4ych_dhPFC4AQ--.26174S2; Mon, 31 Jan 2022 14:54:21 +0800 (CST) User-agent: mu4e 1.6.10; emacs 27.2 From: Zhu Zihao Date: Mon, 31 Jan 2022 14:53:57 +0800 Message-ID: <86ilu09yzs.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: GdxpCgDn+4ych_dhPFC4AQ--.26174S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU1T5LUUUUU X-Originating-IP: [27.46.106.14] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBax2Zr1et2+U94QAAsY 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643613975; 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=63TuLfkEI51Qt0CVnzHb1Ar2IRkyZJiup3/PHqmXmns=; b=RzpwjiQ2HgqsZyiop6ZNSC811qD7BzbIcT0SBjvyEKZrIH0hC3cZTqjYYV+i5+3SG6hFw+ p9aCsYpGOXdSOq53BxYBogDE8V47ewjPUhIeTQOJ3lzG0wgroapxzbdl1Rm7s6058/ua3l u1aKD+fYLWVlRH8QUJ2+4RgdnHm2PPwrS77EVVXxVUgNRKz6564Q/j0Ce5asRviKMrUK7+ ggXk7NJfiFSLLTnuLtzkWXnMPvLV7p8tjrXUGWPB3Jj1SD30rjPDHoHHoX2Fukpwe8pNCR M3+3IXnnrQrSaB9UNiSK2hNHZf0U+382dmoyGLOBG+9CgXlea9G4FgQfJpyGYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643613975; a=rsa-sha256; cv=none; b=XSKOV2Z1MJS1vQGMRpBmUT3PRruyuXgFsXQ+Xs+a32JSrqUZ2EcVrdXnJEw6bdDuQZn7/O PzEhQhqVQGSwYp0fuPdCOzCHQByCy+Oz5vNsF9psKex9XI8h28vENOBsWJTXOjX4r+Ozbe yiMF0wjli6zkp6Rw/Q3vdd5K91/WsoVqlaE6hFg0UEf/6d3DBFYi9PAXibhtByrz+9gRwF +nuL0mCjn7Bwqbf20Wb2kNZKB8ALwCQtp++8XTgTGomPp1o05wg6UkWo0dvdaE4DH8hcxY dwzffUW7iMYQsmerDl5WrPx4XPuwcQ7S8o9xBgFd4I0TZluPt4dT3Kyw+Z7J9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=GhJErM67; 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: -5.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=GhJErM67; 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: CA5F330F8D X-Spam-Score: -5.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: SneNix6RLnjq --=-=-= 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+QUCYfeHlxUcYWxsX2J1dF9s YXN0QDE2My5jb20ACgkQZjl/hPdmk/mEjQD+OI9AiZb4xp9x3ykvPE/ZpaovpzRQ eBcHaVpKBWvN9XgA/2cKeAPNWpVMj8oPxd40aVmAZtmkurc1T54Xdjwm6icD =XKjL -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-fcitx5-gtk-Add-GTK-4-support.patch >From 0c23e8cbbfe8f0548b29176831a4358d41820159 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Mon, 31 Jan 2022 14:51:30 +0800 Subject: [PATCH] gnu: fcitx5-gtk: Add GTK 4 support. * gnu/packages/fcitx5.scm (fcitx5-gtk)[arguments]: : Enable GTK 4 IM module. : In 'patch-install-prefix', patch the install prefix of GTK 4 IM module. [inputs]: Add GTK 4. [outputs]: Add 'gtk4'. --- gnu/packages/fcitx5.scm | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/gnu/packages/fcitx5.scm b/gnu/packages/fcitx5.scm index 92fc0ea171..123418cd4f 100644 --- a/gnu/packages/fcitx5.scm +++ b/gnu/packages/fcitx5.scm @@ -201,19 +201,23 @@ (define-public fcitx5-gtk (list (string-append "-DGOBJECT_INTROSPECTION_GIRDIR=" %output "/share/gir-1.0") (string-append "-DGOBJECT_INTROSPECTION_TYPELIBDIR=" - %output "/lib/girepository-1.0") - ;; TODO: Enable it when Guix has GTK4. - "-DENABLE_GTK4_IM_MODULE=Off") + %output "/lib/girepository-1.0")) #:phases (modify-phases %standard-phases (add-before 'configure 'patch-install-prefix (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) - (gtk2 (assoc-ref outputs "gtk2"))) + (gtk2 (assoc-ref outputs "gtk2")) + (gtk4 (assoc-ref outputs "gtk4"))) ;; Install GTK+ 2 input method module to its own output. (substitute* "gtk2/CMakeLists.txt" (("\\$\\{CMAKE_INSTALL_LIBDIR\\}") - (string-append gtk2 "/lib"))))))))) + (string-append gtk2 "/lib"))) + + ;; Install for GTK 4. + (substitute* "gtk4/CMakeLists.txt" + (("\\$\\{CMAKE_INSTALL_LIBDIR\\}") + (string-append gtk4 "/lib"))))))))) (inputs `(("fcitx5" ,fcitx5) ("fmt" ,fmt) @@ -221,6 +225,7 @@ (define-public fcitx5-gtk ("gobject-introspection" ,gobject-introspection) ("gtk2" ,gtk+-2) ("gtk3" ,gtk+) + ("gtk4" ,gtk) ("glib" ,glib) ("libx11" ,libx11) ("gettext" ,gettext-minimal))) @@ -228,7 +233,7 @@ (define-public fcitx5-gtk (list extra-cmake-modules pkg-config `(,glib "bin"))) ;for glib-genmarshal ;; TODO: Add "lib" output to reduce the closure size of "gtk2". - (outputs '("out" "gtk2")) + (outputs '("out" "gtk2" "gtk4")) (home-page "https://github.com/fcitx/fcitx5-gtk") (synopsis "Glib based D-Bus client and GTK IM module for Fcitx 5") (description "Fcitx5-gtk provides a Glib based D-Bus client and IM module -- 2.34.0 --=-=-= Content-Type: text/plain -- Retrieve my PGP public key: gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F Zihao --=-=-=--