delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID |
X-Spam-Check-By: | sourceware.org |
From: | Steve Atkins <steve AT blighty DOT com> |
Subject: | tar deletes .exe files on extraction (again) |
Date: | Thu, 22 Sep 2011 13:57:09 -0700 |
Message-Id: | <DDC20689-EA66-49D5-A120-6AC40BE05900@blighty.com> |
To: | cygwin AT cygwin DOT com |
Mime-Version: | 1.0 (Apple Message framework v1244.3) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id p8MKvTnK018672 |
In the process of trying to build Qt on Windows in a cygwin shell, I've discovered that neither tar nor unzip will work reliably under Cygwin - untaring an archive will not correctly create the files that the archive contains. The "configure.exe" that's required to build Qt is never extracted from the tarball. The problem is that the cygwin filesystem shims consider "configure" and "configure.exe" to be almost the same, despite their having different filenames, so when tar extracts an archive containing both it ends up deleting the existing "configure.exe" when it creates "configure". This was discussed a couple of years ago - http://cygwin.com/ml/cygwin/2009-08/msg00293.html - and the conclusion seemed to be that cygwin was working as designed, and the user just shouldn't ever be doing anything that requires both "foo" and "foo.exe" under cygwin, and that if they do want to do that, they probably shouldn't be using cygwin. That seems like a fairly nasty limitation / bug, and makes use of the cygwin shell a bit too brittle to rely on for build automation - I'm wondering if anyone knows if there's been any change in the situation since then? Cheers, Steve -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |