X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SARE_RMML_Stock10,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C0FA1CA.4070000@redhat.com>
Date: Wed, 09 Jun 2010 08:14:34 -0600
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 'cp' utility bug when <dest-name>.exe file exist.
References: <OFF145E76E.EB43EC60-ON8525773C.005639A6-8525773C.005650D6@lnotes-gw.ent.nwie.net>	<AANLkTil0pNuO4a9n2Ln5H3Q0cJRdQER7NlgSTg2a9EN2@mail.gmail.com>	<OFCB72527D.F8E42EE2-ON8525773C.0058E3E2-8525773C.0059F451@lnotes-gw.ent.nwie.net>	<1276042636.1651.9.camel@erebor>	<AANLkTil6fa2-stL9f3hd-Dg-X6FjzVKLeG56lPoI7OYp@mail.gmail.com>	<20100609044034.GB9305@ednor.casa.cgf.cx>	<AANLkTikJ9U3U49HlT9Ldm6aueX3z22gN_6L95P-E2Pwz@mail.gmail.com>	<AANLkTinrgelZ5PcMhWjzehe8sa-cjkGoiFI8WpLGNh84@mail.gmail.com>	<AANLkTikzCzig2SyG_J1dtGPDvDVCLYZyZM_TBj9fxNgm@mail.gmail.com> <AANLkTilSrEgdrVMMMZQLZrnU1wKi-WrQt8H4_JX3B-w7@mail.gmail.com>
In-Reply-To: <AANLkTilSrEgdrVMMMZQLZrnU1wKi-WrQt8H4_JX3B-w7@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig8AEB9640E407B86338D53E9A"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig8AEB9640E407B86338D53E9A
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 06/09/2010 08:08 AM, Andy Koppe wrote:
>>> More importantly, a lot of build scripts likely depend on the .exe bein=
g added automatically.
>>
>> Hm. Maybe they shouldn't.
>=20
> Yeah, but "shouldn't" never stopped anyone, hence any transition would
> certainly not be pain-free.

A first step would be teaching gcc to not append .exe.  Many configure
scripts (certainly almost all scripts based on autoconf) determine
$(EXEEXT) based on gcc behavior, and will just do the right thing
throughout the rest of the build with $(EXEEXT) empty (as evidenced by
their behavior on Linux).

But even with that gcc change, we'd have to keep .exe magic in
cygwin1.dll until everything in the distro has been rebuilt without an
.exe suffix.

However, I'm starting to like the idea, if we can get buy-in from the
gcc packager.  Dave?

Meanwhile, the (as-yet-pending) cross-compiler to build mingw
executables _should_ continue to output .exe suffix, and anything trying
to still be portable to mingw will have to be even more careful to use
$(EXEEXT) properly because cygwin would no longer be helping out (but
then again, that's exactly the situation you face when using wine, since
Linux is not helping out).

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig8AEB9640E407B86338D53E9A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMD6HOAAoJEKeha0olJ0NqUXwH/Arfjl409b7xWdCDoOhhj+bG
iOf9Fz+R1lR/lEfjDUAF5rUOhuMcicvhuIItlfN6oE3m6o/8tUSyyqp0Gcammqw8
y8XK3BL1JhMKLdBSRrB+E6n22kEMSnPEUaXwCAnREHXXaOb/69jI/Tw/6nxMyeYD
vqOUVYro6AFVnxBEikrqQmfxl3gIA/f8S0QTIxRrY794isDPujF9WmrHlPnSmi/f
jtD6MLU84Xxh5J4F5Lz7Mh0LQeX16W5o0V/jQ8upAnkDHLYEZgwRlzOPL1hGXwT0
sV0okxsACPKVLVmB8+zh/D7A6EZyejOiehTXPXKmJga5ol2cveO2vxZquLI08Jw=
=bEEw
-----END PGP SIGNATURE-----

--------------enig8AEB9640E407B86338D53E9A--
