Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove configurable Java support in browsers, or comment that it does not work? #84909

Open
nh2 opened this issue Apr 10, 2020 · 8 comments
Open

Comments

@nh2
Copy link
Contributor

nh2 commented Apr 10, 2020

It seems that Java browser applet support is completely broken (upstream and for nixpkgs), and these wiki resources as well as the code in the Firefox wrapper.nix are just misleading and inviting people to spend time on what cannot work anyway.

Does anybody know if it is actually possible to build any browser with Java support in nixpkgs >= 20.03?

If no, I think we should update the wiki and remove these pluging options, or at least comment that they do not work unless you override e.g. Firefox with a much older source code version that nixpkgs does not provide.

@nh2
Copy link
Contributor Author

nh2 commented Apr 10, 2020

I have added a sentence in the Firefox and Chromium wiki articles until this is cleared up:

Note: It is not clear whether this section is out of date, and whether any Firefox release in Nixpkgs allows to use Java. See #84909.

@danbst
Copy link
Contributor

danbst commented Apr 17, 2020

note, that even if this gonna to be removed, it is still possible to launch Firefox+IcedTea from prebuilt binaries with following overlay entry:

  firefofx-esr-icedtea = with (import (builtins.fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/0a70d65fd471e30fc1f300cc4eebaf18b56d90b8.tar.gz) {
    config = {
      firefox = {
        icedtea = true;
      };
    };
  });
    wrapFirefox firefoxPackages.firefox-esr-52 { };

I'm active user of this because of banking software (sigh).

I also think it's possible to build this from current nixpkgs with:

  ff_java = (import <nixpkgs> {
    config = {
      permittedInsecurePackages = [
        "firefox-52.9.0esr"
        "firefox-esr-unwrapped-52.9.0esr"
      ];
      firefox = {
        icedtea = true;
      };
    };
  }).firefox-esr-52;

however I never tried to rebuild ff from source.

@xaverdh
Copy link
Contributor

xaverdh commented Apr 17, 2020

Building from current nixpkgswont work since #79115 was merged. Well not on current master anyway.

@stale
Copy link

stale bot commented Oct 14, 2020

Hello, I'm a bot and I thank you in the name of the community for opening this issue.

To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 14, 2020
@nh2
Copy link
Contributor Author

nh2 commented Oct 14, 2020

Firefox

I think Java applet support is now completely gone. https://github.com/NixOS/nixpkgs/blob/0b8799ecaaf0dc6b4c11583a3c96ca5b40fcfdfb/pkgs/applications/networking/browsers/firefox/packages.nix has Firefox ESR 78 which has no support.

So I think we should update the wiki articles to reflect that.

@xaverdh has removed the misleading attributes in PR #85307 for Firefox.

@danbst Would you be up for updating the wiki to share your exact current workaround that uses old nixpkgs? I imagine there are more legacy banking users that would appreciate it.

Chromium

@gebner You udated the jre argument to Chromium in 705ecdc, do you know if it actually still works?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 14, 2020
@gebner
Copy link
Member

gebner commented Oct 14, 2020

@gebner You udated the jre argument to Chromium in 705ecdc, do you know if it actually still works?

On the contrary, I didn't update anything in chromium. Chromium was already using openjre8 (because jre = jre8). I then updated the default jre attribute to openjdk14, and changed chromium to use jre8 explicitly so that I don't need to rebuild it.

I have no idea what chromium uses the jre for, could we upgrade it to openjdk14?

@stale
Copy link

stale bot commented Jun 7, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 7, 2021
@primeos
Copy link
Member

primeos commented Jun 7, 2021

I've dropped the Java section of the Chromium page in the NixOS wiki:
https://nixos.wiki/index.php?title=Chromium&type=revision&diff=5826&oldid=5673

https://www.java.com/en/download/help/chrome.html states:

The Java Plugin for web browsers relies on the cross-platform plugin architecture NPAPI, which had been supported by all major web browsers for over a decade. Google's Chrome version 45 and above have dropped support for NPAPI, and therefore Java Plugin do not work on these browsers anymore.

IIRC Java is being completely removed from Chromium (although last I've checked it was unfortunately still required for building on Linux... :o).

Edit: I also didn't see a Java related configuration option for Chromium anymore. Can we close this issue then?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants