Re: [mini headsup] updating from 7.x to -CURRENT after lzma import

From: Xin LI <delphij_at_delphij.net>
Date: Mon, 17 May 2010 01:00:35 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2010/05/16 12:53, Kai Wang wrote:
> On Sun, May 16, 2010 at 11:36:29AM -0700, Tim Kientzle wrote:
>> Xin LI wrote:
>>> The recent lzma import has enabled libarchive's lzma support.  However,
>>> it have come to our attention that building -HEAD on earlier FreeBSD
>>> versions (specifically, 7.x after 700044 through 8.x before 800022) have
>>> been broken.
>>>
>>> The reason behind this is that 'make buildworld' will build a new ar(1)
>>> binary which links to libarchive, causing build to break on these systems.
>>
>> The following patch partially fixes this problem by just
>> disabling all compression support in ar.  (There's definitely
>> no gain in compressing static libraries unless ld can
>> read them. ;-)
> 
> I agree compressed ar(1) archive is not so useful without a ld(1) can
> read it. Also, the current ar(1) compression scheme is not well
> designed... Inside the elftoolchain project we are planning to rework
> the ar(1) compression part to make it only compress the member data
> while leave the member header intact. If the archive is compressed
> this way, ld(1) can still random access the archive members.  In order
> to implement this compression scheme, we will probably need to use a
> separate compressor since libarchive always compress the whole
> archive/stream (if I undertand correctly). So if we are going down
> this road, removing ar(1) libarchive compression bits right now would
> not be a bad idea, in my opinion.
> 
>> I don't think this totally fixes the problem.  I'd
>> appreciate if someone could try this and let me
>> know how far you get.
> 
> We also need to remove the compression stuff in the write part.
> I made a modified patch based on yours, it's available here:
> 
>   http://people.freebsd.org/~kaiw/ar.patch

Yes I think this would fix the issue.

(Maybe we should mention that these options would be ignored, in manual
page?)

Cheers,
- -- 
Xin LI <delphij_at_delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!	       Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBAgAGBQJL8PeiAAoJEATO+BI/yjfB+vQH/A++3Tb6mxTG04e1/CszIn01
DN/73SeWXd7HT91KbbgaXdf3Or2QZJjiiOE5EHwSn1uxLaXQzAT3mrBvwN/sJC7N
Ku/zTm4xwv3H1NYmcOqtC9X+ooHiusNz1PlQFMgHGXZPvziZyfYtaGsqWfUczAjU
kr3H4u9OhrhqlMgoyQYWd6GxSe1WN7vFMVkuTcXByERyFlTdL2Xmfbv5np8s8wSF
Iz+F+tSqUv/nGJZZJtu4Df/N5Msm0cPKiXhG+rFEINKmQzWjN09j1nwpWWfUDBq1
pmYRDqboQcooGgJUEJaTMRJFmS7RONJGmaUG+O8RVfuRCdQRxFBnrCH70AfguiM=
=ZTRC
-----END PGP SIGNATURE-----
Received on Mon May 17 2010 - 06:00:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:03 UTC