FS#54877 - [elasticsearch] Compile from source instead of redistribute precompiled java

Attached to Project: Community Packages
Opened by Levente Polyak (anthraxx) - Wednesday, 19 July 2017, 16:47 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 11 September 2020, 22:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Sven-Hendrik Haase (Svenstaro)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Currently elasticsearch PKGBUILD just repackages precompiled java files, we should build from source code instead of shipping magically precompiled binary files.

Sources are available at github:
https://github.com/elastic/elasticsearch

Fedora spec files for inspiration:
https://src.fedoraproject.org/cgit/rpms/elasticsearch.git/tree/elasticsearch.spec

cheers,
Levente
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 11 September 2020, 22:02 GMT
Reason for closing:  Fixed
Comment by Massimiliano Torromeo (mtorromeo) - Wednesday, 19 July 2017, 17:49 GMT
While I would also like to have a package built from source I am not super excited to get my hands dirty with Maven.
I am not familiar with it.

I'll try tackling this when I have some spare time but patches are welcome.
Comment by Levente Polyak (anthraxx) - Wednesday, 19 July 2017, 18:41 GMT
Sure, i will invest some time and see if i can get a sane progress
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 15 July 2020, 04:02 GMT
Since there wasn't a whole lot of progress here and since I needed this compiled from source for other reasons, I took a stab at this. I managed to compile this from source and refactored the package a bit. I put the new package in [community-testing]. Have a look.
Comment by Massimiliano Torromeo (mtorromeo) - Tuesday, 21 July 2020, 15:43 GMT
Hi Sven,
I installed the package from testing at at first glance it seems fine but I am not using it anymore since a while ago so I don't have an application to stress test it.
One thing that I noticed is that the package is quite a bit larger. I am not sure if it's due to the update to version 7.8 or something else but it seems odd.
Comment by Levente Polyak (anthraxx) - Tuesday, 21 July 2020, 16:01 GMT
it basically contains more pre installed modules if you compare both usages as a heatmap
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 07 September 2020, 03:30 GMT
Guys, this has been sitting here for some time and the other elasticsearch packages are also out of date. Can one of you look at this?
Comment by Massimiliano Torromeo (mtorromeo) - Monday, 07 September 2020, 09:06 GMT
I'm sorry. You wanted me to move it from [community-testing]?
I thought you would do it yourself once you had the feedback you were looking for, which I gave you and I also signed off the previous version of the package that was in [community-testing].
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 11 September 2020, 02:59 GMT
Well, we'd need to move the whole elasticsearch suite as you don't want just elasticsearch updated and built from source while all the related packages are just trailing behind. It seems nobody is really taking care of that right now.
Comment by Massimiliano Torromeo (mtorromeo) - Friday, 11 September 2020, 12:29 GMT
I updated the whole stack and moved elasticsearch

Loading...