Issue 60339 - Silence "mv: cannot stat ..." warnings
Summary: Silence "mv: cannot stat ..." warnings
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: solenv (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0.2
Assignee: hjs
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-11 05:09 UTC by quetschke
Modified: 2006-04-20 12:24 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch for tg_ext.mk (929 bytes, patch)
2006-01-11 05:11 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2006-01-11 05:09:40 UTC
During an ordinary build we get a lot of warnings like this:

mv ./wntmsci10.pro/misc/build/ttf-bitstream-vera-1.10
./wntmsci10.pro/misc/build/ttf-bitstream-vera-1.10_removeme
mv: cannot stat `./wntmsci10.pro/misc/build/ttf-bitstream-vera-1.10': No such
file or directory

The following patch will silence these.
Comment 1 quetschke 2006-01-11 05:11:00 UTC
Created attachment 33099 [details]
patch for tg_ext.mk
Comment 2 quetschke 2006-01-11 05:20:57 UTC
Reassign for verification.
Comment 3 quetschke 2006-01-11 05:21:42 UTC
Committed to vq27.

@ause: Please verify.
Comment 4 hjs 2006-01-11 13:39:40 UTC
patch is ok but...

since you're already at it, i would prefer something like

if exist ... rename ...

without ignoring the error. possible? :)
Comment 5 quetschke 2006-01-11 14:41:01 UTC
Ok, will do.
Comment 6 quetschke 2006-01-12 04:43:58 UTC
Committed:

+++ solenv/inc/tg_ext.mk        12 Jan 2006 04:40:30 -0000
@@ -146,7 +146,7 @@
 
 #untar
 $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) :
$(PRJ)$/$(ROUT)$/misc$/$(TARFILE_NAME).unpack $(PATCH_FILE_DEP)
-       +-$(RENAME) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)
$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)_removeme 2> $(NULLDEV)
+       +$(IFEXIST) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR) $(THEN) $(RENAME)
$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)_removeme
        +-rm -rf $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)_removeme
        @+-$(MKDIR) $(PACKAGE_DIR:d)
        @+-$(MKDIR) $(PACKAGE_DIR)

Please verify
Comment 7 hjs 2006-01-19 17:13:38 UTC
.
Comment 8 hjs 2006-04-20 12:24:43 UTC
.