Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [CONSOLIDATED PULL 10/35] libcap: Cope with ${libdir} and ${base_libdir} being the same
Date: Tue,  7 Feb 2012 14:45:30 -0800	[thread overview]
Message-ID: <bf136334aecc156c73eed76562819351de368eec.1328654424.git.sgw@linux.intel.com> (raw)
In-Reply-To: <cover.1328654424.git.sgw@linux.intel.com>
In-Reply-To: <cover.1328654424.git.sgw@linux.intel.com>

From: Mike Crowe <mac@mcrowe.com>

${libdir} and ${base_libdir} may be the same. If they are don't try and
move files onto themselves.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
 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




  parent reply	other threads:[~2012-02-07 22:54 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 22:45 [CONSOLIDATED PULL 00/35] Catching up with Pulls Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 01/35] tune-mips32.inc: Add mips32-nf and mips32el-nf Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 02/35] bootimg: Use the same OS files for each boot method Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 03/35] busybox: Add flock utility to default configuration Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 04/35] gnupg-1.4.7: Update Patch Info Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 05/35] openssl-0.9.8: Remove in favor or 1.0.0 Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 06/35] webkit-gtk: Fix error.html resource path Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 07/35] webkit-gtk: Make webgl support configurable via DISTRO_FEATURES Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 08/35] libusb1: Cope with ${libdir} and ${base_libdir} being the same Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 09/35] libusb-compat: " Saul Wold
2012-02-07 22:45 ` Saul Wold [this message]
2012-02-07 22:45 ` [CONSOLIDATED PULL 11/35] u-boot inc: update inc file for newer u-boot versions Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 12/35] systemtap: bump SRCREV to grab version 1.7 Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 13/35] systemtap: extend the recipe to build the native package Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 14/35] systemtap: build and install uprobes.ko Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 15/35] udev: stop providing cache support by default Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 16/35] xorg-apps: Bump PR to accomodate meta-oe recipe deletion Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 17/35] linux-yocto: locate and use out of tree features specified on the SRC_URI Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 18/35] linux-yocto: meta updates for sys940x and cleanup Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 19/35] linux-yocto: rt compiliation fix Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 20/35] kern-tools: remove explicit 'yocto' references from auto-bsp handling Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 21/35] linux-yocto: fri2: use emgd-1.10 Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 22/35] task-core-tools: Divide it into 3 recipes Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 23/35] Enable options needed for ltp to compile Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 24/35] runqemu-internal: qemuarm can handle 256M Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 25/35] gconf, consolekit: Avoid polkit when compiling with uclibc Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 26/35] python: Fix build failure of python-elementtree on x86_64 Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 27/35] libdrm: Fix build failure unearthed by uclibc Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 28/35] libx11: Backport _XGetRequest API Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 29/35] mtools-3.9.9: Use correct URI for the mirror Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 30/35] pseudo: Wrap renameat and opendir Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 31/35] uclibc: Upgrade recipes from 0.9.32 -> 0.9.33 Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 32/35] classes, recipes: Replace POKY_* with CORE_IMAGE_* Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 33/35] gcc-cross-testing: Fix evaluation of user and target name Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 34/35] mirrors.bbclass: Add yp.org and oe.org to fallback mirrors Saul Wold
2012-02-07 22:45 ` [CONSOLIDATED PULL 35/35] dhcp: move dhcp leases files handling to postinst/postrm Saul Wold
2012-02-08  0:51 ` [CONSOLIDATED PULL 00/35] Catching up with Pulls Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf136334aecc156c73eed76562819351de368eec.1328654424.git.sgw@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox