This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] scripts/functions: change zcat to gzcat on Mac OS X


The best fix is to add --with-zcat=<path> as an option IMHO. It's
quite easily done too.

On Mon, Oct 14, 2013 at 7:11 PM, Diorcet Yann <diorcet.yann@gmail.com> wrote:
> Le 14/10/2013 19:56, Mike Frysinger a écrit :
>> On Monday 14 October 2013 05:31:37 Fernando Ortiz wrote:
>>> # HG changeset patch
>>> # User nandub <dev+ctng@nandub.info>
>>> # Date 1381743034 18000
>>> #      Mon Oct 14 04:30:34 2013 -0500
>>> # Node ID d9b7eeea2b565287de66b71e13bfa40265230362
>>> # Parent  9838aecd63405ba0d1660ac8e91208de880d71a2
>>> scripts/functions: change zcat to gzcat on Mac OS X
>>>
>>> it looks like gnu zcat is required to work on Mac OS X (osx)
>>> osx zcat will throw an log.gz.Z error when restoring
>>> a building step.
>>>
>>> --- a/scripts/functions    Mon Oct 07 00:16:38 2013 +0200
>>> +++ b/scripts/functions    Mon Oct 14 04:30:34 2013 -0500
>>> @@ -1336,7 +1336,7 @@ CT_DoLoadState(){
>>>      CT_DoLog STATE "  Restoring log file"
>>>      exec >/dev/null
>>>      case "${CT_DEBUG_CT_SAVE_STEPS_GZIP}" in
>>> -        y)  zcat "${state_dir}/log.gz" >"${tmp_log_file}";;
>>> +        y)  gzcat "${state_dir}/log.gz" >"${tmp_log_file}";;
>>>          *)  cat "${state_dir}/log" >"${tmp_log_file}";;
>>>      esac
>>
>> `gzcat` is not portable.  this code snippet looks like it's used by all
>> targets and not just OS X (although i didn't load the repo itself to
> find out).
>> -mike
> Try with that tip:
>
> export PATH=/opt/local//libexec/gnubin:$PATH
>
> with /opt/local your macports path
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]