From owner-freebsd-ports-bugs@freebsd.org Sat Apr 7 21:07:59 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6CE25F8593A for ; Sat, 7 Apr 2018 21:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4C0C677B7A for ; Sat, 7 Apr 2018 21:07:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 06FBBF85926; Sat, 7 Apr 2018 21:07:58 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6BDEF85920 for ; Sat, 7 Apr 2018 21:07:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A47D77AE7 for ; Sat, 7 Apr 2018 21:07:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D7F2610312 for ; Sat, 7 Apr 2018 21:07:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w37L7rMP016463 for ; Sat, 7 Apr 2018 21:07:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w37L7rD3016454 for ports-bugs@FreeBSD.org; Sat, 7 Apr 2018 21:07:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 227354] textproc/elasticsearch6 is fails to start because java PATH from env is not passed to it Date: Sat, 07 Apr 2018 21:07:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jamie.baxter@tutanota.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: feld@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 21:07:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227354 Bug ID: 227354 Summary: textproc/elasticsearch6 is fails to start because java PATH from env is not passed to it Product: Ports & Packages Version: Latest Hardware: Any URL: https://forums.freebsd.org/threads/textproc-elasticsea rch6-does-not-honour-etc-profile.65338/ OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: feld@FreeBSD.org Reporter: jamie.baxter@tutanota.com Assignee: feld@FreeBSD.org Flags: maintainer-feedback?(feld@FreeBSD.org) Created attachment 192319 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D192319&action= =3Dedit Diff file for additions to elasticsearch.in to set & export JAVA_HOME When elasticsearch6 is started from the rc.subr system on a default installation, it fails to initialize because the path for java (JAVA_HOME=3D/usr/local/openjdk8) is not passed to it (adding the path to /etc/profile does not work as rc does not import from profile). JAVA_HOME can be added through an additional (but possibly less recognized) rcvar ${portname}_env=3D"JAVA_HOME=3D/usr/local/openjdk8", but even fresh installations would necessitate this call (there does not appear to be any documentation to suggest this fix). It might be instead better to declare JAVA_HOME in the rc script similar to sysutils/logstash6 (which also depends on java/openjdk8 in a similar manner= ), where an rcvar declares a default JAVA_HOME & exports the value. See attached diff for files/elasticsearch6.in as an example. --=20 You are receiving this mail because: You are the assignee for the bug.=