Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2008 09:51:34 +0100
From:      Kai Wang <kaiwang27@gmail.com>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [Call for testers] "BSD ar"
Message-ID:  <20080112085134.GA1613@plan0.kaiwan.csbnet.se>
In-Reply-To: <20080112072138.GB1016@plan0.kaiwan.csbnet.se>
References:  <20080111142336.GA1379@plan0.kaiwan.csbnet.se> <20080111194036.GA28896@troutmask.apl.washington.edu> <20080112072138.GB1016@plan0.kaiwan.csbnet.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080112085134.GA1613>