]> code.ossystems Code Review - openembedded-core.git/commitdiff
which: fix it so the manpage will respect alternatives
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 16 Mar 2017 14:20:53 +0000 (10:20 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Mar 2017 11:55:24 +0000 (11:55 +0000)
To fix:

  file /usr/share/man/man1/which.1 conflicts between attempted installs
  of debianutils-doc-4.8.1-r0.core2_64 and which-doc-2.21-r3.core2_64

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/which/which_2.21.bb
meta/recipes-support/debianutils/debianutils_4.8.1.bb

index a7687f6fe43cab6c6f20dd98fb39baadf0628291..fac0fd3944b68b9f22bcb7a27d40abb6f4adb821 100644 (file)
@@ -30,3 +30,6 @@ do_configure_prepend() {
 
 ALTERNATIVE_${PN} = "which"
 ALTERNATIVE_PRIORITY = "100"
+
+ALTERNATIVE_${PN}-doc = "which.1"
+ALTERNATIVE_LINK_NAME[which.1] = "${mandir}/man1/which.1"
index 54c74e097c0369d44829f8c1aaf03966d74d4a74..54c345ea25f6f900dcac9db0013d5d70c24a570c 100644 (file)
@@ -40,6 +40,9 @@ ALTERNATIVE_PRIORITY="30"
 ALTERNATIVE_${PN} = "add-shell installkernel remove-shell savelog tempfile which"
 ALTERNATIVE_${PN}-run-parts = "run-parts"
 
+ALTERNATIVE_${PN}-doc = "which.1"
+ALTERNATIVE_LINK_NAME[which.1] = "${mandir}/man1/which.1"
+
 ALTERNATIVE_LINK_NAME[add-shell]="${sbindir}/add-shell"
 ALTERNATIVE_LINK_NAME[installkernel]="${sbindir}/installkernel"
 ALTERNATIVE_LINK_NAME[remove-shell]="${sbindir}/remove-shell"