Bug 191737 - [patch] sysutils/zfs-stats: zfs-mon fails to run: env: perl: No such file or directory
Summary: [patch] sysutils/zfs-stats: zfs-mon fails to run: env: perl: No such file or ...
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: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-08 12:06 UTC by Jan Beich
Modified: 2014-07-31 17:31 UTC (History)
1 user (show)

See Also:


Attachments
use shebangfix for all zfs-* scripts (709 bytes, patch)
2014-07-08 12:06 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2014-07-08 12:06:07 UTC
Created attachment 144515 [details]
use shebangfix for all zfs-* scripts

REINPLACE_CMD fix is not applied to zfs-mon which leads to |env -i| erasing PATH that contains /usr/local/bin necessary to find the script.

$ zfs-mon
env: perl: No such file or directory
zsh: exit 127

$ env -i perl
env: perl: No such file or directory
zsh: exit 127

$ env perl
load: 1.81  cmd: perl 39623 [ttyin] 1.27r 0.00u 0.00s 0% 4316k
^C

$ env -i sh
$ echo $PATH
/usr/bin:/bin
$ ^D
Comment 1 Jan Beich freebsd_committer 2014-07-08 12:11:35 UTC
USE_PERL should be disabled in lang/perl* in order to reproduce (see also bug 170219)
Comment 2 commit-hook freebsd_committer 2014-07-31 17:31:34 UTC
A commit references this bug:

Author: wg
Date: Thu Jul 31 17:31:14 UTC 2014
New revision: 363642
URL: http://svnweb.freebsd.org/changeset/ports/363642

Log:
  sysutils/zfs-stats: fix zfs-mon shebang

  PR:		191737
  Submitted by:	Jan Beich
  Approved by:	maintainer (timeout)

Changes:
  head/sysutils/zfs-stats/Makefile