FS#64307 - [chromium] swiftshader is missing from the package

Attached to Project: Arch Linux
Opened by Daniel Martí (mvdan) - Tuesday, 29 October 2019, 14:00 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 02 June 2020, 02:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:


Additional info:
* package version(s)

Chromium 78.0.3904.70 Arch Linux
Google Chrome 78.0.3904.70

* config and/or log files etc.

None needed; empty config or home dirs are OK to repro this.

* link to upstream bug report, if any

None; this seems to be a bug in the PKGBUILD.

Steps to reproduce:

Here is proof that the .so files are missing:

$ pacman -Ql google-chrome | grep swift
google-chrome /opt/google/chrome/swiftshader/
google-chrome /opt/google/chrome/swiftshader/libEGL.so
google-chrome /opt/google/chrome/swiftshader/libGLESv2.so
$ pacman -Ql chromium | grep swift
$

To prove that swiftshader works on google-chrome but not on chromium, do:

google-chrome-stable --headless --screenshot https://www.khronos.org/registry/webgl/sdk/demos/google/san-angeles/
xdg-open screenshot.png

You'll see a screenshot of a 3D webgl object, mostly dark. If you do the same with chromium:

chromium --headless --screenshot https://www.khronos.org/registry/webgl/sdk/demos/google/san-angeles/
xdg-open screenshot.png

You'll see an error screenshot, showing "It doesn't appear your computer can support WebGL".
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 02 June 2020, 02:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  chromium 83.0.4103.61-2
Comment by Daniel Martí (mvdan) - Monday, 27 April 2020, 10:52 GMT
Alpine Linux had the same bug (which I reported at the same time as this one), and they fixed it just last week. Here's the patch, which is probably helpful given that PKGBUILDs and APKBUILDs are very similar: https://git.alpinelinux.org/aports/commit/community/chromium?id=3070ca7ff0d0e5a4417f40cd226896705a9751cc

Loading...