From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Marius Bakke <mbakke@fastmail.com>, guix-devel@gnu.org
Subject: Re: Error cross-compiling Mesa: failing test
Date: Thu, 19 Sep 2019 12:44:46 +0200 [thread overview]
Message-ID: <87blvgbm5d.fsf@ambrevar.xyz> (raw)
In-Reply-To: <87a7bggnla.fsf@devup.no>
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
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
--8<---------------cut here---------------start------------->8---
(define-public (to32 package64)
"Build package for i686-linux.
Only x86_64-linux and i686-linux are supported.
- If i686-linux, return the package unchanged.
- 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))))))))
--8<---------------cut here---------------end--------------->8---
still produces a x86_64 build of mesa. Any clue what I'm missing?
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2019-09-19 10:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-06 19:10 Error cross-compiling Mesa: failing test Pierre Neidhardt
2019-09-07 14:58 ` Marius Bakke
2019-09-19 10:44 ` Pierre Neidhardt [this message]
2019-09-19 10:57 ` Jelle Licht
2019-09-19 10:59 ` Pierre Neidhardt
2019-09-19 11:05 ` Jelle Licht
2019-09-19 11:32 ` Pierre Neidhardt
2019-09-27 14:36 ` Pierre Neidhardt
2019-09-27 17:34 ` Marius Bakke
2019-10-03 10:04 ` Pierre Neidhardt
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=87blvgbm5d.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=guix-devel@gnu.org \
--cc=mbakke@fastmail.com \
/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.