GNU bug report logs - #61604
[PATCH] platforms: allow cross-target mipsel-linux-gnu

Previous Next

Package: guix-patches;

Reported by: 路辉 <luhux76 <at> gmail.com>

Date: Sat, 18 Feb 2023 12:42:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 61604 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#61604; Package guix-patches. (Sat, 18 Feb 2023 12:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 路辉 <luhux76 <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 18 Feb 2023 12:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 路辉 <luhux76 <at> gmail.com>
To: guix-patches <guix-patches <at> gnu.org>
Subject: [PATCH] platforms: allow cross-target mipsel-linux-gnu
Date: Sat, 18 Feb 2023 12:41:16 +0000
From 9a111fd886b89914bd6bafe8202b8a9a1dce7017 Mon Sep 17 00:00:00 2001
From: LuHui <luhux76 <at> gmail.com>
Date: Sat, 18 Feb 2023 20:35:37 +0800
Subject: [PATCH] platforms: allow cross-target mipsel-linux-gnu

* guix/platforms/mips.scm (mips-linux) : new variable.
* guix/utils.scm (target-mipsel?) : new function.
---
 guix/platforms/mips.scm | 10 +++++++++-
 guix/utils.scm          |  5 +++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/guix/platforms/mips.scm b/guix/platforms/mips.scm
index e6fa9eb292..c37c8bb292 100644
--- a/guix/platforms/mips.scm
+++ b/guix/platforms/mips.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2022 Mathieu Othacehe <othacehe <at> gnu.org>
+;;; Copyright © 2023 Lu Hui <luhux76 <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -19,7 +20,7 @@
 (define-module (guix platforms mips)
   #:use-module (guix platform)
   #:use-module (guix records)
-  #:export (mips64-linux))
+  #:export (mips64-linux mips-linux))

 (define mips64-linux
   (platform
@@ -27,3 +28,10 @@ (define mips64-linux
    (system "mips64el-linux")
    (linux-architecture "mips")
    (glibc-dynamic-linker "/lib/ld.so.1")))
+
+(define mips-linux
+  (platform
+   (target "mipsel-linux-gnu")
+   (system "mipsel-linux")
+   (linux-architecture "mips")
+   (glibc-dynamic-linker "/lib/ld.so.1")))
diff --git a/guix/utils.scm b/guix/utils.scm
index 774b80cd25..55af3562eb 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
 ;;; Copyright © 2022 Antero Mejr <antero <at> mailbox.org>
 ;;; Copyright © 2023 Philip McGrath <philip <at> philipmcgrath.com>
+;;; Copyright © 2023 Lu Hui <luhux76 <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -741,6 +742,10 @@ (define* (target-mips64el? #:optional (target (or
(%current-target-system)
                                                   (%current-system))))
   (string-prefix? "mips64el-" target))

+(define* (target-mipsel? #:optional (target (or (%current-target-system)
+                                                (%current-system))))
+  (string-prefix? "mipsel-" target))
+
 (define* (target-64bit? #:optional (system (or (%current-target-system)
                                                (%current-system))))
   (any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64"
-- 
2.39.1




Information forwarded to guix-patches <at> gnu.org:
bug#61604; Package guix-patches. (Wed, 10 May 2023 13:47:01 GMT) Full text and rfc822 format available.

Message #8 received at 61604 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 61604 <at> debbugs.gnu.org
Subject: Gnutls
Date: Wed, 10 May 2023 15:45:58 +0200
In the core-updates merge, gnutls-latest has been dropped.
So "guix refresh -l gnutls" works, but it shows an amazing number of
packages:
  Building the following 7653 packages would ensure 15845 dependent packages are rebuilt

So this should go to some branch, maybe a "core-team" branch?

Andreas





Information forwarded to guix-patches <at> gnu.org:
bug#61604; Package guix-patches. (Thu, 26 Oct 2023 12:50:02 GMT) Full text and rfc822 format available.

Message #11 received at 61604 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: 路辉 <luhux76 <at> gmail.com>
Cc: 61604 <at> debbugs.gnu.org
Subject: Re: [bug#61604] [PATCH] platforms: allow cross-target mipsel-linux-gnu
Date: Thu, 26 Oct 2023 14:48:20 +0200
Hello,

> +   (system "mipsel-linux")

That system is unsupported in (gnu packages bootstrap). You can either
set system to #false so that only cross-compilation is supported, or
provided bootstrap packages for that system :).

Thanks,

Mathieu




This bug report was last modified 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.