On May 2, 2006, at 10:37 PM, Matthew Soffen wrote:

Andrew,

The command which fails

      cmd=`which -s $1`

If the command isn't there,  then which returns 1 ( which the handler catches as a failure and exits the script).



it doesn't do that here.  does it do that on linux?

and i still dont understand how what you have helps because later on you have:

  if
$cmd >/dev/null 2>&1
  then

so you still run the "which" part anyway. 

Matt


On Tue, 2006-05-02 at 22:22 +0200, Andrew Beekhof wrote:

On May 2, 2006, at 10:15 PM, Matthew Soffen wrote:

The change I did was bascially make it so that it searched for any version of the libtools.

The bootstrap should be able to find the correct binary for Darwin ( glibtool ) .

Can you try my change to see if it works on darwin.. If it doesn't, run it sh -x to get the full output before it fails.


i think the problem is that which always returns 1 here... no idea why.


but i'm really curious to know why my additions failed for you... surely you wouldn't have gone further than:


  # On some systems we have to make do with the presence of the command
  if [ "$arch" != "Linux" -a "$arch" != "Darwin" ]; then
      return 0;
  fi




Matt

On Tue, 2006-05-02 at 21:42 +0200, Andrew Beekhof wrote:
On May 2, 2006, at 9:36 PM, Alan Robertson wrote:

> Andrew Beekhof wrote:
>> I see you removed the section that allowed it to work on Darwin...
>> -if [ "$arch" = "Darwin" ]
>> I'm not particularly happy at this point
>
>
> It looks to me like he replaced the darwinism with a more general  
> check for the various tools (but it's a little hard to tell from  
> the diff).

nod, closer inspection revealed that

the irony is that in getting it to work on Darwin again I apparently  
re-broke it on Solaris (or was it FreeBSD?)

so now Matt gets to be pissed at me :-(

*sigh*

--
Andrew Beekhof

"Ooo Ahhh, Glenn McRath" - TISM


_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

--

Andrew Beekhof


"No means no, and no means yes, and everything in between and all the rest" - TISM



_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: [email protected]

--

Andrew Beekhof


"Too much knowledge leads to confusion; Too many guitar lessons lead to jazz-fusion!" - TISM




_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to