Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de [194.138.37.39]) by mail.openembedded.org (Postfix) with ESMTP id 3121B7C137 for ; Wed, 16 Jan 2019 07:23:08 +0000 (UTC) Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id x0G7N5aI017039 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Jan 2019 08:23:05 +0100 Received: from [192.168.253.100] (MD1JJJ2C.ad001.siemens.net [163.242.44.88]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x0G7N4wU022889; Wed, 16 Jan 2019 08:23:04 +0100 To: Richard Purdie , Mark Hatle , "Burton, Ross" References: <05af53a7-6ed6-9615-be2e-d8c31dbfb321@siemens.com> <7497c039-7951-ee51-7506-300a74d0b558@windriver.com> From: Andrej Valek Openpgp: preference=signencrypt Autocrypt: addr=andrej.valek@siemens.com; prefer-encrypt=mutual; keydata= mQENBFkSzTcBCADSJTRk7YudjxZ/ma2IXPV4Y5gkACJKDOYAZcRqNjDbIFUmc7ck3KeuUGKy ifrpWD6/7YPXbixv4sAlFly6sNL31agVHLO4BCCE77DaZ2smiN0JaLYzmMdr0BPLMsL96nBO UDo8o2a1NwU+GpD8a0/vcovro+NgLvfk9xP4rYAve09VYvF4DbQNW9Y+8reqWFnBI8EN5Fps vPCUr/TSuxk3VpU//8QtP7WqyRA31qiWFDxE2dqSnrpUBojxQMY94tDP7kjQtzD2ZpaDt1oL PDE/n6qtYG792JVvNjuo1QpfPo8a8I4HvMmbh/Orv0fniauB229OaWNPp27ln55xG8FvABEB AAG0J0FuZHJlaiBWYWxlayA8YW5kcmVqLnZhbGVrQHNpZW1lbnMuY29tPokBPgQTAQIAKAUC WRLNNwIbAwUJA8JnAAYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQ3npj5PmioO8DZQgA ibpOwfxDw3qlSEHDE395Tf+bEAYWjjNz9OQB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ed, 16 Jan 2019 08:23:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Cc: "openembedded-core@lists.openembedded.org" Subject: Re: Prelink problem X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list 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, 16 Jan 2019 07:23:09 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Hi all Do we found some solution? As a workaround could be just add dependency to prelink native into rootfs if the command is really required. Regards, Andrej On 1/8/19 10:46 PM, Richard Purdie wrote: > On Tue, 2019-01-08 at 14:50 -0600, Mark Hatle wrote: >> On 1/8/19 2:37 PM, Burton, Ross wrote: >>> On Tue, 8 Jan 2019 at 20:15, Mark Hatle >>> wrote: >>>>> No idea why the opkg rootfs code is doing prelink operations >>>>> when RPM >>>>> or dpkg don't. CCing Mark who may have an idea here. I >>>>> thought the >>>>> autobuilder exerised multilib-on-opkg, but maybe not. >>>> >>>> They all should be doing prelink operations. The operation >>>> SHOULD be >>>> generically implemented as part of the image-prelink class, which >>>> is where I >>>> would have expected that copy to exist. >>>> >>>> If any of the package types of specifically doing something, that >>>> sounds >>>> broken... but the generic ones (last I looked) said to copy in >>>> the config file >>>> [if it didn't exist], run prelink, remove the file [if it wasn't >>>> there to start >>>> with]. >>> >>> Note that it's part of the incremental code, so needs to be in the >>> rootfs code directly I suspect. Frankly I'd love to see incremental >>> images removed. It makes promises it can't keep (the moment a >>> rootfs >>> postprocess command is used, all bets are off) and massively >>> complicates things. >> >> We assume the post process command is what an 'admin' would do. So >> the various >> package managers should be able to deal with it in most >> cases. (Note, obviously >> it's more freeform, but I wouldn't expect everything to work in you >> removed a >> large part of the filesystem for instance.) >> >> As for prelink, I'm surprised this is in the incremental code. I'm >> not sure why >> it would be necessary unless the incremental work wants to UNPRELINK >> the rootfs >> before performing the upgrade? >> >> Prelink itself should still be run as a postprocess command that >> takes the >> output of the filesystem and reprocesses it. >> >> So something seems out of sync here.. (at a minimum probably should >> be better >> commented on why it's needed..) > > The code is there for incremental opkg multilib image support. Its > trying to compare whether binaries are identical. To make it work, it > has to "unprelink" the files first before comparing. > > I'm not convinced this is a good idea :/. I'm wondering if incremental > image generation makes sense at all in this context to be honest. > > Cheers, > > Richard >