From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com ([192.55.52.88]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RutvK-0004HI-2q for openembedded-core@lists.openembedded.org; Tue, 07 Feb 2012 23:54:08 +0100 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 07 Feb 2012 14:46:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="122206382" Received: from unknown (HELO swold-mobl.bigsur.com) ([10.255.14.116]) by fmsmga002.fm.intel.com with ESMTP; 07 Feb 2012 14:46:00 -0800 From: Saul Wold To: openembedded-core@lists.openembedded.org Date: Tue, 7 Feb 2012 14:45:30 -0800 Message-Id: X-Mailer: git-send-email 1.7.6.5 In-Reply-To: References: In-Reply-To: References: Subject: [CONSOLIDATED PULL 10/35] libcap: Cope with ${libdir} and ${base_libdir} being the same X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2012 22:54:09 -0000 From: Mike Crowe ${libdir} and ${base_libdir} may be the same. If they are don't try and move files onto themselves. Signed-off-by: Mike Crowe --- meta/recipes-support/libcap/libcap.inc | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc index 9418abf..5b03671 100644 --- a/meta/recipes-support/libcap/libcap.inc +++ b/meta/recipes-support/libcap/libcap.inc @@ -12,6 +12,8 @@ DEPENDS_virtclass-native = "perl-native-runtime" SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/libcap2/${BPN}-${PV}.tar.bz2" +PR = "r1" + inherit lib_package do_configure() { @@ -47,8 +49,10 @@ do_install() { do_install_append() { # Move the library to base_libdir install -d ${D}${base_libdir} - mv ${D}${libdir}/* ${D}${base_libdir} - rmdir ${D}${libdir} + if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then + mv ${D}${libdir}/* ${D}${base_libdir} + rmdir ${D}${libdir} + fi } FILES_${PN}-dev += "${base_libdir}/*.so" -- 1.7.6.5