From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RVRca-0003J8-5l for openembedded-core@lists.openembedded.org; Tue, 29 Nov 2011 18:37:32 +0100 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pATHUrlM018299; Tue, 29 Nov 2011 17:30:53 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18082-03; Tue, 29 Nov 2011 17:30:49 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id pATHUi7k018292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 Nov 2011 17:30:45 GMT Message-ID: <1322587851.7964.4.camel@ted> From: Richard Purdie To: Patches and discussions about the oe-core layer Date: Tue, 29 Nov 2011 17:30:51 +0000 In-Reply-To: <1322571778.3166.12.camel@ted> References: <1322521031-26849-1-git-send-email-msm@freescale.com> <1322569564.3166.1.camel@ted> <20111129123027.GF7441@jama.jama.net> <1322571778.3166.12.camel@ted> X-Mailer: Evolution 3.2.1- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Cc: McClintock Matthew-B29882 Subject: Re: [PATCH] eglibc-initial: Ensure symlinks point to the correct location when built from sstate cache 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, 29 Nov 2011 17:37:32 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2011-11-29 at 13:02 +0000, Richard Purdie wrote: > On Tue, 2011-11-29 at 13:30 +0100, Martin Jansa wrote: > > On Tue, Nov 29, 2011 at 12:26:04PM +0000, Richard Purdie wrote: > > > If the sstate files are installed into a sysroot from the sstate cache, > > > the directory to the main sysroot can change and the symlinks aren't > > > adjusted to account for this. This is a problem specific to the toolchain > > > bootstrap process. This patch adds up a function to recreate the > > > symlinks, hence ensuring they always point at the correct location. > > > > Similar issue is IMHO in python and apr (and probably more) > > http://lists.linuxtogo.org/pipermail/openembedded-core/2011-November/012149.html > > Its similar but not that similar. The toolchain sysroots are special in > that the bootstrap one needs to refer to the non-bootstrap one via > symlinks. > > The path references you mention above should be detected by the sstate > relocation code and fixed up automatically. It sounds like the search > and replace expressions we're using aren't catching every reference we > need to which is a different problem. As a hint, I think: SSTATE_SCAN_CMD ?= "find ${SSTATE_BUILDDIR} \( -name "*.la" -o -name "*-config" \) -type f" might need "Makefile" adding to that list of files to mangle... Cheers, Richard