From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Hydra evaluation failure Date: Wed, 17 May 2017 15:59:26 +0200 Message-ID: <87tw4jd1oh.fsf@fastmail.com> References: <20170517115107.GA3299@jasmine> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAzUE-0002SD-GG for guix-devel@gnu.org; Wed, 17 May 2017 09:59:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAzU9-0001l7-Jj for guix-devel@gnu.org; Wed, 17 May 2017 09:59:34 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48137) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dAzU9-0001ku-An for guix-devel@gnu.org; Wed, 17 May 2017 09:59:29 -0400 In-Reply-To: <20170517115107.GA3299@jasmine> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari , guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Leo Famulari writes: [...] > In gnu/packages/mes.scm: > 79: 1 [native-inputs] > In unknown file: > ?: 0 [string-prefix? #f "x86_64-linux" ...] > > ERROR: In procedure string-prefix?: > ERROR: In procedure string-prefix?: Wrong type argument in position 1 (expecting string): #f This seems to be because system is not x86_64, and (%current-target-system) evaluates to false. I *think* the attached patch solves it. WDYT? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-mes-Don-t-fail-when-current-target-system-is-f.patch Content-Transfer-Encoding: quoted-printable From=20baa90ac80d510e7357340a52316c5f438e27f538 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Wed, 17 May 2017 15:49:04 +0200 Subject: [PATCH] gnu: mes: Don't fail when (%current-target-system) is #f. * gnu/packages/mes.scm (mes)[native-inputs]: Evaluate system before testing string equality. =2D-- gnu/packages/mes.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm index 66b0654de..82213b02c 100644 =2D-- a/gnu/packages/mes.scm +++ b/gnu/packages/mes.scm @@ -75,13 +75,13 @@ extensive examples, including parsers for the Javascrip= t and C99 languages.") `(("nyacc" ,nyacc))) (native-inputs `(("guile" ,guile-2.2) =2D ,@(if (or (equal? (%current-system) "x86_64-linux") =2D (string-prefix? (%current-target-system) "x86_64-linu= x")) =2D ;; Use cross-compiler rather than #:system "i686-linux" t= o get =2D ;; MesCC 64 bit .go files installed ready for use with Gu= ile. =2D `(("i686-linux-binutils" ,(cross-binutils triplet)) =2D ("i686-linux-gcc" ,(cross-gcc triplet))) =2D '()) + ,@(let ((system (or (%current-target-system) (%current-system)))) + (if (string-prefix? "x86_64-linux" system) + ;; Use cross-compiler rather than #:system "i686-linux" t= o get + ;; MesCC 64 bit .go files installed ready for use with Gu= ile. + `(("i686-linux-binutils" ,(cross-binutils triplet)) + ("i686-linux-gcc" ,(cross-gcc triplet))) + '())) ("perl" ,perl))) ;build-aux/gitlog-to-changelog (arguments `(#:phases =2D-=20 2.13.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlkcVz4ACgkQoqBt8qM6 VPpisQf/R7fjf7OF/eGbrB0C9NPbfXdvsbO3zr+21/x++98D3uYxtcJuiiMtA2u9 QglOBUXO+kaX9nGAmiOV6AytxNQHtXtEgUD/HxU1IvqijT7jj8NWNkLpM3vvhyGc 1ICHnhRFP90bhz0Z8VPfmhch90YhNydS6qexhyWQgCIG2/WcA9XP4zvFljdhA5do sejJhOYi3o1c0fwe6LNp1ZhNChBSjHSLAC7k9xpIedM/EDgmcnWBIze7qgujM4Cq s/91XuTpvwWYt4VOjG0GtPhn6NHJ2DDPGS8kvCkVNoDfrrTNEBVIH8e94BWwzkM1 HwrjamSV00PLV0ktNf6ECmIJO9hY5g== =kpXi -----END PGP SIGNATURE----- --==-=-=--