Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392347 - www-client/chromium add "nacl" use flag
Summary: www-client/chromium add "nacl" use flag
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
: 406211 429474 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-29 03:52 UTC by Anton Kochkov
Modified: 2015-05-23 14:30 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Make Native Client optional, controlled by "nacl" USE flag (enabled per default) (opt-nacl.patch,13.91 KB, patch)
2012-03-06 19:33 UTC, Luke-Jr
Details | Diff
Updated patch to make NaCL support optional (patch,18.63 KB, patch)
2013-03-29 01:24 UTC, Luke-Jr
Details | Diff
ebuild for building chromium-43.0.2357.73 with NaCl (chromium-43.0.2357.73.ebuild,19.88 KB, text/plain)
2015-05-23 00:44 UTC, Kelvin Ng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2011-11-29 03:52:52 UTC
Is it possible add "nacl" use flag into chromium ebuild?
Comment 1 Mike Gilbert gentoo-dev 2011-11-29 03:57:32 UTC
Why?
Comment 2 Anton Kochkov 2011-11-29 04:35:53 UTC
(In reply to comment #1)
> Why?

To exclude building huge independent nacl toolchain
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-11-29 07:31:21 UTC
NaCl is not that popular yet, but when web pages start relying on it, having it optional may break them.

I don't think the toolchain is really so bad. You should only need to build it once. Compared to cumulative compile time of frequently updated chromium, toolchain compilation time should be a minority.

By the way, the upstream's disable_nacl gyp switch may break from time to time.
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-28 20:24:20 UTC
*** Bug 406211 has been marked as a duplicate of this bug. ***
Comment 5 Luke-Jr 2012-02-28 20:43:59 UTC
(In reply to comment #3)
> NaCl is not that popular yet, but when web pages start relying on it, having
> it optional may break them.

Is Gentoo going to force Flash and Java also then?

> By the way, the upstream's disable_nacl gyp switch may break from time to
> time.

They support it. Why can't Gentoo allow it on versions where it works?
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-29 08:27:07 UTC
(In reply to comment #5)
> Is Gentoo going to force Flash and Java also then?

No, but this is different: NaCl is part of the package in question.

> > By the way, the upstream's disable_nacl gyp switch may break from time to
> > time.
> 
> They support it. Why can't Gentoo allow it on versions where it works?

Who told you it's supported? I've seen at least 3 various breakages, and was talking in person to people responsible for it (and also I'm an upstream developer). Those various switches are not really supported, or in other words are supported until they break.
Comment 7 Luke-Jr 2012-02-29 13:46:54 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Is Gentoo going to force Flash and Java also then?
> 
> No, but this is different: NaCl is part of the package in question.

How so? It might not use a standard plugin API, but it's still an optional external package.

> > > By the way, the upstream's disable_nacl gyp switch may break from time to
> > > time.
> > 
> > They support it. Why can't Gentoo allow it on versions where it works?
> 
> Who told you it's supported? I've seen at least 3 various breakages, and was
> talking in person to people responsible for it (and also I'm an upstream
> developer). Those various switches are not really supported, or in other
> words are supported until they break.

thakis and traxmac; I'm mainly taking about Chromium releases, which are going to have a const value of "is it broken" at least.
Comment 8 Luke-Jr 2012-03-06 19:33:46 UTC
Created attachment 304441 [details, diff]
Make Native Client optional, controlled by "nacl" USE flag (enabled per default)

Here is a patch against the current portage tree to make NaCL optional. I have tested all the release versions, and all of them work fine without NaCL.
Comment 9 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-03-06 19:48:02 UTC
(In reply to comment #8)
> Created attachment 304441 [details, diff] [details, diff]
> Make Native Client optional, controlled by "nacl" USE flag (enabled per
> default)
> 
> Here is a patch against the current portage tree to make NaCL optional. I
> have tested all the release versions, and all of them work fine without NaCL.

No, we're not going to accept this patch. Sorry.

I really hope I have explained the rationale, and at some point someone is going to say "no" to Yet Another USE Flag.
Comment 10 Luke-Jr 2012-03-06 20:12:35 UTC
USE flags is half the point of Gentoo. In this case, you're forcing non-free software on people unnecessarily, so it's also a violation of Gentoo's Social Contract.
Comment 11 Alec Warner (RETIRED) archtester gentoo-dev Security 2012-03-06 21:47:30 UTC
Phajdan gets to pick what patches he accepts; I'm certainly not in a position to judge. If Chromium was the only browser available in Gentoo I might be swayed by your contract argument; but there are many available.

-A
Comment 12 Luke-Jr 2012-03-06 22:42:54 UTC
(In reply to comment #11)
> If Chromium was the only browser available in Gentoo I might be
> swayed by your contract argument; but there are many available.

Chromium is the only *stable* browser... :/
Comment 13 Luke-Jr 2012-03-07 14:10:04 UTC
To make it worse, NaCL isn't even an option for non-x86 (ARM). So this is a case where the feature is forced on x86, and not available on other arches. Totally awkward.
Comment 14 igel 2012-06-12 13:00:25 UTC
I second the notion of having nacl as a use flag. This is exactly what useflags are for (in my book). If the ebuilds don't make use of the very fabric of gentoo, we can all go use debian or something.

If a potential "nacl" useflag is enabled by default, the dont-care-user wont even notice and the do-care-user can decide for himself to do something you don't agree with (namely exclude nacl from his chromium).

"I don't think it's so bad" is really not an argument to forbid disabling it imho. Your opinion is valuable, but that doesn't mean it is the good to force it on other people.

"the upstream's disable_nacl gyp switch may break from time to time." - this is indeed a good point, but only people who deliberately disabled nacl would see this; there are a number of ways for an ebuild to communicate to the user that a configure-breakage is (or might be) due to disabling nacl.

"NaCl is part of the package in question" - with this argument, you'd have to remove 50% of all useflags, since they just enable/disable features that are part of the "package in question".

"at some point someone is going to say "no" to Yet Another USE Flag" - as I tried to state above, useflags are an essential part of what makes gentoo great! I love with being able to tweak my system to what I really want. mplayer has about 90 useflags, chromium has 5 - don't worry it wont get overcrowded so soon...

As I see the matter, your arguments are mostly invalid, whereas Luke-Jr has excellent points. Please, heed my call, do not force things on your users, let them choose, because choice that's what gentoo is all about in my book!

PS: It is a good strategy if you want your users to learn write their own ebuilds, I give you that, but that's not what an ebuild maintainer should be after if you ask me...
Comment 15 Mike Gilbert gentoo-dev 2012-08-02 16:09:12 UTC
*** Bug 429474 has been marked as a duplicate of this bug. ***
Comment 16 Luke-Jr 2012-08-02 16:20:16 UTC
FWIW, I've been maintaining a NaCL-optional branch of the ebuilds in my personal overlay (layman -a luke-jr). I don't update it too often, though.

Bug 429474 is interesting; is NaCL still a problem on ARM? Older chromium ebuilds forced it disabled on ARM as a special case, but that was removed in the newer ones...
Comment 17 Luke-Jr 2013-03-29 01:24:35 UTC
Created attachment 343566 [details, diff]
Updated patch to make NaCL support optional

Can we get this reopened yet? I've been maintaining my overlay with this one patch updated in chromium ebuilds for over a full year now, but it's getting tiresome! Over the past year, I have never seen a stable build where it doesn't work either - it seems the whole "upstream's disable_nacl gyp switch may break from time to time" claim is either history or FUD. People obviously want the choice, and it does no harm to those who want nacl support.
Comment 18 Kelvin Ng 2015-05-23 00:44:22 UTC
Created attachment 403796 [details]
ebuild for building chromium-43.0.2357.73 with NaCl

Why don't you let the users make their choice? Just set the USE flag not enabled by default!
Comment 19 Mike Gilbert gentoo-dev 2015-05-23 14:30:50 UTC
(In reply to Kelvin Ng from comment #18)
> Created attachment 403796 [details]
> ebuild for building chromium-43.0.2357.73 with NaCl
> 
> Why don't you let the users make their choice? Just set the USE flag not
> enabled by default!

This bug was about optionally *disabling* NaCl back in the days when we still had it enabled unconditionally.

If you have managed to make NaCl work with recent versions of chromium, please attach a patch to bug 541610. I don't want to resurrect this old, largely irrelevant bug report.