From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:34555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT5DP-0000fX-Bs for guix-patches@gnu.org; Tue, 21 May 2019 09:54:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT5DO-00060M-CE for guix-patches@gnu.org; Tue, 21 May 2019 09:54:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hT5DO-000608-8A for guix-patches@gnu.org; Tue, 21 May 2019 09:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hT5DO-000444-3D for guix-patches@gnu.org; Tue, 21 May 2019 09:54:02 -0400 Subject: [bug#35753] [PATCH v2] gnu: mes: Prepare for non-x86 architectures. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190515154201.31101-1-dannym@scratchpost.org> <20190515165336.7816-1-dannym@scratchpost.org> Date: Tue, 21 May 2019 15:53:12 +0200 In-Reply-To: <20190515165336.7816-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Wed, 15 May 2019 18:53:36 +0200") Message-ID: <874l5n3odz.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Danny Milosavljevic Cc: 35753@debbugs.gnu.org Hi Danny, Danny Milosavljevic skribis: > * gnu/packages/mes.scm (mes)[native-inputs]: Prepare for non-x86 > architectures. Please describe the change in terms of what=E2=80=99s added/remove from =E2=80=98native-inputs=E2=80=99. > + (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 Guil= e. > + `(("i686-linux-binutils" ,(cross-binutils "i686-unknown-lin= ux-gnu")) > + ("i686-linux-gcc" ,(cross-gcc "i686-unknown-linux-gnu")))) > + (else > + '()))) LGTM, thanks! Looking forward to Mes on ARM! Ludo=E2=80=99.