From owner-freebsd-current@FreeBSD.ORG Sat Jan 12 07:21:37 2008 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 1BD4716A417 for ; Sat, 12 Jan 2008 07:21:37 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id A1FE613C457 for ; Sat, 12 Jan 2008 07:21:36 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so820406uge.37 for ; Fri, 11 Jan 2008 23:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=SDdJupqKyzslHpBoGvLHoGNNqw7MizKm16SRgWsOrSk=; b=k66aYbcQjJALIwULLVP83KUt07gJitKHZJrCfFVOhQdSy5QGbP6M5PV51Wdq2f6UIKzY1SKbBlbfl98nVJ40COLu8ojbqFtGvUMuR3ScRP26zOyZ+J/WkmS7L9QpGg/yTf1+BHGDK6mZ/oWSkEbQoMyQsN/ppdXQQku6MmqBGBI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=CpWiOOTrEuRfCjdR9dQG3r65jis9MGm0moT6lqXmhuVkZ0UTT59b6Qdx8+6j2DXh4s+exAT7UVOyjg+g+e3Xu2aQlFACSRLNonHp3R0e3Zjng484Sb67OmbZITYPl7ClKOpPRwxjiE0TNiydwUBD2eb6xIjJ3amIUYMT64yag7o= Received: by 10.67.195.14 with SMTP id x14mr1145639ugp.40.1200122494399; Fri, 11 Jan 2008 23:21:34 -0800 (PST) Received: from plan0.kaiwan.csbnet.se ( [193.11.244.12]) by mx.google.com with ESMTPS id k5sm6623719nfd.23.2008.01.11.23.21.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Jan 2008 23:21:33 -0800 (PST) Received: by plan0.kaiwan.csbnet.se (Postfix, from userid 1001) id 8483CB8FC; Sat, 12 Jan 2008 08:21:38 +0100 (CET) Date: Sat, 12 Jan 2008 08:21:38 +0100 From: Kai Wang To: Steve Kargl Message-ID: <20080112072138.GB1016@plan0.kaiwan.csbnet.se> Mail-Followup-To: Steve Kargl , freebsd-current@freebsd.org References: <20080111142336.GA1379@plan0.kaiwan.csbnet.se> <20080111194036.GA28896@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080111194036.GA28896@troutmask.apl.washington.edu> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current@freebsd.org Subject: Re: [Call for testers] "BSD ar" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2008 07:21:37 -0000 On Fri, Jan 11, 2008 at 11:40:36AM -0800, Steve Kargl wrote: > On Fri, Jan 11, 2008 at 03:23:36PM +0100, Kai Wang wrote: > > > > I think it's time for "BSD ar" to get a public review after months of > > bug hunting and cleaning up done by jkoshy@ and me. The majority of > > the coding work was done during the summer of 2007 and was sponsored > > by Google SoC 2007 programme. > > > > You can find the tarball at: > > http://web.student.chalmers.se/~kaiw/patch/ar-20080111.tgz > > > > Do I drop the ar/ directory into src/usr.bin as a replacement > for the current ar/? Then make buildworld? This will possibly not work because you may need to turn off the build of GNU ar first, which is not simple because the build of other GNU tools may depend on the build of GNU ar. (I'm working on this) The recommended way is: (for now) 1. Backup your GNU ar first: % cp /usr/bin/ar SOME_BACKUP_DIR 2. Build BSD ar extract the tarball % cd ar % make 3. Replace # cp ./ar /usr/bin/ar # cd /usr/bin # ln -f ar ranlib Then you can do something like ports build or "make buildworld" to try it out. Later when you need to recover GNU ar: # cp SOME_BACKUP_DIR/ar /usr/bin/ar # cd /usr/bin # ln -f ar ranlib BTW: Please use the version I packed up today, which fixed two bugs reported by swell.k[AT]gmail[Dot]com yesterday. http://web.student.chalmers.se/~kaiw/patch/ar-20080112.tgz -- Kai