From ba505f90d8a1c1c8608fd7ba24b108e8f15b65e0 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 10 Jun 2019 12:08:53 -0400 Subject: [PATCH] arc_summary: prefer python3 version and install when there is no python This matches the behavior of other python scripts, such as arcstat and dbufstat, which are always installed but whose install-exec-hook actions will simply touch up the shebang if a python interpreter was configured *and* that interpreter is a python2 interpreter. Fixes installation in a minimal build chroot without python available. Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: Eli Schwartz Closes #8851 --- cmd/arc_summary/Makefile.am | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/arc_summary/Makefile.am b/cmd/arc_summary/Makefile.am index a83edffadc..7d83624d66 100644 --- a/cmd/arc_summary/Makefile.am +++ b/cmd/arc_summary/Makefile.am @@ -4,9 +4,7 @@ if USING_PYTHON_2 dist_bin_SCRIPTS = arc_summary2 install-exec-hook: mv $(DESTDIR)$(bindir)/arc_summary2 $(DESTDIR)$(bindir)/arc_summary -endif - -if USING_PYTHON_3 +else dist_bin_SCRIPTS = arc_summary3 install-exec-hook: mv $(DESTDIR)$(bindir)/arc_summary3 $(DESTDIR)$(bindir)/arc_summary