From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MIT5H25GcmeYoAAA62LTzQ:P1 (envelope-from ) for ; Mon, 30 Dec 2024 07:06:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id MIT5H25GcmeYoAAA62LTzQ (envelope-from ) for ; Mon, 30 Dec 2024 08:06:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="J/wuyJyj"; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=KgS+pq2F; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=163.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735542381; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=fmN+8DOi7YlAdO5YYzavaxdUxSHeebuzYAvGTsRazDo=; b=fN2uIZIcOxTAZb2bYX8iokX3L3LSBhyqFqBeqZW2+QLCg1lxH1QWGgX2e9jqsPEyDnhqsV K/+RWDUxL4FZor47513EXLvSMghZB7H40GuAOzAQxPQ8WYyjIiScm3LzSdiBgEz6z0dFvu XPCEuBKxgYYOZfEwQsewvwi4GchW0StFIt5LwRGJ4CDmJKEvRAz03lc2khI/rR0HslxznH wQo88fk361eKD9p/oMnCkL+NTQtuLXvkGpNLgY3hjze2WE22Wl0p2d4/WcOqBs2dUEXteH WWvyvPbatGZWPpQpIN6uFVieZ66Vh6vCWWtnB+CePn8rUnATO7qKueB9jEO+0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="J/wuyJyj"; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=KgS+pq2F; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=163.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735542381; a=rsa-sha256; cv=none; b=t5u8p8ksGqgou9Vb94FdnDbVXXzt+jTBXWZYngqxmBc6FXjJEVD+5MlcHMt9Os/GFUVE11 7IPITLm6DSMyv6h/7HM/Ub10X1lc90Lu6pzCKylT4NKYm/tKKNavjC06chYd0X6fA+bpGu stg0BYAAiYfp4O4dhMRncCO0THFsUK1Z8ZFt5ztoQ/TEkOP/JB7OtEQSZ9ZlFWyWpbhomE biA+9ta+GMMtLVc8OBC6ltT2zt0KcGnuDLrg2pA2WerxCVhedMah1qc08dwTliLeWscns0 XQIh8SRiAKp88ecaXcKSA776Mp5nPNUIbOkHD2t51QbfPxgozvKIOovpLndv/w== 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 58F543E38 for ; Mon, 30 Dec 2024 08:06:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tS9qp-0004rD-EX; Mon, 30 Dec 2024 02:06:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tS9qk-0004np-Um for guix-patches@gnu.org; Mon, 30 Dec 2024 02:06:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tS9qk-0003Z0-JV for guix-patches@gnu.org; Mon, 30 Dec 2024 02:06:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=fmN+8DOi7YlAdO5YYzavaxdUxSHeebuzYAvGTsRazDo=; b=J/wuyJyjt/576A6Tz1swH4/5/bcXvL7zGB5Wmh9nQllUJetOsT9YDyhUZ/O5juz5HMVRIYIJzHxDccG/euacipM+dobjiHUX4cBMis7rNvOdosPn5w4Gw09iHun2hrU7W+B6/xZSERvzNgSitEprqhM4BFQgWSYq3JYXPOhDgnIw2ZDR+nj3llYYnVTS5bEEUIqktOKEqAJMdzE9cBoagqwDvrcj9/DJiNNmZ61H1b6wfBfgvgSV2mlg/Smaf+6xzqzDdCoUL76YWloSGifzZaN0+ecmLNVm3uWVnkjXTUe7mM+IOtg0k6HBFEcEPDS+eoy+VctGndvXoV6Q4d941A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tS9qk-0007ad-Di for guix-patches@gnu.org; Mon, 30 Dec 2024 02:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75186] [PATCH] gnu: Add lightdm-pantheon-greeter. Resent-From: tumashu@163.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Dec 2024 07:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75186 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75186@debbugs.gnu.org Cc: Feng Shu X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173554236129169 (code B ref -1); Mon, 30 Dec 2024 07:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Dec 2024 07:06:01 +0000 Received: from localhost ([127.0.0.1]:57143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tS9qj-0007aJ-8Y for submit@debbugs.gnu.org; Mon, 30 Dec 2024 02:06:01 -0500 Received: from lists.gnu.org ([209.51.188.17]:43028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tS9qb-0007a5-E4 for submit@debbugs.gnu.org; Mon, 30 Dec 2024 02:05:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tS9qb-0004hp-80 for guix-patches@gnu.org; Mon, 30 Dec 2024 02:05:53 -0500 Received: from m16.mail.163.com ([220.197.31.4]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tS9qY-0003Sk-9E for guix-patches@gnu.org; Mon, 30 Dec 2024 02:05:53 -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=fmN+8 DOi7YlAdO5YYzavaxdUxSHeebuzYAvGTsRazDo=; b=KgS+pq2FSVtYD3cQS0g1I JfT1MhMqs5bxotwhwqEYRDGU6SBUR0+zdMTsROQ/Jsm8jKaSidt0M9dutuBzzFuE SxZOcY/lH/XDm+KwrYaXpGUZ0O5fyGDRWCY+G3ZjgAkrnmPyYYHjdx/j3d0+B5BY M5MeX6mNhVeq/eTQLBhd2w= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wC38iw9RnJnorguCg--.52781S2; Mon, 30 Dec 2024 15:05:34 +0800 (CST) From: tumashu@163.com Date: Mon, 30 Dec 2024 15:05:16 +0800 Message-ID: <20241230070516.44067-1-tumashu@163.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wC38iw9RnJnorguCg--.52781S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxCryUtF15Kr1UKw47Aw4rAFb_yoWrJrW3pF WFk3W5Kwn5J3s3Z3yxX3W7KF4Yv393tFyDt3s3ur13Kw45u340vrW2v39xArn7J3Z7Ca4D Ww4Ut3WUCFyDCrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JUnNVDUUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiRRjF1GdyQ9lWJAAAsx Received-SPF: pass client-ip=220.197.31.4; envelope-from=tumashu@163.com; helo=m16.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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 58F543E38 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 0.91 X-Spam-Score: 0.91 X-TUID: 6LgIhCVNi7hC From: Feng Shu * gnu/packages/display-managers.scm (lightdm-pantheon-greeter): New variable. Change-Id: I31611965f4e09d083b1ab9fe39465c31fdb7d638 --- gnu/packages/display-managers.scm | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm index 16d0339701..1c337ad9c7 100644 --- a/gnu/packages/display-managers.scm +++ b/gnu/packages/display-managers.scm @@ -64,6 +64,7 @@ (define-module (gnu packages display-managers) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages libcanberra) #:use-module (gnu packages linux) + #:use-module (gnu packages pantheon) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages qt) @@ -366,6 +367,82 @@ (define-public sugar-light-sddm-theme experience for your users, your family and yourself") (license license:gpl3+))) +(define-public lightdm-pantheon-greeter + (package + (name "lightdm-pantheon-greeter") + ;; Versiton 8.0.0 can not build for mutter < 46 in guix, see: + ;; https://github.com/elementary/greeter/issues/778 + (version "7.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/elementary/greeter") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gz42852j50jk2apk16lxl34zw39knwy6fgkjyhqlgl0q1l6xz4v")))) + (build-system meson-build-system) + (arguments + (list + #:glib-or-gtk? #t + #:parallel-build? #f ; Enable this option will build fail. + #:configure-flags + #~(list + ;; Put the binary under /bin rather than /sbin, so that it gets + ;; wrapped by the glib-or-gtk-wrap phase. + (string-append "--sbindir=" #$output "/bin")) + #:phases + #~(modify-phases %standard-phases + (add-after 'glib-or-gtk-wrap 'custom-wrap + (lambda _ + (for-each (lambda (prog) + (wrap-script (string-append #$output prog) + ;; Wrap GDK_PIXBUF_MODULE_FILE, so that the SVG loader is + ;; available at all times even outside of profiles, such as + ;; when used in the lightdm-service-type. Otherwise, it + ;; wouldn't be able to display its own icons. + `("GDK_PIXBUF_MODULE_FILE" = + (,(string-append #$output "lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"))) + `("XDG_DATA_DIRS" ":" prefix + (,(string-append "/run/current-system/profile/share:" + (getenv "XDG_DATA_DIRS")))) + '("XCURSOR_PATH" ":" prefix + ("/run/current-system/profile/share/icons")))) + '("/bin/io.elementary.greeter" + "/bin/io.elementary.greeter-compositor")))) + (add-after 'install 'fix-.desktop-file + (lambda _ + (substitute* (string-append #$output + "/share/xgreeters/io.elementary.greeter.desktop") + (("Exec=io.elementary.greeter") + ;; NOTE: io.elementary.greeter-compositor do not work in guix + ;; at the moment, for it use wayland. + (string-append "Exec=" #$output "/bin/io.elementary.greeter")))))))) + (native-inputs + (list gettext-minimal + (list glib "bin") + pkg-config + vala)) + (inputs + (list accountsservice + desktop-file-utils + glib + gnome-desktop + gnome-settings-daemon + granite-6 + gtk+ + guile-3.0 + libhandy + libx11 + lightdm + mutter)) + (synopsis "A greeter from the elementary OS project") + (home-page "https://github.com/elementary/greeter") + (description "Login and Lock Screen greeter for elementary OS and +Pantheon, using LightDM.") + (license license:gpl3))) + (define-public lightdm (package (name "lightdm") -- 2.45.2