Bug 269558

Summary: net-mgmt/icingaweb2: add SHEBANG fix for bin/icingacli
Product: Ports & Packages Reporter: Dan Langille <dvl>
Component: Individual Port(s)Assignee: Jochen Neumeister <joneum>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: flo
Priority: --- Flags: bugzilla: maintainer-feedback? (joneum)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
add SHEBANGFIX none

Description Dan Langille freebsd_committer freebsd_triage 2023-02-14 19:53:09 UTC
Created attachment 240161 [details]
add SHEBANGFIX

This patch fixes this issue when starting vspheredb:

env: php: No such file or directory

The patch changes the first line of /usr/local/www/icingaweb2/bin/icingacli from

#!/usr/bin/env php


to

#!/usr/local/bin/php

This allows the rc.d script to successfully start the daemon.
Comment 1 Florian Smeets freebsd_committer freebsd_triage 2023-02-14 19:58:40 UTC
(In reply to Dan Langille from comment #0)
Hi Dan, this looks like a duplicate of 267367, submitted by you :) ? As that timed out a long time ago i think it's safe to commit based on maintainer timeout. This patch also includes extra hunks that don't belong here I think.
Comment 2 Dan Langille freebsd_committer freebsd_triage 2023-02-14 20:40:31 UTC
(In reply to Florian Smeets from comment #1)
Wow, back in October. I'd forgotten about that. I encountered the problem again today...

Yeah, extra patches included unintentionally.  Thanks. I'll remove that.
Comment 3 Dan Langille freebsd_committer freebsd_triage 2023-02-14 20:41:29 UTC

*** This bug has been marked as a duplicate of bug 267367 ***
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-02-14 20:49:31 UTC
A commit in branch main references this bug:

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

commit bf8338b77fa98dbb1cfe87da864e2af994ef1ace
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2023-02-14 20:47:16 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2023-02-14 20:48:38 +0000

    net-mgmt/icingaweb2: add SHEBANG fix for bin/icingacli

    PR:             269558
    Approved by:    maintainer (via private email)

 net-mgmt/icingaweb2/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 5 Dan Langille freebsd_committer freebsd_triage 2023-02-14 20:51:59 UTC
And I committed with the wrong PR. It should have been 267367