Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 515598

Summary: www-client/chromium should determine pepper flash version programmatically
Product: Gentoo Linux Reporter: Lorenz <lorenz>
Component: Current packagesAssignee: Chromium Project <chromium>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lorenz 2014-06-28 13:40:01 UTC
Instead of hardcoding --ppapi-flash-version, it should be determined from pepper flash's manifest.json, which contains a field "version".

One way to do this would be to set the version as follows:
--ppapi-flash-version=$(grep '"version":' /usr/lib64/chromium-browser/PepperFlash/manifest.json| grep -Po '(?<=version": ")(?:\d|\.)*')

Of course, you (c|sh)ould rewrite this to work without the pcre USE flag on grep (use sed?), and probably substitute the chromium installation path suitably. This is just what I do on my system.

Reproducible: Always
Comment 1 Lorenz 2014-06-28 13:40:42 UTC
Obviously I am too stupid to type, should be www-client/chromium.
Comment 2 Mike Gilbert gentoo-dev 2014-06-28 13:52:20 UTC
Err... have a look at src_install in the chrome-binary-plugins ebuild.

There's no reason to recompute that every time we start chromium.