From: Li xin Date: Fri, 3 Jul 2015 09:53:42 +0000 (+0800) Subject: mesa-demos: rename clear X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29840 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c174fd4bfabbae00d947738b06e72d7809eab3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git mesa-demos: rename clear ncurses have already provided clear,so rename it to clear.mesa-demos. [ RB - check that clear exists before moving ] Signed-off-by: Li Xin Signed-off-by: Ross Burton --- diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb index e565442fc67..d58388aabbf 100644 --- a/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb +++ b/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb @@ -48,6 +48,10 @@ PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew" PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" do_install_append() { - # it can be completely empty when all PACKAGECONFIG options are disabled - rmdir --ignore-fail-on-non-empty ${D}${bindir} + # it can be completely empty when all PACKAGECONFIG options are disabled + rmdir --ignore-fail-on-non-empty ${D}${bindir} + + if [ -f ${D}${bindir}/clear ]; then + mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos + fi }