GNU bug report logs -
#69876
[PATCH] gnu: greetd: Fix cross-compilation.
Previous Next
Reported by: dan <i <at> dan.games>
Date: Mon, 18 Mar 2024 19:46:02 UTC
Severity: normal
Tags: patch
Done: Efraim Flashner <efraim <at> flashner.co.il>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 69876 in the body.
You can then email your comments to 69876 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#69876
; Package
guix-patches
.
(Mon, 18 Mar 2024 19:46:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
dan <i <at> dan.games>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 18 Mar 2024 19:46:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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 <at> runbox.com>
;;; Copyright © 2023 Nicolas Graves <ngraves <at> ngraves.fr>
;;; Copyright © 2023 Tomás Ortín Fernández <tomasortin <at> mailbox.org>
+;;; Copyright © 2024 dan <i <at> 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))
+ (string-append
+ "target/"
+ (platform-rust-target
+ (lookup-platform-by-target-or-system
+ (or (%current-target-system)
+ (%current-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
Reply sent
to
Efraim Flashner <efraim <at> flashner.co.il>
:
You have taken responsibility.
(Tue, 02 Apr 2024 18:17:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
dan <i <at> dan.games>
:
bug acknowledged by developer.
(Tue, 02 Apr 2024 18:17:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 69876-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <at> runbox.com>
> ;;; Copyright © 2023 Nicolas Graves <ngraves <at> ngraves.fr>
> ;;; Copyright © 2023 Tomás Ortín Fernández <tomasortin <at> mailbox.org>
> +;;; Copyright © 2024 dan <i <at> 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 <at> 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
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 01 May 2024 11:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.