Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656278 - electron.eclass : package electron apps according to gentoo packaging standards
Summary: electron.eclass : package electron apps according to gentoo packaging standards
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-22 12:04 UTC by Nathan Dehnel
Modified: 2019-12-17 23:12 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Dehnel 2018-05-22 12:04:45 UTC
So I looked in the atom ebuild, and it's huge. It also says it was generated by a python script in the atom overlay. So I looked and that script and it's huge, and also atom-specific. So I think an eclass should be made to facilitate packaging general electron apps "correctly".
Comment 1 Elvis Pranskevichus 2018-05-22 16:57:52 UTC
One reason the script is there is to find out all the binary dependencies by going through the dependency tree.  It's a ton of tedious work to do manually and a eclass wouldn't really help with that.  

Another reason why I think going eclass is a bit premature is that app-editors/atom is so far the only package that depends on electron, so it's hard to identify and extrapolate the commonalities with other such packages.
Comment 2 Nathan Dehnel 2018-05-23 05:52:41 UTC
(In reply to Elvis Pranskevichus from comment #1)
>a eclass wouldn't really help with that.  
Really?
> Another reason why I think going eclass is a bit premature is that
> app-editors/atom is so far the only package that depends on electron, so
> it's hard to identify and extrapolate the commonalities with other such
> packages.
The only electron app in existence or the only one in the tree? I just packaged another electron app, but all it does is dump the whole thing in /opt. And I see a third one I might package someday.
Comment 3 Elvis Pranskevichus 2018-05-23 14:08:57 UTC
If someone(In reply to Nathan Dehnel from comment #2)
> The only electron app in existence or the only one in the tree? I just
> packaged another electron app, but all it does is dump the whole thing in
> /opt. And I see a third one I might package someday.

In such case you are welcome to help out with writing the electron.eclass.
Comment 4 Cecil Curry 2019-12-17 23:12:38 UTC
I second Nathan's motion for an "electron.eclass". As Atom ebuilds demonstrate, packaging Electron-based apps is absurdly non-trivial. As Electron goes mainstream, an official eclass would reduce everyone's maintenance burden.

In my case, I'd like to package HakuNeko (https://github.com/manga-download/hakuneko), an Electron-based manga aggregator. It's unclear where exactly to start, though. I'll probably end up defaulting to Nathan's ad-hoc "solution" of stuffing everything into /opt -- which, of course, runs contrary to the Gentoo ethos in every possible way.

An Electron eclass might have been premature in mid-2018, when this feature request was first filed. Today, in late 2019, a proper eclass is all but mandatory for sane packaging of this popular ecosystem. Electron isn't going anywhere. Let's get this right as early as possible and save everyone a heavy load of bitrot.