From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id oETVHexLDGbJUgAA62LTzQ:P1 (envelope-from ) for ; Tue, 02 Apr 2024 20:18:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oETVHexLDGbJUgAA62LTzQ (envelope-from ) for ; Tue, 02 Apr 2024 20:18:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=DJipQz1a; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712081900; a=rsa-sha256; cv=none; b=NPMvR7Irb4GMe5J4CYwoQ8c+L+DksnuBiIzJodbD+Lx79Qjtg3aGxpS7A9PCs8chf1nPux CVQD/xe17kN0JKVbg2Gk0BrYdsLiPQ/NZ1JEkTz8dODGAyA7j8IbYACZBCDslkPoaYa7Tn Bpmw1irqeFVTJ9VrvAZoCITid5UFCORwwlczde4+bMmRELzBiLspRBy/lq8HhuRJx/WSDC eqqW8PhpEgAnkWvvKzXON2u0XFUSnqoyFJiySxQqSi3N4YPX+2pmEIjkwG8mAZxBJv4TPe Z7tbTzBi8KBD/ToZf2VgRNFllCeayWqjrBKzfzl9YICg6AmEEmhVBXSJiTfvvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=DJipQz1a; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712081900; 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-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=vF6RIm494V5fZq91hGn8+dMhmzS/nJMGJ+Ui8WTzBg8=; b=EnL8mFn3nJFQ0rKCLVn3Xh/mvqyFQ0Tga6/u3gcIfrYNg81x+P4cz6kq+NSuxiZXXT2QbQ R4ULbDZOhR4K2V59gp8u9dE5ucmG7GDByq5QtGSN/q5SHL91ijebBALOXR6jpN7W5QLP9N maW22znYSBA6+7eNMiApVN0vmlQrs56Vo76WdP2HLgqQwHeENh3CVmmoVED4gsE1zbu/uG CxLp5WZh1akwkDGUO48WFJJ2e3+qhYTdwB4594hyY2MkOSQ8SOWOgjZ2By5ZNQ/QXk8aIS PVwpMEHRgr34IYNUSQsKfkBJSFHWqa5B2M6BmW4uxAuvTUl4CsFEFOFgwuBKOA== 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 273F96158F for ; Tue, 2 Apr 2024 20:18:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrigx-0003u1-KF; Tue, 02 Apr 2024 14:17:03 -0400 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 1rrigu-0003rt-4Y for guix-patches@gnu.org; Tue, 02 Apr 2024 14:17:00 -0400 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 1rrigt-00070d-Rh for guix-patches@gnu.org; Tue, 02 Apr 2024 14:16:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrigx-0003hA-Kk for guix-patches@gnu.org; Tue, 02 Apr 2024 14:17:03 -0400 Subject: bug#69876: [PATCH] gnu: greetd: Fix cross-compilation. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 02 Apr 2024 18:17:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 69876 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: dan Cc: 69876-done@debbugs.gnu.org Received: via spool by 69876-done@debbugs.gnu.org id=D69876.171208181414095 (code D ref 69876); Tue, 02 Apr 2024 18:17:03 +0000 Received: (at 69876-done) by debbugs.gnu.org; 2 Apr 2024 18:16:54 +0000 Received: from localhost ([127.0.0.1]:56219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrigm-0003fF-Be for submit@debbugs.gnu.org; Tue, 02 Apr 2024 14:16:54 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:60536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrigj-0003eF-Gk for 69876-done@debbugs.gnu.org; Tue, 02 Apr 2024 14:16:51 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-415515178ceso28196585e9.0 for <69876-done@debbugs.gnu.org>; Tue, 02 Apr 2024 11:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712081800; x=1712686600; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=vF6RIm494V5fZq91hGn8+dMhmzS/nJMGJ+Ui8WTzBg8=; b=DJipQz1a9V7q3QISCiphIrYY9D0s1Z0MekRLxCDVXYh+X1wJjD+G5CbGzYtionvrTT 3qotfX2zySjOgmBWe2Z3ER2WsIIoW2YCGUFKGhBQ2AP10omKaq628Q5k+HcotDIXyIy1 Z4VpQhCWPdLxPv4MLalb7sQXAdxIoU5m9nB69nAYWqod1HcrFMzNDHRtgy83rLXaQO4t THDx6qbzhDCITkizvBPPozhKknVlnBn0XMjhFIWvP90x/WGPyBPX8QcQzIzUqOoU1tG+ xkf5PBqFZbGUCPggRReqC8aeeoVifq1GvtkRiCuURziWkHF3Fev/oYftEMoHsIU0INNF QyTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712081800; x=1712686600; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vF6RIm494V5fZq91hGn8+dMhmzS/nJMGJ+Ui8WTzBg8=; b=G2l8BeArf5Gg/xY1v0kwCyr2cjlOzbOVREcSYnb2psEOI+MbP349Jbct8nrnSeA4mJ A9+W1K/IdQrrC2wYlGz63Uzqv0/9AKG1A9dnm4l7icMY5sxhcoRWhCx/1Y38wilWIdjg vdq1eo4m+QAB4KCuU9Dn0Nx5yqExuh06VjdYyirD+P4rzjACTOfhoD4I6AoOAagzePFb 00h39/wJ6NnAmPnlCEAxqmIdon4CyJ4dGgpIiAeQ1aGjeREz91sd3nHK8mP1o4Xf38Q5 uGu8vJgNnnCBeI23GACXlf5cuaDmyCf/dHguN56tlNdcAP5XdHTqT+U4hWff2PKRPf5l h4yg== X-Gm-Message-State: AOJu0YxvVIwcmJPMPmLeKFtjfZDIAoR6ptSqr67DltvDo+LwqpCOMVmT Zv4We40x1h1xzD/rcGw7hCU8lnOEfBa9LtICoHkKE3nlt2FmZfWL7RVqvYPgPTAuCQ== X-Google-Smtp-Source: AGHT+IGbm8GtTyMy/ZnhFxLS6w8Iddgg5qHz8/HeSNB4jU1Wqflxo7vAa+8fGbY1UbjZOdWdgEv+Jg== X-Received: by 2002:a5d:698e:0:b0:343:8176:9861 with SMTP id g14-20020a5d698e000000b0034381769861mr501458wru.33.1712081799585; Tue, 02 Apr 2024 11:16:39 -0700 (PDT) Received: from localhost ([141.226.12.177]) by smtp.gmail.com with ESMTPSA id b16-20020a5d5510000000b00341cfa5f16fsm1347181wrv.30.2024.04.02.11.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 11:16:39 -0700 (PDT) Date: Tue, 2 Apr 2024 21:16:38 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , dan , 69876-done@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="e81WZY72VnWRtAEX" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -3.95 X-Migadu-Queue-Id: 273F96158F X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.95 X-TUID: 8lLqDBry5iQb --e81WZY72VnWRtAEX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I had to make a small tweak to make it just for %current-target-system, but otherwise pushed the patch. Thanks! starting phase `install' error: in phase 'install': uncaught exception: system-error "copy-file" "~A" ("No such file or directory") (2) phase `install' failed after 0.0 seconds Backtrace: 9 (primitive-load "/gnu/store/y7qa7srz6bmiad70wryfn2w6m4r=E2=80= =A6") In guix/build/gnu-build-system.scm: 908:2 8 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #) In ice-9/boot-9.scm: 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) In srfi/srfi-1.scm: 634:9 6 (for-each # =E2=80=A6) In ice-9/boot-9.scm: 1752:10 5 (with-exception-handler _ _ #:unwind? _ # _) In guix/build/gnu-build-system.scm: 929:23 4 (_) In ice-9/eval.scm: 619:8 3 (_ #(#(#(#(#(#(#(#(#(#(#(=E2=80=A6) =E2=80=A6) =E2=80=A6) =E2= =80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) = =E2=80=A6)) In unknown file: 2 (copy-file "target/x86_64-unknown-linux-gnu/release/gr=E2=80= =A6" =E2=80=A6) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure copy-file: No such file or directory On Tue, Mar 19, 2024 at 02:39:07AM +0800, dan wrote: > * gnu/packages/admin.scm (greetd): Fix cross-compilation. > [inputs][native-inputs]: Move linux-pam from native-inputs to inputs. > [arguments]<#:phases>: Set release directory based on target. >=20 > Change-Id: I822f8f215677bc951b21e46dddf44954a43df58f > --- > gnu/packages/admin.scm | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) >=20 > diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm > index 2b94b1e17a..a4cd17ea33 100644 > --- a/gnu/packages/admin.scm > +++ b/gnu/packages/admin.scm > @@ -64,6 +64,7 @@ > ;;; Copyright =C2=A9 2023 Jaeme Sifat > ;;; Copyright =C2=A9 2023 Nicolas Graves > ;;; Copyright =C2=A9 2023 Tom=C3=A1s Ort=C3=ADn Fern=C3=A1ndez > +;;; Copyright =C2=A9 2024 dan > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -99,6 +100,7 @@ (define-module (gnu packages admin) > #:use-module (guix gexp) > #:use-module ((guix licenses) #:prefix license:) > #:use-module (guix packages) > + #:use-module (guix platform) > #:use-module (guix utils) > #:use-module (gnu packages) > #:use-module (gnu packages acl) > @@ -5462,7 +5464,16 @@ (define-public greetd > (man1 (string-append man "/man1")) > (man5 (string-append man "/man5")) > (man7 (string-append man "/man7")) > - (release "target/release") > + (release ,(if (or (%current-target-system) > + (%current-system)) This should just be (%current-target-system) > + (string-append > + "target/" > + (platform-rust-target > + (lookup-platform-by-target-or-system This can be lookup-platform-by-target > + (or (%current-target-system) > + (%current-system)))) This should just be (%current-target-system) > + "/release") > + "target/release")) > (greetd-bin (string-append release "/greetd")) > (agreety-bin (string-append release "/agreety"))) > (install-file greetd-bin sbin) > @@ -5472,8 +5483,10 @@ (define-public greetd > (install-file "greetd.5" man5) > (install-file "greetd-ipc.7" man7) > (install-file "agreety.1" man1)))))))) > + (inputs > + (list linux-pam)) > (native-inputs > - (list linux-pam scdoc)) > + (list scdoc)) > (synopsis "Minimal and flexible login manager daemon") > (description > "greetd is a minimal and flexible login manager daemon >=20 > base-commit: c8556379c3f2d3d095a178858915720f2eebc012 > --=20 > 2.41.0 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --e81WZY72VnWRtAEX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmYMS4UACgkQQarn3Mo9 g1FpGw//YpEvWv35YQjNTQFBiJIFz3boglbnBt5rzuk6AoEWTJquGB9xQQi1o+fc j7ClbMu8w9TZltfT/4LJiTsFrpfeyS08dYUosofdVFLsG6EKAxmoY1zX/6qhJU+d Ams0c0EBZ+sUAkC1nsFBxNoL1/ZWyD5XiC7SLG93h/+//nz/AGJ+UGycvQsWMz6X zRS+FqKCkwvEWPsy9wrwvQai653YT5ORu874rwTYSd10U5WDe6vS1WnIikAgMrer 0RRBWsjBhoNscoTYIo2wrGO7AmB12ceO5teqo6Uf7K85JyDNmhm8BByEKn2m211k SBuq83IzVPDIamUsN1PEOGTlLJBXJs/230uLGUL5Jc3VlCcMX/wWH3H5Sd85NKL6 4ddgk2WM3bnCfTYpza8IM3cYEv/VlP4lrp6/uySsUu1DHLaf9bcSK/K8g3SvPLyr Qvz/tAFXhAhLlhbaJUX4GyJGRs8o7TuQqUkuZ8D9UxdlpvUHSD9Rx/IwbmiiAtMX CBAMhN+EGfmxkqlsXaS5VgFqZbAC4Y5d8r1TGI68PJOtgJ2YEXF3QOMBTr87BwI/ uhqtsJtzG0vbqcP6z3tmsArFJSQhb3UlOqVKIfT1arj1KUKCV/VhF7SKEbDUZHKN tEmRzh4n8P4+YPnQf57LIIF9T+AZ9n3AukTVuQy7OIuC6NerJ5k= =N+p3 -----END PGP SIGNATURE----- --e81WZY72VnWRtAEX--