From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Error cross-compiling Mesa: failing test Date: Thu, 19 Sep 2019 12:44:46 +0200 Message-ID: <87blvgbm5d.fsf@ambrevar.xyz> References: <87ftl9z1e8.fsf@ambrevar.xyz> <87a7bggnla.fsf@devup.no> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55119) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAtvf-000424-Qz for guix-devel@gnu.org; Thu, 19 Sep 2019 06:44:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAtve-00027J-Hp for guix-devel@gnu.org; Thu, 19 Sep 2019 06:44:51 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:59217) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAtve-00026Y-Be for guix-devel@gnu.org; Thu, 19 Sep 2019 06:44:50 -0400 In-Reply-To: <87a7bggnla.fsf@devup.no> 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: Marius Bakke , guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Sorry for the delay :p > In any case you can change (%current-system) to: > > (or (%current-target-system) (%current-system)) > > ...and it should work. Feel free to push this change to 'master' :-) OK, I could do that. Now I'm trying to build a i686-linux mesa on a x86_64, but the following =2D-8<---------------cut here---------------start------------->8--- (define-public (to32 package64) "Build package for i686-linux. Only x86_64-linux and i686-linux are supported. =2D If i686-linux, return the package unchanged. =2D If x86_64-linux, return the 32-bit version of the package." (match (%current-system) ("x86_64-linux" (package (inherit package64) (name (string-append (package-name package64) "32")) (arguments `(#:system "i686-linux" ,@(package-arguments package64))))) (_ package64))) (define mesa32 (package (inherit (to32 mesa)) (arguments (substitute-keyword-arguments (package-arguments mesa) ((#:phases phases) `(modify-phases ,phases (add-after 'unpack 'cross-disable-failing-test (lambda _ (substitute* "src/gallium/tests/unit/meson.build" (("'u_format_test',") "")) #t)))))))) =2D-8<---------------cut here---------------end--------------->8--- still produces a x86_64 build of mesa. Any clue what I'm missing? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl2DXB4ACgkQm9z0l6S7 zH+IWggAsFUTlALMfmfcR6z3RJsb+Yut2cnYHjeRgCMN1N0cbkhKZIfJeE2oIPX8 /TjYthwIeWEpoSCyytQvIoKq/vPMvbpM4TSRijqS56UASjW/fTOOtK5J0Bnqae5Q TZlDcjTZ0mgWTY9KuqhsDlvr5QDhD9V9I6mh9uWZpGLQ9z4VvOvy5sygbzsQlNhy o4oAL0cwcM+UiskzBYjHMtxCUpCXu48aF1FnSEiBZtbn9lg0AduvncgJQcYYNyQg XqyLYNPFzlyFztwfZM8sHqdTfkSbHeXm9mwQ2Kjl8uQ3sMcWpsmp32rP7jOkP6cd E+lQe2ZT21pHa3A1W+j8JseGkhCq2Q== =tlC0 -----END PGP SIGNATURE----- --=-=-=--