make modules_install fails with latest fileutils
Hi,
Just had some problems doing a modules_install with fileutils-1.1.1-1 (redhat rawhide). The cp command in there gives a non-zero return value when it is asked to copy the same file in the argument list:
mkdir bar
cp foo foo bar
cp: will not overwrite just-created bar/foo' with foo'
and returns with return value of 1.
This will break 'make modules_install' as it often adds the same module file as cp argument.
A quick hack:
Rules.make renamed from Rules.make.org +1 -1
@@ -173,7 +173,7 @@ _modinst__: dummy ifneq "$(strip $(ALL_MOBJS))" "" mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR) - cp -f $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET) + -cp -f $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET) endif .PHONY: modules_install
-Marcel
Signature · 6 lines
======-------- Marcel J.E. Mol MESA Consulting B.V.
=======--------- ph. +31-(0)6-54724868 P.O. Box 112
=======--------- [email protected] 2630 AC Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
They couldn't think of a number, Linux user 1148 -- counter.li.org
so they gave me a name! -- Rupert Hine -- www.ruperthine.comQuoted 13 lines · Marcel J.E. Mol
Just had some problems doing a
modules_installwith fileutils-1.1.1-1 (redhat rawhide). The cp command in there gives a non-zero return value when it is asked to copy the same file in the argument list:Rules.make renamed from Rules.make.org +0
-0@@ -173,7 +173,7 @@_modinst__: dummy
ifneq "$(strip $(ALL_MOBJS))" ""mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)Rules.make renamed from Rules.make.org +1
-1- cp -f $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET) + -cp -f $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
Quoted 1 line
endif
(1) Complain to the fileutils maintainer for introducing incompatible behaviour.
(2) The correct workaround is
cp -f $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
Quoted 7 lines · Keith Owens
Quoted 5 lines · Marcel J.E. Mol
Just had some problems doing a
modules_installwith fileutils-1.1.1-1 (redhat rawhide). The cp command in there gives a non-zero return value when it is asked to copy the same file in the argument list:
Quoted 12 lines
Quoted 9 lines
Rules.make renamed from Rules.make.org +0
-0@@ -173,7 +173,7 @@_modinst__: dummy
ifneq "$(strip $(ALL_MOBJS))" ""mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)Rules.make renamed from Rules.make.org +1
-1- cp -f $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET) + -cp -f $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)endif
(1) Complain to the fileutils maintainer for introducing incompatible behaviour.
Or to RedHat who introduced this fileutils in their tree (but then again, it is Rawhide so I have nothing to complain about :-)
Quoted 2 lines
(2) The correct workaround is
cp -f $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
shouldn't this then be 'sort -u'.
-Marcel
Signature · 6 lines
======-------- Marcel J.E. Mol MESA Consulting B.V.
=======--------- ph. +31-(0)6-54724868 P.O. Box 112
=======--------- [email protected] 2630 AC Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
They couldn't think of a number, Linux user 1148 -- counter.li.org
so they gave me a name! -- Rupert Hine -- www.ruperthine.comQuoted 5 lines · Marcel J.E. Mol
Quoted 2 lines · Keith Owens
(2) The correct workaround is
cp -f $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)shouldn't this then be 'sort -u'.
info make, /$(sort