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

Why isn't Intellij community edition build from source? #26866

Closed
liamwigney opened this issue Jun 26, 2017 · 21 comments
Closed

Why isn't Intellij community edition build from source? #26866

liamwigney opened this issue Jun 26, 2017 · 21 comments
Labels
0.kind: packaging request Request for a new package to be added

Comments

@liamwigney
Copy link

No description provided.

@Mic92
Copy link
Member

Mic92 commented Jun 26, 2017

Probably because nobody made the effort to build it from source. Archlinux seems to have taken the same route: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/intellij-idea-community-edition

It look like it requires intellij to build intellij, which would make bootstrapping challenging.

@copumpkin
Copy link
Member

Might be nice to make a Project (that tab next to Pull Requests) for "big gnarly binary packages that we'd like to build from source" so we can track things like this, Electron, bazel, openjdk for mac, and a few others. Then motivated folks could go browse them and figure out how to turn them into source builds.

I wouldn't say that bootstraps are fundamentally bad but they do make builds more annoying. The OpenJDK build for Linux currently has a bootstrap expression for building a bootstrap compiler that then gets fetched to build the one we actually use. It's a fairly common pattern and not an awful one (unless you want source builds because you're afraid of Ken Thompson attacking you; then you're probably out of luck)

@copumpkin
Copy link
Member

Okay, did the project thing. Feel free to add stuff.

@vcunat
Copy link
Member

vcunat commented Jun 26, 2017

AFAIK Java stuff in nixpkgs is often handled this way, as there are yet few nixpkgs contributors that work on Java packages.

@copumpkin
Copy link
Member

Yeah, and also bootstrapping the java package world from scratch is genuinely terrifying.

@vcunat
Copy link
Member

vcunat commented Jun 26, 2017

The advantage is that you can "update" arbitrary packages independently, AFAIK, so it wouldn't seem too terrifying to me to start with the most interesting stuff for the interested (potential) contributors.

@copumpkin
Copy link
Member

Yeah, just saying that building all the really low-level maven stuff that everyone else uses is going to be a big PITA.

@glglwty
Copy link

glglwty commented Aug 25, 2018

IMO there should be a meta field to protect people who don't want blobs from accidentally installing those packages. Licence doesn't express that.

@vcunat
Copy link
Member

vcunat commented Aug 25, 2018

See another thread for that.

@stale
Copy link

stale bot commented Jun 4, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

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

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

stale bot commented Mar 16, 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 Mar 16, 2021
@GenericNerdyUsername
Copy link
Contributor

Is the goal for this to compile just the ide from source, or the ide+dependencies? Former seems somewhat redundant, latter is probably a pretty big task

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 25, 2023
@GenericNerdyUsername
Copy link
Contributor

Also, theres mention of a docker build method in the readme, which might be worth a shot

@GenericNerdyUsername
Copy link
Contributor

ive looked into this some more, turns out they have their own build system (JPS), but also use others in various places (ant, gradle, maven). As far as I can tell, JPS is exclusive to jetbrains and has no documentation, or at least none that I can find. They do include a bootstrap utility, but it downloads classes via maven that are part of the source tree, which means we have three options: using the downloaded classes (kinda defeats the point of building from source), making a JPS builder that doesn't have this problem (a lot of effort) or using past versions to build our way up to the current one (hacky, also a lot of work)

@GenericNerdyUsername
Copy link
Contributor

Theres also a libdbm.so binary there, which I can't find the source of, unless its an old database thing from oracle or this random project with 5 stars

@GenericNerdyUsername
Copy link
Contributor

Im not very well versed in java build systems, so theres a good chance I've missed something, but the way the docker container does it seems like a no-go

@YoshiRulz
Copy link
Contributor

Theres also a libdbm.so binary there, which I can't find the source of, unless its an old database thing from oracle or this random project with 5 stars

From commit history, looks to be "DBus menu wrapper" https://github.com/JetBrains/intellij-community/tree/master/native/LinuxGlobalMenu

@GenericNerdyUsername
Copy link
Contributor

pull #259373 isn't done, but might be of interest

@FliegendeWurst FliegendeWurst added the 0.kind: packaging request Request for a new package to be added label Nov 12, 2023
@MattSturgeon
Copy link
Contributor

This can be closed as completed

@samueldr
Copy link
Member

Closing, assumed this is right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added
Projects
None yet
Development

No branches or pull requests