Red Hat Bugzilla – Bug 56096
rpm --rebuild fails in make modules_install with fileutils 4.1.1
Last modified: 2015-01-04 17:01:35 EST
make -s INSTALL_MOD_PATH=/var/tmp/kernel-2.4.13-0.5-root modules_install
cp: will not overwrite just-created
I haven't had the time to debug this completely; it might be a bug in the
new cp, but I believe it's caused by another intentional
(POSIX-compliance induced) madness.
The cp/mv change is intentional; just checked the code. It should give you a
clue on what's wrong:
/* Don't let the user destroy their data, even if they try hard:
This mv command must fail (likewise for cp):
rm -rf a b c; mkdir a b c; touch a/f b/f; mv a/f b/f c
Otherwise, the contents of b/f would be lost.
In the case of `cp', b/f would be lost if the user simulated
a move using cp and rm.
Note that it works fine if you use --backup=numbered. */
&& x->backup_type != numbered
&& seen_dest (dst_path, dst_sb))
error (0, 0,
_("will not overwrite just-created %s with %s"),
quote_n (0, dst_path), quote_n (1, src_path));
If nothing like that is happening, please let me know so I can debug cp.
ifneq "$(strip $(ALL_MOBJS))" ""
mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)
cp $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
so... I doubt that this is the "cp + rm == mv" scenario....