Bug 56096 - rpm --rebuild fails in make modules_install with fileutils 4.1.1
Summary: rpm --rebuild fails in make modules_install with fileutils 4.1.1
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: kernel
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-12 19:57 UTC by Bernhard Rosenkraenzer
Modified: 2015-01-04 22:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-30 03:43:14 UTC
Embargoed:


Attachments (Terms of Use)

Description Bernhard Rosenkraenzer 2001-11-12 19:57:09 UTC
make -s INSTALL_MOD_PATH=/var/tmp/kernel-2.4.13-0.5-root modules_install
cp: will not overwrite just-created      
`/var/tmp/kernel-2.4.13-0.5-root/lib/modules/2.4.13-0.5BOOT/kernel/drivers/char/joystick/iforce.o' 
with `iforce.o'


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.

Comment 1 Bernhard Rosenkraenzer 2001-11-14 18:01:26 UTC
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.  */
              if (command_line_arg
                  && 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));
                  return 1;
                }

If nothing like that is happening, please let me know so I can debug cp.



Comment 2 Arjan van de Ven 2001-11-14 18:08:17 UTC
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....



Note You need to log in before you can comment on or make changes to this bug.