This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: src/winsup/cygwin ChangeLog syscalls.cc
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 5 Nov 2009 18:34:50 +0100
- Subject: Re: src/winsup/cygwin ChangeLog syscalls.cc
- References: <20091105144413.31963.qmail@sourceware.org> <4AF30801.7090508@users.sourceforge.net>
- Reply-to: cygwin at cygwin dot com
On Nov 5 11:14, Yaakov S wrote:
> On 05/11/2009 08:44, corinna-rDBXBDvO6BXQT0dZR+AlfA@public.gmane.org wrote:
> >Modified files:
> > winsup/cygwin : ChangeLog syscalls.cc
> >
> >Log message:
> > * syscalls.cc (nt_path_has_suffix): New function.
> > (rename): Don't append .exe suffix if binary target name has any suffix
> > at all.
> >
> >Patches:
> >http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.4708&r2=1.4709
> >http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=src&r1=1.543&r2=1.544
>
> On my system dozens of executables do have a '.' near the end of
> their names, either representing a version (e.g. perl5.10.0.exe,
> python2.5.exe), or OCaml native code (*.opt.exe), or for other
> reasons (e.g. *.bin.exe where the program is launched via a script).
> How does this change affect building/installing them?
Let's see:
rename ("foo.exe", "perl5.10.0.exe") result: perl5.10.0.exe
rename ("foo.exe", "perl5.10.0") result: perl5.10.0
rename ("foo", "perl5.10.0.exe") result: perl5.10.0.exe
rename ("foo", "perl5.10.0") result: perl5.10.0
The latter one is a problem, because that's what happens when calling
strip perl5.10.0
so after strip the binary is missing a .exe suffix.
Sigh.
Is there any *reliable* solution to this problem, other than never to
add a .exe suffix?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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