From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IA7TKz08f2e1LQAA62LTzQ:P1 (envelope-from ) for ; Thu, 09 Jan 2025 03:02:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IA7TKz08f2e1LQAA62LTzQ (envelope-from ) for ; Thu, 09 Jan 2025 04:02:21 +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=YtLbEjCq; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b="eV52N/Fr"; 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=1736391741; 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=S/sJaV/JDiPogyON+UazwrQxZoWQhx2troLJOOOTkL8=; b=tNPm6OA9i6M0aGT+Np+ztnq2CJI/suYydfRWvFDR/g1P/4QgW7sNwpSHiNSSv8g/+z6YvF eziZYXnBRET3B1jVXtM2enDksYuTh+19m8qJAaPpdPyOrGjjvw5JXtraOPWKHNKyNXZPJF u243cj5brlJsApbBV7K3Ri3ETGmlaFSfWnOmiSNLfQAjbhDNvEM2dh68FYNzF2q4ogIwbX DvelBVywodRJnzcwFt44ERklOOobwFA2kuejCgZOiMeGjoPyBJjN7rejyEHqPWNqfQ50/7 6gAV7W+zPKHVORQOxLDwfQShFgGMZPmQFG1K4PdfNJUsHrB5C/4YLlbpGNqlgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=YtLbEjCq; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b="eV52N/Fr"; 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=1736391741; a=rsa-sha256; cv=none; b=idPgVIMD5sI0XGMU1/KkWYpAwwWCPFMfhT4IHL7tCcPslsxv67vKkzgC6wfljJwXteYrEy /It+ZnUl3AZn+suy3fY6HAvNC53gvUTu8aqm4ChZ6xXFoPXOjtKLdC6Hq8+ozwkdv61MNw XBj+zoh65L8gEB3vkdKDCKW/n8DB+1/rTjiqBz7HA9ge6yhJe2LH1lTqgZz+XPI2YvQPLf SzTG8EpdZ3vOK0HnqYIRrWi6ODgGMTU0EnfQ35tGx/PG2a4qvTvpy2SbsJ3jUofW69CRnl NnByOy97PHKscJOjqCZStQxW0aLAkprcI7gd+FDqrwCHuRIcjIhJUMNO5PrpeA== 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 1E47E1DBDD for ; Thu, 09 Jan 2025 04:02:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVio9-0007a9-Cq; Wed, 08 Jan 2025 22:02:06 -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 1tVio6-0007Zt-Py for guix-patches@gnu.org; Wed, 08 Jan 2025 22:02: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 1tVio6-000798-GD for guix-patches@gnu.org; Wed, 08 Jan 2025 22:02: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=S/sJaV/JDiPogyON+UazwrQxZoWQhx2troLJOOOTkL8=; b=YtLbEjCqj2Fl79Ya4Cj8sfQiLoNMBVLBSBbQXCArRCs0coM2T00kGyGH4EbfBlelg4yBAHIJgOWjGKlBZjxBQxhyxEp4nXl1bQ8H0NSKA1UTPYUKP6lMaXDd78JdhPd3eXKBvH00nkB7yotuApqJlIro29MuWJ3J/kYK7SWpLjsXesuE8jcDMvEVMb3tSFA+IFSveMP7JR/Q/kqM79z5S5rvwP2gBqVGjeaWRZEd4X81vcRWLZQOdoYy2s09Hgmrf0LLsxjFS4MUo/ymAgB1iAbROe+WC+YsN6d6WakEO8ZhW/tFowUS60xEzg8wSxxOlNHhwSQaaxOXAHNvtOGCAw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVio5-0002YY-RE for guix-patches@gnu.org; Wed, 08 Jan 2025 22:02:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75449] [PATCH] gnu: Add pi-greeter. Resent-From: tumashu@163.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Jan 2025 03:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75449 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75449@debbugs.gnu.org Cc: Feng Shu X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17363916949783 (code B ref -1); Thu, 09 Jan 2025 03:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jan 2025 03:01:34 +0000 Received: from localhost ([127.0.0.1]:49736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVine-0002Xj-1p for submit@debbugs.gnu.org; Wed, 08 Jan 2025 22:01:34 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60060) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVinb-0002XL-6p for submit@debbugs.gnu.org; Wed, 08 Jan 2025 22:01:33 -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 1tVinT-0007Xp-E7 for guix-patches@gnu.org; Wed, 08 Jan 2025 22:01:23 -0500 Received: from m16.mail.163.com ([220.197.31.2]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVinM-00075w-QI for guix-patches@gnu.org; Wed, 08 Jan 2025 22:01:23 -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=S/sJa V/JDiPogyON+UazwrQxZoWQhx2troLJOOOTkL8=; b=eV52N/FrZ9wgUVASw/Fai 3y6z1p8pSpVgf/f27pKDpq3WE9oCfNvdz7MVIe4KRXb2s5PgeUOMP96fI0ABFbgc /Dhz8CgMG2lHP1uMGl2GvdXO3ikJxFUAcZ2GBe/jbtFqtlvQrBY6AzHrLiMN+4c4 dHYGgjCmv2DYOQGNFcqQYE= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g0-2 (Coremail) with SMTP id _____wD3PyXwO39nkMo3Ew--.9707S2; Thu, 09 Jan 2025 11:01:05 +0800 (CST) From: tumashu@163.com Date: Thu, 9 Jan 2025 11:00:50 +0800 Message-ID: <20250109030050.36184-1-tumashu@163.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wD3PyXwO39nkMo3Ew--.9707S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxCry8AFW3Ww1xGryDuF15Arb_yoWrGF4Dpa yF9F15Gr95Jrn2y3y3XF17KayY9as3Gr1jgwn7Zw12yan8CFy0vry2krZ5GF17A3WxCayU Xa1UJay5uF1DCr7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JU4T5PUUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiYBvP1Gd-OPBYKwAAsD Received-SPF: pass client-ip=220.197.31.2; 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.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -1.41 X-Spam-Score: -1.41 X-Migadu-Queue-Id: 1E47E1DBDD X-Migadu-Scanner: mx10.migadu.com X-TUID: 8Qz1bf91KZDR From: Feng Shu * gnu/packages/display-managers.scm (pi-greeter): New variable. Change-Id: I852019a88a75c06d5e8a215a013b5a6a5c65c57f --- gnu/packages/display-managers.scm | 89 +++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm index cddd3f494f..6e62230db7 100644 --- a/gnu/packages/display-managers.scm +++ b/gnu/packages/display-managers.scm @@ -592,6 +592,95 @@ (define-public lightdm-mini-greeter Display Manager and LightDM GTK3 Greeter.") (license license:gpl3)))) +(define-public pi-greeter + (let ((commit "4acc867b4807000fbd31bafbd33fe35ef1eda39d") + (revision "0")) + (package + (name "pi-greeter") + ;; No git release tag, get version from debian/changelog file. + (version (git-version "0.25" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/raspberrypi-ui/pi-greeter.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0g67211zk57k32wphika72vr3sxiqp0j0z5d7pr9gapddslf4xay")))) + (build-system glib-or-gtk-build-system) + (arguments + (list + #: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") + (string-append "--enable-libindicator") + (string-append "--enable-indicator-services")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'customize-default-config-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "configure.ac" + (("INDICATOR_PKG=indicator-") + "INDICATOR_PKG=indicator3-")) + (substitute* "src/Makefile.am" + ;; Have the default config directory sourced from + ;; /etc/lightdm/pi-greeter.conf, which is where the + ;; lightdm service writes it. + (("\\$\\(sysconfdir)/lightdm/pi-greeter.conf") + "/etc/lightdm/pi-greeter.conf")) + (substitute* "src/pi-greeter.c" + (("/usr/lib/at-spi2-core/at-spi-bus-launcher") + (search-input-file inputs "/libexec/at-spi-bus-launcher"))))) + (add-after 'glib-or-gtk-wrap 'custom-wrap + (lambda _ + (wrap-script (string-append #$output "/bin/pi-greeter") + ;; 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"))))) + (add-after 'install 'fix-.desktop-file + (lambda _ + (substitute* (string-append + #$output + "/share/xgreeters/pi-greeter.desktop") + (("Exec=pi-greeter") + (string-append "Exec=" + (string-append + #$output "/bin/pi-greeter"))))))))) + (native-inputs + (list autoconf + automake + gnome-common + intltool + pkg-config + which)) + (inputs + (list at-spi2-core + gtk+ + gtk-layer-shell + guile-3.0 + gobject-introspection + libindicator + lightdm)) + (synopsis "GTK greeter for Raspberry Pi") + (home-page "https://github.com/raspberrypi-ui/pi-greeter") + (description "A simple GTK-based greeter for the Raspbian LXDE desktop. +This greeter have no session menu, so user should set user-session option in +lightdm config file.") + (license license:gpl2+)))) + (define-public slim (package (name "slim") -- 2.45.2