Bug 18993 - chromium-browser-pepper-flash is now availible as an independent download.
Summary: chromium-browser-pepper-flash is now availible as an independent download.
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL: https://get.adobe.com/flashplayer/oth...
Whiteboard:
Keywords:
: 13118 19182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-07-19 19:19 CEST by Zombie Ryushu
Modified: 2018-09-29 18:29 CEST (History)
7 users (show)

See Also:
Source RPM: chromium-browser-pepper-flash
CVE:
Status comment:


Attachments
script to download pepperflash (1.16 KB, application/x-sh)
2016-08-25 14:33 CEST, Giuseppe Ghibò
Details
script to download and package pepperflash (1.26 KB, application/x-shellscript)
2016-10-14 03:14 CEST, Giuseppe Ghibò
Details

Description Zombie Ryushu 2016-07-19 19:19:30 CEST
chromium-browser-pepper-flash is now availible as an independent download from Adobe for both 32 bit and 64 bit architectures.
Manuel Hiebel 2016-07-19 20:12:44 CEST

CC: (none) => manuel.mageia

Comment 1 Anssi Hannula 2016-07-20 03:08:25 CEST
Thanks for the heads-up.

I took a quick preliminary look at this:

- The Adobe download simply consists of a tarball with the binary, no installation instructions.

- Looks like Chromium on Linux still requires explicit command line parameters to load this kind of external pepper-flash. Our chromium startup script currently does that but it only checks for Chrome flash location, so not enough for an independent package which would install at a different location.

- There is a provision for system-provided pepperflash in Chromium code so that it would be loaded automatically from a specific path, but the pepperflash path is not set on Linux (#ifdef), with the following comment:
// TODO(wfh): If Adobe release PPAPI binaries for Linux, add support here.
( https://chromium.googlesource.com/chromium/src/+/master/chrome/common/chrome_paths.cc#293 )

CC: (none) => anssi.hannula

Comment 2 Zombie Ryushu 2016-07-20 03:16:55 CEST
Rosa may help with this, they have had an independent Pepper Flash install process for some time. I notified them too, What I think you should do, is let Rosa decide how to proceed first then just port their scripts.
Comment 3 David Walser 2016-07-21 03:28:19 CEST
I'm not all that interested in what Rosa does with it, as I'm not impressed with their existing Pepper Flash installer.

Anssi, if the Adobe download just gives you a binary, could our package just ensure that it gets put in the appropriate location?  It will need to be, not only for Chromium to see it, but also for freshplayerplugin for Firefox to see it.

If we can get that working, I think that it should just require freshplayerplugin and replace our existing flash-player-plugin package.
Comment 4 Zombie Ryushu 2016-07-21 03:58:48 CEST
I see no reason for it to replace flash-player-plugin.
Comment 5 David Walser 2016-07-22 15:32:02 CEST
I see no reason for it not to.  The current one is old and doesn't work on an increasing number of sites.  The Pepper one provides the same functionality via freshplayerplugin and then works on two browsers instead of one.  I certainly see no reason to package both when we can just have the newer one.
Comment 6 Zombie Ryushu 2016-07-22 16:35:21 CEST
FreshPlayerPlugin has occasional bugs that can cause High CPU Utilizations or Browser Crashes.
Comment 7 David Walser 2016-08-09 23:03:45 CEST
I don't doubt that, but honestly, I've experienced less issues with freshplayerplugin at work than I have with flash-player-plugin at home.  My only concern is when Firefox drops support for all NPAPI plugins except for Flash next year, will freshplayerplugin still work?
Comment 8 David Walser 2016-08-11 13:48:28 CEST
*** Bug 19182 has been marked as a duplicate of this bug. ***

CC: (none) => mageia

Comment 9 Giuseppe Ghibò 2016-08-25 14:33:00 CEST
Created attachment 8365 [details]
script to download pepperflash

CC: (none) => ghibomgx

Comment 10 Giuseppe Ghibò 2016-08-25 14:34:55 CEST
Probably the quickest way is to clone the current flash-player-plugin SPEC file and rename to "flash-player-ppapi-plugin", and readapt (I think it doesn't need the same Conflicts|Provides as flash-player-plugin) so both can coexists and don't get overridden each other. In the meanwhile for those impatient I attach a simple and ugly script to generate the package locally using "alien".

Note that also ubuntu had something similar to Rosa, there was a package called "browser-plugin-freshplayer-pepperflash" that downloads current google-chrome-stable and extract and builds pepperflash from there on the fly, more or less.
Comment 11 Giuseppe Ghibò 2016-08-25 14:39:46 CEST
BTW, I noticed also that the slow behaviour (almost hang) of freshplayer with pepperflash happens remotely (tried current freshplayer 0.36-0.20160824 git snapshot), i.e. e.g. you run a flash page trough firefox which has been launched in a remote ssh (even on a quick LAN, so 100Mbit or 1Gbit). Simple test here: https://www.adobe.com/software/flash/about/.
Comment 12 David Walser 2016-08-25 17:23:34 CEST
I don't think it makes any sense to package both.  It offers us nothing we don't already have really (as it's not hard to just install Chrome from upstream) and it just buys us the headache of having to update and test *two* Flashes every time it needs an update.
Comment 13 David Walser 2016-09-05 17:05:11 CEST
So, you may have heard that Adobe is going to update the Flash plugin again:
https://blogs.adobe.com/flashplayer/2016/08/beta-news-flash-player-npapi-for-linux.html

So, the PPAPI Pepper Flash will still have more functionality, so I still think that it would make more sense for now to change our flash-player-plugin package to package that one and Recommend freshplayerplugin.  I think this makes even *more* sense now, because now that the NPAPI Flash Plugin will be updated, even if when Firefox removes support for all plugins except Flash, if this breaks freshplayerplugin, we can just go back to packaging the NPAPI one (and if that happens, I suppose at *that* point it might make sense to package both, but for now it does not).
Comment 14 David Walser 2016-09-25 17:07:30 CEST
*** Bug 13118 has been marked as a duplicate of this bug. ***

CC: (none) => ozkyster

Comment 15 Zombie Ryushu 2016-09-25 21:33:54 CEST
They say they are. However Rosa just packaged an update to the 11.2 NPAPI Plugin that fixes more stuff.
Comment 16 Samuel Verschelde 2016-10-11 20:54:26 CEST
Assigning this package request to all packagers collectively. On a voluntary basis, one of them might want to integrate it to the distribution and maintain it for bug and security fixes.

You might also want to join the packager team to maintain this piece of software: see https://wiki.mageia.org/en/Becoming_a_Mageia_Packager

Assignee: bugsquad => pkg-bugs

Comment 17 Giuseppe Ghibò 2016-10-14 03:14:20 CEST
Created attachment 8532 [details]
script to download and package pepperflash

script to download an repackage pepperflash to be used with freshplayerplugin or chromium. Use linux32 to create the i586.rpm over the x86_64 platform.

Attachment 8365 is obsolete: 0 => 1

Comment 18 David Walser 2016-10-20 19:11:49 CEST
This takes on a higher sense of urgency now.  In Chrome 54, Google silently dropped Pepper Flash:
https://bugs.chromium.org/p/chromium/issues/detail?id=645687

So now, users relying on the google-chrome-stable package to provide Flash for any of their browsers are screwed.  We should update our flash-player-plugin package to provide pepper flash, and soon.

CC: (none) => luigiwalser

Comment 19 Rémi Verschelde 2016-10-26 09:47:21 CEST
(In reply to David Walser from comment #18)
> We should update our
> flash-player-plugin package to provide pepper flash, and soon.

If we decide to build the two in the same SRPM (which might make sense), please ensure to split them into separate binary RPMs. I'm interested in having the PPAPI one but I don't want the NPAPI plugin installed and polluting my Firefox :)
Comment 20 David Walser 2016-10-26 12:41:18 CEST
Indeed.  I don't think we need the NPAPI one anymore.
Comment 21 Giuseppe Ghibò 2016-10-26 14:00:55 CEST
here is my experience, and to resume:

- PPAPI 23.x plugin bundled with freshplayerplugin package wrapper: works locally on a firefox with also freshplayerplugin 0.3.x package installed. Doesn't work remotely (i.e. when firefox is ran trough ssh for instance, haven't tried under NX). The best dir to place the pepper library is /opt/google/chrome/PepperFlash/libpepflashplayer.so, in that way is also recognized by chromium and chrome without any further addition.

A minor glitch exists, and is that if you upgrade freshplayerplugin package without upgrading the ppapi plugin or viceversa just upgrade the ppapi plugin package without the freshplayerplygin, firefox could have difficult in recognizing the change and still thinks to deal with the old version. A trick (that however not always works 100%) is to upgrade the timestamp of both (by just running:

   touch /usr/{lib,lib64}/mozilla/plugins/libfreshwrapper-flashplayer.so
   touch /opt//opt/google/chrome/PepperFlash/libpepflashplayer.so

but in this way would alter the RPM's MD5 (in the timestamp) of the package. Alternatively it can be cleaned $HOME/.mozilla (losing the configuration) or create a new firefox profile. Also dealing with $HOME/.mozilla/firefox/<random>.default/pluginreg.dat might be used as workaround in case of problems about plugin (re)detection.
  
- NPAPI 11.x plugin with flash-player-plugin package. Works with firefox directly. Of course is OLD and mayny sites don't recognize it anymore when asking for a flash player and requires newer one. This package is not only a way for circumventing the license or repackaging restrictions by downloading and repackaging on the fly, but it's also a wrapper that, according to the package SPEC docs, "creates a wrapper plugin that loads both the real Flash Player and the wrapper libhal.so.1", so I guess it creates a further layer between the plugin and the browser (browser which should have already its own sandbox layer for the plugins). Works also when the browser is ran remotely trough SSH.

- NPAPI 23.x native plugin. This has been recently available trough beta Adobe site, but natively under firefox it's actually a lot more unstable than the PPAPI 23.x plugin wrapped into freshplayerplugin. This package is not available in the distro.

When both the plugins (i.e. 23.x PPAPI+freshplayer and 11.x NPAPI native) are installed, firefox recognizes both the versions, and apparently would allow the user to choose which one to active, trough the menu "Tools/Addons/Plugins". Indeed this works only apparently as at the next restarting, firefox chooses always one of them according to its own criteria that appears almost random, despite of the user saved or preferred choice.
Comment 22 Giuseppe Ghibò 2016-10-26 16:46:04 CEST
Apparently using package flash-player-ppapi-plugin-23.0.0.205-2.x86_64.rpm (you can generate this package with the script provided above using at least alien-8.95-4.mga6, and changing the REL at the top of the file to REL=23.0.0.205) and freshplayerplugin-0.3.6-1.mga6, would work also remotely (ssh) on firefox now. You can try installing the YT Flash Player plugin so to use Flash Player instead of HTML5 for YT videos.
Comment 23 Giuseppe Ghibò 2016-10-26 17:01:36 CEST
Ok, I found the source of the inconsistency behaviour (work or doesn't?) in using the pepper flash wrapper remotely trough SSH: if you ran firefox remotely and play some flash video, it works but ONLY if the remote machine has also logged in an X11 session with the same username: the video output will go on the machine you ran the ssh, but the "audio" output will be emitted trough loudspeakers of the remote machine (that's the weirdness), and the playback is smootly. If you logout the remote machine from its local X11 session (apparently such session is not tied to the remote SSH one) and you do the playback trough the first SSH connection, such playback won't work and the video just hangs (it won't crash or anything, just stalls or wait), and thus seems that the pepper flash wrapper is not working.
Comment 24 Otto Leipälä 2016-11-07 20:53:09 CET
(In reply to David Walser from comment #20)
> Indeed.  I don't think we need the NPAPI one anymore.

No we don't we could port this script,it download adobe binary and copy it to google-chrome location automatically even check which arch is used x86 or x86_64.

https://gist.github.com/ruario/215c365facfe8d3c5071
Comment 25 Anssi Hannula 2016-12-17 11:53:24 CET
Today's flash-player-plugin package update (cauldron freeze push sent to ml) includes the PPAPI version of Flash Player and the freshplayerplugin wrapper (and not the Adobe NPAPI Flash version).

Please report any issues.

The PPAPI version is installed in /usr/lib(64)/flash-plugin (the same as upstream Adobe RPMs from adobe.com), but the last point in comment #1 is still valid so Chromium does not find it automatically. So the /usr/bin/chromium-browser shell script still needs to be updated to point there.
Comment 26 Giuseppe Ghibò 2016-12-17 14:32:09 CET
Just three considerations:

- whenever upgrade the flash-player-plugin package you need also to touch the datestamp of the wrapper freshplayerplugin, otherwise the browser wont' detect the upgrade, so remember to upgrade both package, even if the freshplayer hadn't any code change.

- when used remotely e.g. trough ssh the freshplayer doesn't not crash anymore, but slows down the browser so much that it almost hangs. That's the only side-effect I'm aware of.

- please instead of fixing the chromium-browser, add a softlink of the ppapi, to /opt/google/chrome/PepperFlash/libpepflashplayer.so and /opt/google/chrome/PepperFlash/manifest.json. In this way both chromium (as well as upstream chrome) will detect them correctly without any change.
Comment 27 David Walser 2017-07-30 04:59:30 CEST
Giuseppe, I believe the touch the timestamp issue has been fixed.  Do we have any remaining issues or can we close this?
Comment 28 Marja Van Waes 2018-09-29 18:29:43 CEST
(In reply to David Walser from comment #27)
> Giuseppe, I believe the touch the timestamp issue has been fixed.  Do we
> have any remaining issues or can we close this?

No reply and Mageia 5 is no longer supported, so closing as OLD

Please reopen if needed, and change the Version: of this bug report :-)

Status: NEW => RESOLVED
CC: (none) => marja11
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.