emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#69946: closed ([PATCH] gnu: libatasmart: Fix cross-compiling to risc


From: GNU bug Tracking System
Subject: bug#69946: closed ([PATCH] gnu: libatasmart: Fix cross-compiling to riscv64-linux.)
Date: Wed, 27 Mar 2024 13:02:03 +0000

Your message dated Wed, 27 Mar 2024 13:01:01 +0000
with message-id <87jzlng76o.fsf@cbaines.net>
and subject line Re: [bug#69946] [PATCH] gnu: libatasmart: Fix cross-compiling 
to riscv64-linux.
has caused the debbugs.gnu.org bug report #69946,
regarding [PATCH] gnu: libatasmart: Fix cross-compiling to riscv64-linux.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
69946: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69946
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: libatasmart: Fix cross-compiling to riscv64-linux. Date: Sat, 23 Mar 2024 00:44:20 +0800
* gnu/packages/freedesktop.scm (libatasmart)
[native-inputs]: When cross compiling to riscv64-linux-gnu, add config.
[arguments]: When target riscv64-linux-gnu, add update-config phase.

Change-Id: I491c43a6ce2c3fc3aed43ecab9d4a2ab251038bb
---
 gnu/packages/freedesktop.scm | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 8a4f490be2..5518d38af5 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1525,7 +1525,25 @@ (define-public libatasmart
                 "138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31"))))
     (build-system gnu-build-system)
     (native-inputs
-     (list pkg-config))
+     (append (if (and (%current-target-system)
+                      (target-riscv64?))
+                 (list config)
+                 '())
+             (list pkg-config)))
+    (arguments
+     (if (and (%current-target-system)
+              (target-riscv64?))
+         (list #:phases
+               #~(modify-phases %standard-phases
+                   (add-after 'unpack 'update-config
+                     (lambda* (#:key native-inputs inputs #:allow-other-keys)
+                       (for-each (lambda (file)
+                                   (install-file
+                                    (search-input-file
+                                     (or native-inputs inputs)
+                                     (string-append "/bin/" file)) 
"build-aux"))
+                                 '("config.guess" "config.sub"))))))
+         '()))
     (inputs
      (list eudev))
     (home-page "https://0pointer.de/blog/projects/being-smart.html";)

base-commit: 40f53e8fb5b867e3a1e8fa798328423718282aac
-- 
2.41.0




--- End Message ---
--- Begin Message --- Subject: Re: [bug#69946] [PATCH] gnu: libatasmart: Fix cross-compiling to riscv64-linux. Date: Wed, 27 Mar 2024 13:01:01 +0000 User-agent: mu4e 1.10.8; emacs 29.1
Zheng Junjie <zhengjunjie@iscas.ac.cn> writes:

> * gnu/packages/freedesktop.scm (libatasmart)
> [native-inputs]: When cross compiling to riscv64-linux-gnu, add config.
> [arguments]: When target riscv64-linux-gnu, add update-config phase.
>
> Change-Id: I491c43a6ce2c3fc3aed43ecab9d4a2ab251038bb
> ---
>  gnu/packages/freedesktop.scm | 20 +++++++++++++++++++-
>  1 file changed, 19 insertions(+), 1 deletion(-)

Thanks! I've pushed this to master as
d9e693df75ffb8f0333c990d947540261613f72b.

Chris

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]