From: Efraim Flashner <efraim@flashner.co.il>
To: dan <i@dan.games>
Cc: 69876-done@debbugs.gnu.org
Subject: bug#69876: [PATCH] gnu: greetd: Fix cross-compilation.
Date: Tue, 2 Apr 2024 21:16:38 +0300 [thread overview]
Message-ID: <ZgxLhiLu1QCP36zN@3900XT> (raw)
In-Reply-To: <aee5d201e4102ed7927e76b8eb5a19fbec4ec93a.1710787147.git.i@dan.games>
[-- Attachment #1: Type: text/plain, Size: 4509 bytes --]
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…")
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 #<procedure 7ffff69781a0 at guix/build/gnu-b…> …)
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 (_ #(#(#(#(#(#(#(#(#(#(#(…) …) …) …) …) …) …) …) …) …) …))
In unknown file:
2 (copy-file "target/x86_64-unknown-linux-gnu/release/gr…" …)
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.
>
> Change-Id: I822f8f215677bc951b21e46dddf44954a43df58f
> ---
> gnu/packages/admin.scm | 17 +++++++++++++++--
> 1 file changed, 15 insertions(+), 2 deletions(-)
>
> 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 © 2023 Jaeme Sifat <jaeme@runbox.com>
> ;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
> ;;; Copyright © 2023 Tomás Ortín Fernández <tomasortin@mailbox.org>
> +;;; Copyright © 2024 dan <i@dan.games>
> ;;;
> ;;; 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
>
> base-commit: c8556379c3f2d3d095a178858915720f2eebc012
> --
> 2.41.0
>
>
>
>
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2024-04-02 18:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 18:39 [bug#69876] [PATCH] gnu: greetd: Fix cross-compilation dan
2024-04-02 18:16 ` Efraim Flashner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZgxLhiLu1QCP36zN@3900XT \
--to=efraim@flashner.co.il \
--cc=69876-done@debbugs.gnu.org \
--cc=i@dan.games \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).