From owner-freebsd-current@FreeBSD.ORG Mon May 17 08:00:56 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E4AC1065673; Mon, 17 May 2010 08:00:56 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 81D708FC15; Mon, 17 May 2010 08:00:54 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id B34CFA565F7; Mon, 17 May 2010 16:00:51 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id WrXHZEQtPXTJ; Mon, 17 May 2010 16:00:45 +0800 (CST) Received: from delta.delphij.net (c-24-4-100-103.hsd1.ca.comcast.net [24.4.100.103]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 0D633A550B8; Mon, 17 May 2010 16:00:41 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=E0JINpaDsDneNhCMOKs7ESU/kB49fyRswnmp5xrrI3CYh8va0oq2C1yqq6FXGrxTo PkE6BCVh37TFaeosGP/xw== Message-ID: <4BF0F7A3.7010404@delphij.net> Date: Mon, 17 May 2010 01:00:35 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100408 Thunderbird/3.0.4 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: Kai Wang References: <4BE9EA4F.9010803@delphij.net> <4BF03B2D.20402@freebsd.org> <20100516195320.GA3347@viskning> In-Reply-To: <20100516195320.GA3347@viskning> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Luigi Rizzo , Tim Kientzle , d@delphij.net, FreeBSD Current Subject: Re: [mini headsup] updating from 7.x to -CURRENT after lzma import X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2010 08:00:56 -0000 -----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 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-----