From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from elite.brightsigndigital.co.uk ([81.142.160.137]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RuPH3-0001f7-4M for openembedded-core@lists.openembedded.org; Mon, 06 Feb 2012 15:10:29 +0100 Received: from [172.30.1.25] (helo=chuckie.brightsign) by elite.brightsigndigital.co.uk with esmtp (Exim 4.72) (envelope-from ) id 1RuOhM-0001Pd-IL; Mon, 06 Feb 2012 13:33:36 +0000 Received: from mac by chuckie.brightsign with local (Exim 4.72) (envelope-from ) id 1RuOhM-0006Va-HP; Mon, 06 Feb 2012 13:33:36 +0000 From: Mike Crowe To: openembedded-core@lists.openembedded.org Date: Mon, 6 Feb 2012 13:33:31 +0000 Message-Id: <1328535211-24985-1-git-send-email-mac@mcrowe.com> X-Mailer: git-send-email 1.7.8.3 Cc: Mike Crowe Subject: [PATCH] libusb1: 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: Mon, 06 Feb 2012 14:10:29 -0000 ${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/libusb/libusb1_1.0.8.bb | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/recipes-support/libusb/libusb1_1.0.8.bb b/meta/recipes-support/libusb/libusb1_1.0.8.bb index 8873de7..e45a9d9 100644 --- a/meta/recipes-support/libusb/libusb1_1.0.8.bb +++ b/meta/recipes-support/libusb/libusb1_1.0.8.bb @@ -6,7 +6,7 @@ SECTION = "libs" LICENSE = "LGPLv2.1+" LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" -PR = "r2" +PR = "r3" SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2" @@ -20,7 +20,9 @@ EXTRA_OECONF = "--libdir=${base_libdir}" do_install_append() { install -d ${D}${libdir} - mv ${D}${base_libdir}/pkgconfig ${D}${libdir} + if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then + mv ${D}${base_libdir}/pkgconfig ${D}${libdir} + fi } FILES_${PN} += "${base_libdir}/*.so.*" -- 1.7.8.3