libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: use `&&' to separate commands in the untar process [libtool--re


From: Gary V. Vaughan
Subject: Re: FYI: use `&&' to separate commands in the untar process [libtool--release--2.0--patch-56]
Date: Fri, 11 Mar 2005 11:02:53 +0000
User-agent: Mozilla Thunderbird 0.9 (X11/20041103)

Ralf Wildenhues wrote:
> Hi Gary,

Hallo Ralf!

> * Gary V. Vaughan wrote on Thu, Mar 10, 2005 at 09:58:58PM CET:
> 
>>Applied to branch-2-0 (I didn't make this oversight in the other branches).
>>
>>  from  Gary V. Vaughan  <address@hidden>
>>      * libltdl/Makefile.am (install-data-local): Use `&&' to separate
>>      commands so that stdin reaches the untar pracess.
>>      * libltdl/loaders/Makefile.am (install-data-local): Ditto.
>>      * libtoolize.m4sh (func_copy_cb): Ditto.
> 
> 
> I did not know this was not portable.  Which shell/system is this?

Bash-2.05b on darwin 7.8.0.  It seems to work in the trivial case:

  $ tar chf - README THANKS TODO | ( umask 0; tar tf - )
  README
  THANKS
  TODO

Or even:

  $ tar chf - README THANKS TODO |
  - ( umask 0; ./config/missing --run tar tf - )
  README
  THANKS
  TODO

And yet:

  $ cd libltdl
  $ sed 's,umask 0 &&,umask 0;,' Makefile > tmp && mv tmp Makefile
  $ make install
  ...
  ( cd ../../libltdl && /bin/sh
  /Users/gary/devel/savannah/libtool--devo--1.0/config/missing --run tar chf -
  COPYING.LIB README Makefile.am Makefile.in configure.ac configure ltdl.c
  ltdl.h lt_error.c libltdl/lt_error.h libltdl/lt__private.h
  libltdl/lt__strl.h libltdl/lt_system.h lt__alloc.c libltdl/lt__alloc.h
  libltdl/lt__glibc.h libltdl/lt__dirent.h slist.c libltdl/slist.h
  lt_dlloader.c libltdl/lt_dlloader.h loaders/preopen.c lt__dirent.c
  libltdl/lt__dirent.h lt__strl.c libltdl/lt__strl.h argz_.h argz.c; ) \
  | ( umask 0; cd /Users/gary/+inst/share/libtool-2.1a/libltdl &&
  /bin/sh /Users/gary/devel/savannah/libtool--devo--1.0/config/missing
  --run tar xf -; )
  tar: configure: Cannot stat: (null)
  tar: Error exit delayed from previous errors
  gnutar: configure: Cannot stat: (null)
  gnutar: Error exit delayed from previous errors
  gtar: configure: Cannot stat: (null)
  gtar: Error exit delayed from previous errors
  tar: configure: Cannot stat: (null)
  tar: Error exit delayed from previous errors
  WARNING: I can't seem to be able to run `tar' with the given arguments.
           You may want to install GNU tar or Free paxutils, or check the
           command line arguments.

Does bash behave differently when invoked as /bin/sh?

  $ grep 'SHELL[  ]*=' +build/libltdl/Makefile
  SHELL = /bin/sh
  $ (cd /bin; ls -li sh bash; )
  1716603  592 -rwxr-xr-x    1 root     wheel      603488 May 28  2004 bash
  1716586  592 -r-xr-xr-x    1 root     wheel      603488 May 28  2004 sh

Confused,
        Gary.
-- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]