From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 0F48960043 for ; Thu, 17 Mar 2016 16:04:00 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id u2HG3x0F010816 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 17 Mar 2016 09:03:59 -0700 (PDT) Received: from soho-mhatle-m.local (147.11.116.119) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.248.2; Thu, 17 Mar 2016 09:03:59 -0700 To: "Chang, Rebecca Swee Fun" , Richard Purdie , "openembedded-core@lists.openembedded.org" References: <1457939741-29071-1-git-send-email-rebecca.swee.fun.chang@intel.com> <1457943238.2804.294.camel@linuxfoundation.org> <50B33AC5ED75F74F991980326F1C438D191CB5C4@PGSMSX103.gar.corp.intel.com> <56EAD3B4.2080206@windriver.com> From: Mark Hatle Organization: Wind River Systems Message-ID: <56EAD570.3090704@windriver.com> Date: Thu, 17 Mar 2016 09:04:00 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56EAD3B4.2080206@windriver.com> Subject: Re: [master][PATCH] rpm: enable xz/lzma compression 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: Thu, 17 Mar 2016 16:04:01 -0000 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit On 3/17/16 8:56 AM, Mark Hatle wrote: > On 3/14/16 1:18 AM, Chang, Rebecca Swee Fun wrote: >> We are having issues on decompressing tarball with xz format and rpm installation on target. >> We have this solution implemented to resolve it internally and would like to enable it in OE-core in order we wouldn't revisit this issue in future. >> Do I need to resend the patch with revised commit message? > > When the packages are produced by the build environment then no issues should be > occurring. > > The only time you should be having problems is if you are trying to install > packages (source or binary) produced from outside the build environment. In the > source case, you can use the workaround of rpm2cpio | cpio -id to > extract it. Then when you build it fresh it will use the standard format. > (Yes, bz2/zlib is less efficient -- but is also more standard.) > > If you require the xz/lzma compression, you should be doing this in your own > project's configuration. I don't think it makes sense to add xz to all RPM > based filesystems. > > (If you can profile what adding the xz option does to a filesystem, I may change > my mind. The profiling needs to include the size change to RPM program itself, > the produced filesystem (as it now has additional dependencies), and the package > feeds size. > > My guess, is: RPM binary will increase in size marginally.. including XZ and > associated items could be potentially 'large'.. and the size of the package > feeds will be reduced, but I don't have a good feeling as to how much. Sorry, I forgot, the feed won't change without a change to the macros file. In order to switch to using XZ by default, the 'macros' file for the rpmbuild process will need to be updated as well: # Compression type and level for source/binary package payloads. # "w9.gzdio" gzip level 9 (default). # "w9.bzdio" bzip2 level 9. # "w6.lzdio" lzma level 6 (legacy, stable). # "w6.xzdio" xz level 6 (obsoletes lzma, unstable). # #%_source_payload w9.gzdio #%_binary_payload w9.gzdio Ignore the stable or not comments above, I don't believe they are relevant anymore. But the key is you want to swap out gzdio with xzdio or lzdio. (It should remain as w9.) This goes to my previous comment about profiling -- if we consider a switch here, changing that is the only way the produced package feed will shrink in size.. (I'd forgotten about that originally.) > --Mark > >> Regards, >> Rebecca >> >> -----Original Message----- >> From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org] >> Sent: Monday, March 14, 2016 4:14 PM >> To: Chang, Rebecca Swee Fun ; openembedded-core@lists.openembedded.org >> Subject: Re: [OE-core] [master][PATCH] rpm: enable xz/lzma compression >> >> On Mon, 2016-03-14 at 15:15 +0800, Rebecca Chang wrote: >>> From: Anuj Mittal >>> >>> Enable lzma compression support in rpm. >> >> Your commit message says what the patch does but not why? Presumably this change increases the size of the rpm install so what is the benefit? >> >> Cheers, >> >> Richard >> >