Patchwork [5/9] xf86-video-vmware: fix build issue

login
register
mail settings
Submitter Nitin A Kamble
Date May 23, 2012, 12:05 a.m.
Message ID <c50dbc1b05d1be26358825b79f994026d4e5efd4.1337731469.git.nitin.a.kamble@intel.com>
Download mbox | patch
Permalink /patch/28377/
State New
Headers show

Comments

Nitin A Kamble - May 23, 2012, 12:05 a.m.
From: Nitin A Kamble <nitin.a.kamble@intel.com>

Fixes this build issue:

| rmdir: failed to remove
`/srv/home/nitin/builds/build-gcc47/tmp/work/i586-poky-linux/xf86-video-vmware-2_12.0.1-r17.1/image/usr/bin':
No such file or directory
NOTE: package xf86-video-vmware-2_12.0.1-r17.1: task do_install: Failed

No PR bump as no change in the output.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
---
 .../xorg-driver/xf86-video-vmware_12.0.2.bb        |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-vmware_12.0.2.bb b/meta/recipes-graphics/xorg-driver/xf86-video-vmware_12.0.2.bb
index 71f0339..5c89ccf 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-video-vmware_12.0.2.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-video-vmware_12.0.2.bb
@@ -18,5 +18,7 @@  COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
 
 do_install_append () {
 	# Remove useless empty directory
-	rmdir ${D}${bindir}
+	if [ -d ${D}${bindir} ]; then
+		rmdir ${D}${bindir}
+	fi
 }