On Nov 11, 2003, at 9:06 AM, Martin Costabel wrote:


Problems with mv and trailing slashes. There were reports that during package installation, some mv commands of directories failed. One idea was that mv was allergic against trailing slashes, as this had been the case with Apple's mv and rm in the early days of MacOSX 10.0. But I have not seen any hard evidence for this. A lot of other explanations for these failures are possible. If there is such evidence, please show it on one of the lists.

How's this:


%fink update esound
...
mkdir -p /sw/src/root-esound-common-0.2.32-1/sw
mkdir -p /sw/src/root-esound-common-0.2.32-1/DEBIAN
install -d -m 755 /sw/src/root-esound-common-0.2.32-1/sw
mv /sw/src/root-esound-0.2.32-1/sw/etc/ /sw/src/root-esound-common-0.2.32-1/sw/
mv: rename /sw/src/root-esound-0.2.32-1/sw/etc/ to /sw/src/root-esound-common-0.2.32-1/sw/etc/: No such file or directory
### execution of mv failed, exit code 1
Failed: installing esound-common-0.2.32-1 failed


jgibbs% mkdir /dir1
jgibbs% mkdir /dir2
jgibbs% mv /dir1/ /dir2/
mv: rename /dir1/ to /dir2/dir1/: No such file or directory
jgibbs% mv /dir1/ /dir2
mv: rename /dir1/ to /dir2/dir1/: No such file or directory
jgibbs% mv /dir1 /dir2/
jgibbs% jgibbs% ls /dir2/
dir1
jgibbs% fink -V
Package manager version: 0.16.2
Distribution version: 0.6.1.cvs

This is under 10.3 with tcsh.

I remember the problem with /sw/bin getting renamed. It was a nasty bug that could have happened to anyone. I agree that there is security in having trailing slashes. But at the same time, I can't build esound until I remove the trailing slashes.



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to