From owner-freebsd-current@FreeBSD.ORG Sat Jan 12 08:51:36 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 5300316A419 for ; Sat, 12 Jan 2008 08:51:36 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id D3F5E13C455 for ; Sat, 12 Jan 2008 08:51:35 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1535735fgg.35 for ; Sat, 12 Jan 2008 00:51: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=ngDhsMLhP3GA6lYZSAlMk8CVKPqdnJCFjyJfjrrNYng=; b=oJBsOoeuYIFwE2YxwBaA7jjPYp55C0QDRifU3yhQ13Y8zR49xB0Kd4NfU244p3WtwZ31grjJ1Gx1moLSX+g6NE2PPnG5LTymcKRC7z22sdgBelb0tlAwV/L+6HSpQ9DLAX3V2m3UoscxXiLZoIhCdkZxYwktG8M7hhlGDeeB7WQ= 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=DPZMKsnpvUPed12nekNENOgJlTiCCCEx0aWX3VGpD3vIprXctWUDigpkko6iGEXFQzbljI7s+jXWeZqIJAkJdWRV+m0ogH57wkMRdC8foINbJ2+5xePDKpdxgMY/fHSqhyVVLFUjFTcm+TciOxf0bdr/e4YXTxK6F9EA2VKp4Kc= Received: by 10.82.174.20 with SMTP id w20mr6966721bue.21.1200127894815; Sat, 12 Jan 2008 00:51:34 -0800 (PST) Received: from plan0.kaiwan.csbnet.se ( [193.11.244.12]) by mx.google.com with ESMTPS id f8sm6732241nfh.13.2008.01.12.00.51.33 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Jan 2008 00:51:34 -0800 (PST) Received: by plan0.kaiwan.csbnet.se (Postfix, from userid 1001) id 522DEB8FF; Sat, 12 Jan 2008 09:51:34 +0100 (CET) Date: Sat, 12 Jan 2008 09:51:34 +0100 From: Kai Wang To: Steve Kargl Message-ID: <20080112085134.GA1613@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> <20080112072138.GB1016@plan0.kaiwan.csbnet.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080112072138.GB1016@plan0.kaiwan.csbnet.se> 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 08:51:36 -0000 On Sat, Jan 12, 2008 at 08:21:38AM +0100, Kai Wang wrote: > 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 This won't work as GNU ranlib is not merely a hardlink to ar. Thus correct way would be: 1. Backup your GNU ar and ranlib first: % cp /usr/bin/ar SOME_BACKUP_DIR % cp /usr/bin/ranlib 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 When recover GNU ar: # cp SOME_BACKUP_DIR/ar /usr/bin/ar # cp SOME_BACKUP_DIR/ranlib /usr/bin/ranlib Sorry for the mess... BTW: I'm working on a patch for -CURRENT as peter@ just suggested.