nongnu: mesa-next: Fix failing test for i686-linux.

* nongnu/packages/mesa.scm (mesa-next)[phases]{fix-instrfromstring-test}: New
phase.  Fix the instrfromstring test which fails on i686 using the upstream change.
This commit is contained in:
John Kehayias 2022-10-14 20:40:08 -04:00
parent 40723b9e38
commit 2a353a3dbc
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -237,6 +237,15 @@ svga,swrast,virgl")))
(("'lp_test_arit', ") ""))))
(_
'((display "No tests to disable on this architecture.\n"))))))
,@(if (string=? (%current-system) "i686-linux")
'((add-after 'disable-failing-test 'fix-instrfromstring-test
(lambda _
;; The instrfromstring test fails on i686, which has been already
;; fixed upstream but not in 22.2.1.
;; TODO: remove on update
(substitute* "src/gallium/drivers/r600/sfn/sfn_instr_export.cpp"
(("buf\\[6\\]") "buf[6] = {0}")))))
'())
(add-before 'configure 'fix-dlopen-libnames
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))