unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#57865] [PATCH] gnu: bdb: fix the cross build.
@ 2022-09-16 15:04 路辉
  2022-10-08 11:09 ` bug#57865: " Christopher Baines
  0 siblings, 1 reply; 2+ messages in thread
From: 路辉 @ 2022-09-16 15:04 UTC (permalink / raw)
  To: 57865

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-gnu-bdb-fix-the-cross-build.patch --]
[-- Type: text/x-patch, Size: 1848 bytes --]

From d9bc4d42ca2d5a06def537d143c85c289bdb9c39 Mon Sep 17 00:00:00 2001
From: Lu Hui <luhux76@gmail.com>
Date: Fri, 16 Sep 2022 23:02:28 +0800
Subject: [PATCH] gnu: bdb: fix the cross build.

* gnu/packages/dbm.scm (bdb): fix cross build
---
 gnu/packages/dbm.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/dbm.scm b/gnu/packages/dbm.scm
index 8b6804aa92..2d3cce9e15 100644
--- a/gnu/packages/dbm.scm
+++ b/gnu/packages/dbm.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
 ;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2021 LuHui <luhux76@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -65,7 +66,8 @@ (define-public bdb-4.8
          ;; for "--build", but not for "--host", so update config.sub.
          ,@(if (and (%current-target-system)
                     (or (target-ppc64le? (%current-target-system))
-                        (target-aarch64? (%current-target-system))))
+                        (target-aarch64? (%current-target-system))
+                        (target-riscv64? (%current-target-system))))
                `((add-after 'unpack 'update-config.sub
                    (lambda* (#:key native-inputs #:allow-other-keys)
                      (delete-file "dist/config.sub")
@@ -118,7 +120,8 @@ (define-public bdb-4.8
     (native-inputs
      (if (and (%current-target-system)
               (or (target-ppc64le? (%current-target-system))
-                  (target-aarch64? (%current-target-system))))
+                  (target-aarch64? (%current-target-system))
+                  (target-riscv64? (%current-target-system))))
          `(("config" ,config)) ; for config.sub
          '()))
     (synopsis "Berkeley database")
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#57865: [PATCH] gnu: bdb: fix the cross build.
  2022-09-16 15:04 [bug#57865] [PATCH] gnu: bdb: fix the cross build 路辉
@ 2022-10-08 11:09 ` Christopher Baines
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Baines @ 2022-10-08 11:09 UTC (permalink / raw)
  To: 路辉; +Cc: 57865-done

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]


路辉 <luhux76@gmail.com> writes:

> [2. text/x-patch; 0001-gnu-bdb-fix-the-cross-build.patch]...

Thanks, I've tweaked the commit message a bit to make it more specific
and pushed this to master as 14afaa5381b1185bf9e3701ff09c5bab12dacfab.

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-08 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-16 15:04 [bug#57865] [PATCH] gnu: bdb: fix the cross build 路辉
2022-10-08 11:09 ` bug#57865: " Christopher Baines

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).