diff options
author | Mike Frysinger | 2014-10-24 18:26:12 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-31 10:38:53 +0100 |
commit | 346dc42381aa035d404ae8c3faa4734ab64f828f (patch) | |
tree | 5b2ce288fc65e0ae6dbf7a41648fb7b5fbc27bda /bash-completion/Makemodule.am | |
parent | build-sys: properly check for -lrt (diff) | |
download | kernel-qcow2-util-linux-346dc42381aa035d404ae8c3faa4734ab64f828f.tar.gz kernel-qcow2-util-linux-346dc42381aa035d404ae8c3faa4734ab64f828f.tar.xz kernel-qcow2-util-linux-346dc42381aa035d404ae8c3faa4734ab64f828f.zip |
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 <vapier@gentoo.org>
Diffstat (limited to 'bash-completion/Makemodule.am')
-rw-r--r-- | bash-completion/Makemodule.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am index 271a6db6e..d65cc8f51 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 |