all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: 35753@debbugs.gnu.org
Subject: [bug#35753] [PATCH] gnu: mes: Prepare for non-x86 architectures.
Date: Wed, 15 May 2019 17:42:01 +0200	[thread overview]
Message-ID: <20190515154201.31101-1-dannym@scratchpost.org> (raw)

* gnu/packages/mes.scm (mes)[native-inputs]: Prepare for non-x86
architectures.
---
 gnu/packages/mes.scm | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index c45e267875..5c6b64150b 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -78,13 +78,16 @@ extensive examples, including parsers for the Javascript and C99 languages.")
          ("nyacc" ,nyacc)))
       (native-inputs
        `(("guile" ,guile-2.2)
-         ,@(if (not (string-prefix? "i686-linux" (or (%current-target-system)
-                                                     (%current-system))))
+         ,@(let ((target-system (or (%current-target-system)
+                                    (%current-system))))
+             (cond
+              ((string-prefix? "x86_64-linux" target-system)
                ;; Use cross-compiler rather than #:system "i686-linux" to get
                ;; MesCC 64 bit .go files installed ready for use with Guile.
                `(("i686-linux-binutils" ,(cross-binutils triplet))
-                 ("i686-linux-gcc" ,(cross-gcc triplet)))
-               '())
+                 ("i686-linux-gcc" ,(cross-gcc triplet))))
+              (else
+               '())))
          ("graphviz" ,graphviz)
          ("help2man" ,help2man)
          ("perl" ,perl)                 ; build-aux/gitlog-to-changelog

             reply	other threads:[~2019-05-15 15:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15 15:42 Danny Milosavljevic [this message]
2019-05-15 16:53 ` [bug#35753] [PATCH v2] gnu: mes: Prepare for non-x86 architectures Danny Milosavljevic
2019-05-21 13:53   ` Ludovic Courtès

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190515154201.31101-1-dannym@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=35753@debbugs.gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.