From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com ([134.134.136.20]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QMpFy-0003uu-9o for openembedded-core@lists.openembedded.org; Thu, 19 May 2011 00:30:18 +0200 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 18 May 2011 15:27:21 -0700 X-ExtLoop1: 1 Received: from unknown (HELO swold-MOBL.bigsur.com) ([10.255.12.160]) by orsmga002.jf.intel.com with ESMTP; 18 May 2011 15:27:20 -0700 From: Saul Wold To: openembedded-core@lists.openembedded.org Date: Wed, 18 May 2011 15:26:40 -0700 Message-Id: <542b82da52bc72f47b44ef0cd1b12019d59de457.1305756950.git.sgw@linux.intel.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: Subject: [PATCH 11/30] utils.bbclass: modify create_wrapper to correctly follow symlinks 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: Wed, 18 May 2011 22:30:18 -0000 This ensures you look up the symbolic link to get the full path Signed-off-by: Saul Wold --- meta/classes/utils.bbclass | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 6bcaf86..1965d2f 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -312,7 +312,8 @@ create_wrapper () { cmdname=`basename $cmd`.real cat <$cmd #!/bin/sh -exec env $@ \`dirname \$0\`/$cmdname "\$@" +realpath=\`readlink -fn \$0\` +exec env $@ \`dirname \$realpath\`/$cmdname "\$@" END chmod +x $cmd } -- 1.7.3.4