Re: Packaging Netbeans on Gentoo

"William L. Thomson Jr." <[email protected]> Fri, 24 Nov 2017 17:20:07 -0500
Newsgroups gmane.comp.java.netbeans.devel
Organization Obsidian-Studios, Inc.
Message-ID <[email protected]>
--Sig_/wACy+n7cbii5EYxk=B94_S0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Fri, 24 Nov 2017 21:46:27 +0000
Stanislav Baiduzhyi <[email protected]> wrote:

> William,
>=20
> It seems like you are trying to do it the hard way.=20

Gentoo does everything the hard way. But they say the best things in
life do not come easily.  Either way I like the hard way :P

Actually not really that hard to me. I found working with ant and the
way the current 8.2 is packaged to be much harder. Took way more time
and made less progress. Keep in mind I package lots of stuff this way,
eclipse, jetty, jersey, netty, etc.

Its become routine for me, trivial for the most part. Aside from
replicating how things were originally. Though that is not really the
goal. Modularity and only having what you need is the goal.

> I tried something similar too, but it seemed to be too complicated
> with very little actual benefit, so I did it the easy way:
> https://build.opensuse.org/package/view_file/home:tuxjdk/netbeans/netbean=
s.spec?expand=3D1

Thanks I will review and cherry pick if i can.

Keep in mind I am not building it once and shipping binaries. Gentoo is
a from source distro. All packages build from source. I need to have
means to build it all the time. Not to mention reducing dependencies to
an absolute minimum.

That was the idea when splitting it up on Gentoo. It used to be 1
netbeans package, vs several. It has some ENV vars to control pieces.
But I do not believe it was every fully worked out. Such that you did
not need all enabled but could have pieces.

NETBEANS_MODULES=3D"apisupport groovy gsf harness ide java javafx j2ee nb
webcommon websvccommon visualweb"

You will see each of those packages on gentoo, netbeans-apisupport,
netbeans-groovy, etc. But pretty sure you still need all, cannot have
just say java, javafx, j2ee, and nb. What if I do not want groovy, as
an example.

When I am doing it will be like USE flags. You will enable Netbeans
modules/clusters via USE flag. The USE flag set will bring in other
pieces to build of Netbeans. Without you get a slimmed down minimal UI.
I doubt this has been attempted before, at least not shipping binaries
as the result. This way each user may have a bit different Netbeans
based on their needs.

> Breaking the cluster is mostly replicated from actual NetBeans
> packages.

A past dev managed to pull off how it was now in Gentoo. But there was
a lot more work needed to fully refine. I am going a different
direction and feel it will be a better one. I think time was it is a
trade off and wash.

Thus far I am not sure clusters is a problem or causing any issues.
Other than needing files at startup. How they are used I have yet to
come across.

--=20
William L. Thomson Jr.

--Sig_/wACy+n7cbii5EYxk=B94_S0
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQTEeldqZjmVut8bVHJNcbKkg6ozUAUCWhibFwAKCRBNcbKkg6oz
UOZ0AKCdwuMEm5Xdvp16BG4bSe7K1i07AgCfZU96w/CUwqlox05DHM36lLOQT18=
=o76k
-----END PGP SIGNATURE-----

--Sig_/wACy+n7cbii5EYxk=B94_S0--