From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25036 invoked by alias); 14 Oct 2013 17:56:04 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 25020 invoked by uid 89); 14 Oct 2013 17:56:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 14 Oct 2013 17:56:03 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 28B1233EB6F; Mon, 14 Oct 2013 17:56:01 +0000 (UTC) From: Mike Frysinger To: crossgcc@sourceware.org Subject: Re: [PATCH] scripts/functions: change zcat to gzcat on Mac OS X Date: Mon, 14 Oct 2013 17:56:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.10.6; KDE/4.6.5; x86_64; ; ) Cc: Fernando Ortiz , "Yann E. MORIN" References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1900069.FTXQGo1jE1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201310141356.03876.vapier@gentoo.org> X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00012.txt.bz2 --nextPart1900069.FTXQGo1jE1 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 1126 On Monday 14 October 2013 05:31:37 Fernando Ortiz wrote: > # HG changeset patch > # User nandub > # 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 >=20 > 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. >=20 > --- 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=20 targets and not just OS X (although i didn't load the repo itself to find o= ut). -mike --nextPart1900069.FTXQGo1jE1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJSXDAzAAoJEEFjO5/oN/WBS3cP/AxMgAZgx3UcSo6o2/2Ba594 iGCGejJiH4ZHFear6l84Ef2FNijS46zTJvcfiYCNobJ59PYn4ELwxF8+YUUhg9B/ JIZFtWoAEWxD7mFbpKw7RnbI5mXHdcQ1AlVGfr6Q1aKSnASnhQFPV3SbOsp/dioV eAIKQjaqYfmAm+xjj87FITtjVuDT0AapiGoX2Yh2G7PbkKnPRExu8H9eqCubibEZ HHsH4mPPIINdNY2Nvsf3YESNIEFAgu6/EaNRtX9P4RhfYlGtl2w0AaN1hS15rpLU Ky2T1Z2F3pn785dlpJF1CixiquHWZd5/XAkcIHQv/B1yDrsR5tVDWWiV0psP+D/N 1K/De023ffDVFa0KMTqwToX8sIXApEcJl9c7AfR9xK/GrziJluLpxJyk2Xwu7I1y TN/HaenV85CA8r0OyVfjS3zs0LH6wLSgPfbImKNuiy9tmNVraTYtReC63JwGSXq6 lCwjUcKqJ5cj+iIIeMIXaOdew9xc6hnhVbEOPu9j8cmUo8WjiBUTugikC0rWONKA Vb5+OIClZIJEpQcrRdgv/zY0O0XSK9AFskTDA/GjHEmrfaLV5ZStLqFUexTtya6o 7BFiVgpj5gtPC+jZdXU0ktq9ygDRTDrfID3OGQFcMzMl1kOcI2AQQ1GjjIb5hieX klABSU3kaU3lUWMITuos =QTmr -----END PGP SIGNATURE----- --nextPart1900069.FTXQGo1jE1--