Bug 256921 - textproc/elasticsearch7: [PATCH] support tools fail to find java correctly
Summary: textproc/elasticsearch7: [PATCH] support tools fail to find java correctly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-01 15:41 UTC by Palle Girgensohn
Modified: 2021-07-06 20:47 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (elastic)


Attachments
properly find java in elasticsearch support tools (1.33 KB, patch)
2021-07-01 15:41 UTC, Palle Girgensohn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Palle Girgensohn freebsd_committer 2021-07-01 15:41:36 UTC
Created attachment 226153 [details]
properly find java in elasticsearch support tools

# /usr/local/lib/elasticsearch/bin/elasticsearch-cli 
could not find java in bundled jdk at /usr/local/lib/elasticsearch/jdk/bin/java


This should be easily solved using the attached patch.
Comment 1 Juraj Lutter freebsd_committer 2021-07-01 15:46:45 UTC
Thanks for the report. It will be included in upcoming big 7.x update.
Comment 2 commit-hook freebsd_committer 2021-07-06 20:45:16 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f950a15f3858d0b8abdb4357219058c3eed56fca

commit f950a15f3858d0b8abdb4357219058c3eed56fca
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2021-07-03 21:41:57 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2021-07-06 20:44:37 +0000

    textproc/elasticsearch7: Update to 7.13.2

    - Update to 7.13.2
    - Fix support tools to find java correctly [1]
    - Needs enforce_statfs = 1 in jails [2]
    - Fix rc order [3]

    PR:             256921 [1]
    PR:             254777 [2]
    PR:             254776 [3]

 textproc/elasticsearch7/Makefile                   |  7 +++---
 textproc/elasticsearch7/distinfo                   |  6 ++---
 textproc/elasticsearch7/files/elasticsearch.in     |  6 ++---
 .../files/patch-bin_elasticsearch-env (new)        | 26 ++++++++++++++++++++++
 .../files/patch-config_elasticsearch.yml           |  4 ++--
 .../elasticsearch7/files/patch-config_jvm.options  |  4 ++--
 textproc/elasticsearch7/files/pkg-message.in       |  6 +++++
 7 files changed, 46 insertions(+), 13 deletions(-)