bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inconsisteny between install and uninstall modes


From: Ralf Wildenhues
Subject: Re: inconsisteny between install and uninstall modes
Date: Thu, 16 Apr 2009 00:16:20 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Bruno,

thanks for the bug report.

* Bruno Haible wrote on Sun, Apr 12, 2009 at 12:12:28PM CEST:
> In libtool-2.2.6, there is an inconsistency of libtool's behaviour regarding
> the .exe suffix on cygwin. Assume I have an iconv.exe program in the
> current directory. Then
> 
>   /bin/sh ../libtool --mode=install /usr/bin/install -c iconv 
> /usr/local/cygwin/bin/iconv
> 
> installs this program under the name /usr/local/cygwin/bin/iconv.exe. This is
> fine. But
> 
>   /bin/sh ../libtool --mode=uninstall rm -f /usr/local/cygwin/bin/iconv
> 
> does not remove it. Here I need to add the .exe suffix. Why??

I guess at the moment things are only consistent when the user always
adds the .exe suffix.

> Here's the sequence of commands that I used:
> 
> $ /bin/sh ../libtool --mode=install /usr/bin/install -c iconv 
> /usr/local/cygwin/bin/iconv
> libtool: install: /usr/bin/install -c .libs/iconv /usr/local/cygwin/bin/iconv

Is the uninstalled file .libs/iconv or .libs/iconv.exe?

The way this looks now, it will not work when used in a cross-compile
situation from a system without $EXEEXT hacks in the file matching code.

The inconsistencies you are seeing stem from the fact that cygwin's rm
won't automatically add the .exe extension (so that when both foo and
foo.exe exist, rm can be used to remove foo).  I'm not sure about
install though.  And yes, libtool should not depend upon this stuff at
all, so that the cross-compile setup works, too.

For now the right thing to do is to always use $(EXEEXT) in your make
rules.

> $ ls -l /usr/local/cygwin/bin
> total 76
> -rwxr-xr-x 1 bruno Kein 76225 Apr 12 12:05 iconv.exe
> 
> $ /bin/sh ../libtool --mode=uninstall rm -f /usr/local/cygwin/bin/iconv
> libtool: uninstall: rm -f /usr/local/cygwin/bin/iconv
> 
> $ ls -l /usr/local/cygwin/bin
> total 76
> -rwxr-xr-x 1 bruno Kein 76225 Apr 12 12:05 iconv.exe
> 
> $ /bin/sh ../libtool --mode=uninstall rm -f /usr/local/cygwin/bin/iconv.exe
> libtool: uninstall: rm -f /usr/local/cygwin/bin/iconv.exe
> 
> $ ls -l /usr/local/cygwin/bin
> total 0

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]