Patchwork [4/8] ncurses: fix install error

login
register
mail settings
Submitter Nitin A Kamble
Date March 15, 2012, 2:02 a.m.
Message ID <bb41438db25e3bf0090107a59a533660052ccceb.1331776832.git.nitin.a.kamble@intel.com>
Download mbox | patch
Permalink /patch/23367/
State Accepted
Commit 1e6dce3228a483b2367286e49c4aa8a71733dcbb
Headers show

Comments

Nitin A Kamble - March 15, 2012, 2:02 a.m.
From: Nitin A Kamble <nitin.a.kamble@intel.com>

Fix this issue:
| rm: cannot remove `/srv/home/nitin/builds/build-multilib/tmp/work/x86_64-poky-linux/ncurses-5.9-r6.1/image/usr/lib64/terminfo': No such file or directory
NOTE: package ncurses-5.9-r6.1: task do_install: Failed

PR not bumped as there is no change in the packages output.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
---
 meta/recipes-core/ncurses/ncurses.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Scott Garman - March 15, 2012, 2:51 a.m.
On 03/14/2012 07:02 PM, nitin.a.kamble@intel.com wrote:
> From: Nitin A Kamble<nitin.a.kamble@intel.com>
>
> Fix this issue:
> | rm: cannot remove `/srv/home/nitin/builds/build-multilib/tmp/work/x86_64-poky-linux/ncurses-5.9-r6.1/image/usr/lib64/terminfo': No such file or directory
> NOTE: package ncurses-5.9-r6.1: task do_install: Failed
>
> PR not bumped as there is no change in the packages output.
>
> Signed-off-by: Nitin A Kamble<nitin.a.kamble@intel.com>

Thank you for catching this.

Acked-by: Scott Garman <scott.a.garman@intel.com>

> ---
>   meta/recipes-core/ncurses/ncurses.inc |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
> index 3319949..4d64f5e 100644
> --- a/meta/recipes-core/ncurses/ncurses.inc
> +++ b/meta/recipes-core/ncurses/ncurses.inc
> @@ -151,7 +151,7 @@ shell_do_install() {
>                   ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm
>           fi
>
> -        rm ${D}${libdir}/terminfo
> +        rm -f ${D}${libdir}/terminfo
>
>           if [ "${PN}" = "ncurses" ]; then
>                   mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN}

Patch

diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index 3319949..4d64f5e 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -151,7 +151,7 @@  shell_do_install() {
                 ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm
         fi
 
-        rm ${D}${libdir}/terminfo
+        rm -f ${D}${libdir}/terminfo
 
         if [ "${PN}" = "ncurses" ]; then
                 mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN}