X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Message-ID: <49D0B80C.30604@byu.net> Date: Mon, 30 Mar 2009 06:16:12 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: coreutils: install transparent_exe issues? References: <49D04B74 DOT 9090000 AT users DOT sourceforge DOT net> <20090330111523 DOT GS12738 AT calimero DOT vinschen DOT de> In-Reply-To: <20090330111523.GS12738@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Corinna Vinschen on 3/30/2009 5:15 AM: >> Eric, >> >> With cygwin-1.7.0-44 and coreutils-7.0-2, install(1) no longer appends >> '.exe' to the destination filename. STC: >> >> >> This breaks non-autotoolized makefiles which don't account for EXEEXT. >> Interestingly, though, strip(1) will still add an .exe: > > And if you call `install -s hello d1' you'll get a .exe suffix as well. > The problem is that the .exe suffix is added based on a heuristic in > the rename(2) system call. When strip strips the file it creates a > temporary file and renames it to the original filename afterwards. > This rename operation adds the exe suffix, seeing the original file > is an excutable. > > Install OTOH just creates a file "d1/hello" and copies over the content. > There's no heuristic figuring out that the data is a valid executable > header and then renaming it on the fly. Thus, install as well as cp > still need their own `attach .exe suffix' code. Yes, this has been previously reported, and is on my list of things to fix once coreutils 7.2 is released this week. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknQuAwACgkQ84KuGfSFAYDuHwCfQ0r71NjdY+JXfd4upKj/jqdW mu8An1AqW5Hpsj52qhzPTcXfbHidRAhG =LG5s -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/