Subject: Re: [bug#35753] [PATCH v2] gnu: mes: Prepare for non-x86 architectures.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 21 May 2019 15:53:12 +0200

Hi Danny,

Danny Milosavljevic <[email-masked]> skribis:

> * gnu/packages/mes.scm (mes)[native-inputs]: Prepare for non-x86
> architectures.

Please describe the change in terms of what’s added/remove from
‘native-inputs’.

> +    (native-inputs
> +     `(("guile" ,guile-2.2)
> +       ,@(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 "i686-unknown-linux-gnu"))
> +               ("i686-linux-gcc" ,(cross-gcc "i686-unknown-linux-gnu"))))
> +            (else
> +             '())))

LGTM, thanks!

Looking forward to Mes on ARM!

Ludo’.