From: Mike Frysinger Date: Fri, 24 Oct 2014 16:26:12 +0000 (-0400) Subject: bash-completion: fix runuser install X-Git-Tag: v2.26-rc1~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=346dc42381aa035d404ae8c3faa4734ab64f828f;p=thirdparty%2Futil-linux.git bash-completion: fix runuser install The runuser symlink used to depend on su being enabled, but a refactoring broke that. So if you build with runuser enabled but not su, you end up with a broken symlink. Rework the logic so it works in both cases. Signed-off-by: Mike Frysinger --- diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am index 271a6db6ea..d65cc8f51f 100644 --- a/bash-completion/Makemodule.am +++ b/bash-completion/Makemodule.am @@ -154,7 +154,11 @@ endif if BUILD_RUNUSER install-data-hook-bashcomp-runuser:: +if BUILD_SU ln -sf su $(DESTDIR)$(bashcompletiondir)/runuser +else + cp $(top_srcdir)/bash-completion/su $(DESTDIR)$(bashcompletiondir)/runuser +endif INSTALL_DATA_HOOKS += install-data-hook-bashcomp-runuser endif