Patchwork [4/7] pciutils: fix a do_compile failure

login
register
mail settings
Submitter Nitin A Kamble
Date March 16, 2012, 7 p.m.
Message ID <a5089dad538aae9ef7af154a101f78a1912e3190.1331924359.git.nitin.a.kamble@intel.com>
Download mbox | patch
Permalink /patch/23731/
State Accepted
Commit b1ce043d46f7465daf320d80ddd0db0b69def917
Headers show

Comments

Nitin A Kamble - March 16, 2012, 7 p.m.
From: Nitin A Kamble <nitin.a.kamble@intel.com>

Avoid this issue:

| ln -s libpci.so.3.1.9 libpci.so
| ln: failed to create symbolic link `libpci.so': File exists
| make[1]: *** [libpci.so] Error 1
| make[1]: Leaving directory `/srv/home/nitin/builds/build-multilib/tmp/work/x86_64-poky-linux/pciutils-3.1.9-r0/pciutils-3.1.9/lib'
| make: *** [lib/libpci.so] Error 2
| ERROR: oe_runmake failed
NOTE: package pciutils-3.1.9-r0: task do_compile: Failed

PR not bumped as there are no changes in the output packages.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
---
 meta/recipes-bsp/pciutils/pciutils_3.1.9.bb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-bsp/pciutils/pciutils_3.1.9.bb b/meta/recipes-bsp/pciutils/pciutils_3.1.9.bb
index 51e7476..2c969d9 100644
--- a/meta/recipes-bsp/pciutils/pciutils_3.1.9.bb
+++ b/meta/recipes-bsp/pciutils/pciutils_3.1.9.bb
@@ -33,6 +33,11 @@  do_configure () {
 	)
 }
 
+do_compile_prepend () {
+	# Avoid this error:  ln: failed to create symbolic link `libpci.so': File exists
+	rm -f ${S}/lib/libpci.so
+}
+
 export PREFIX = "${prefix}"
 export SBINDIR = "${sbindir}"
 export SHAREDIR = "${datadir}"