summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2014-06-13 10:48:13 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-14 08:43:55 +0100
commit634c19eedf8bef1da4216643e9e331c985bae5af (patch)
treee332ebf73c57a7d0970df229ccbd917d62ccdd3a /meta/recipes-extended
parentbcef58953abd45c8d4d34e93f2666d6ad61a836f (diff)
downloadpoky-634c19eedf8bef1da4216643e9e331c985bae5af.tar.gz
stat: use update-alt for stat
Three different recipes provide the stat program, busybox, coreutils and stat. Ensure that they are installed to the same place and use update-alternative with the correct priorities to have the correct binary installed. [YOCTO #6415] (From OE-Core rev: 2abc776393f8b5574dd9cf614ff1ae4b460e4d8c) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/stat/stat_3.3.bb11
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/recipes-extended/stat/stat_3.3.bb b/meta/recipes-extended/stat/stat_3.3.bb
index c9edb1de5b..6754fb8cbd 100644
--- a/meta/recipes-extended/stat/stat_3.3.bb
+++ b/meta/recipes-extended/stat/stat_3.3.bb
@@ -12,10 +12,17 @@ SRC_URI[md5sum] = "37e247e8e400ad9205f1b0500b728fd3"
12SRC_URI[sha256sum] = "7071f0384a423a938dd542c1f08547a02824f6359acd3ef3f944b2c4c2d1ee09" 12SRC_URI[sha256sum] = "7071f0384a423a938dd542c1f08547a02824f6359acd3ef3f944b2c4c2d1ee09"
13 13
14do_install() { 14do_install() {
15 install -d ${D}${bindir} ${D}${mandir}/man1 15 install -d ${D}${base_bindir} ${D}${mandir}/man1
16 install -m 755 stat ${D}${bindir} 16 install -m 755 stat ${D}${base_bindir}/stat.stat
17 install -m 644 stat.1 ${D}${mandir}/man1 17 install -m 644 stat.1 ${D}${mandir}/man1
18} 18}
19 19
20inherit update-alternatives
21
22ALTERNATIVE_${PN} = "stat"
23ALTERNATIVE_PRIORITY[stat] = "200"
24ALTERNATIVE_LINK_NAME[stat] = "${base_bindir}/stat"
25ALTERNATIVE_TARGET[stat] = "${base_bindir}/stat.stat"
26
20BBCLASSEXTEND = "native" 27BBCLASSEXTEND = "native"
21 28