[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cleaning without -f
From: |
Wesley W. Terpstra |
Subject: |
cleaning without -f |
Date: |
Mon, 3 Mar 2003 12:31:43 +0100 |
User-agent: |
Mutt/1.5.3i |
Oh, and there is another bug in --mode=clean. (not fixed by my previous patch)
This one needs a decision by the libtool maintainers.
When cleaning out an libtool executable (shell script) WIHOUT 'rm -f' and
only 'rm', you will get this error:
rm main/test main/.libs/test main/.libs/testS.o main/.libs/lt-test
rm: cannot remove `main/.libs/testS.o': No such file or directory
The problem is that .libs/lt-test and .libs/testS.o do not necessarily
exist. They are only created at some points in the execute/install cycle.
Please note, this bug has always existed. It doesn't matter if the
executable is in a subdirectory or not. Simply cleaning without '-f' with
any dynamically linked executables (and prior to running & installing them)
will trigger it.
I think there are at least three solutions:
implicitly add '-f' to all invokations of --mode=clean
implicitly add '-f' to executable cleaning
test executable shell script existence in ltmain.in and give an
error ourselves if it doesn't exist, if it does, use '-f'
I am in favour of the last one, but ... not my code.
--
Wesley W. Terpstra <address@hidden>
- cleaning without -f,
Wesley W. Terpstra <=