guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error cross-compiling Mesa: failing test


From: Marius Bakke
Subject: Re: Error cross-compiling Mesa: failing test
Date: Sat, 07 Sep 2019 16:58:25 +0200
User-agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu)

Pierre Neidhardt <address@hidden> writes:

> Hi!
>
> Our current `mesa' package has this bit:
>
> --8<---------------cut here---------------start------------->8---
>          ,@(if (string-prefix? "i686" (%current-system))
>                ;; Disable new test from Mesa 19 that fails on i686.  Upstream
>                ;; report: 
> <https://bugs.freedesktop.org/show_bug.cgi?id=110612>.
>                `((add-after 'unpack 'disable-failing-test
>                    (lambda _
>                      (substitute* "src/gallium/tests/unit/meson.build"
>                        (("'u_format_test',") ""))
>                      #t)))
>                '())
> --8<---------------cut here---------------end--------------->8---
>
> When I attempt to cross-compile the package from x86-64 to x686, the
> faulty test is not disabled and the check phase fails.
>
> If I turn (%current-system) to (%current-target-system) it works.
> Should we update the package to use (%current-target-system) then?

I did not expect anyone to run tests when cross-compiling :-)

I think gnu-build-system disables tests in that case, but perhaps it
should not?

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' :-)

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]