* Re: [PATCH] "make modules_install" breaks with new /bin/cp
@ 2001-11-20 4:39 =?unknown-8bit?B?RnLpZOlyaWMgTC4gVy4=?= Meunier
0 siblings, 0 replies; 4+ messages in thread
From: =?unknown-8bit?B?RnLpZOlyaWMgTC4gVy4=?= Meunier @ 2001-11-20 4:39 UTC (permalink / raw)
To: John Ellson; +Cc: Linux Kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 783 bytes --]
John Ellson wrote:
> Unfortunately 4.1.1 comes after 4.1, so what you suggest is a
> downgrade.
Don't you know 4.1.1 is a test release from
ftp://alpha.gnu.org/gnu/fetish/ ?
>From README-alpha:
This is a test release of this package.
It's been too long (too many changes) since the last release.
Be careful with this one (4.1.1). I may well have broken
something.
Please send comments and problem reports to jim @ meyering.net.
> If you want to argue with the fileutils maintainers, please
> go ahead. I'm just giving a heads-up to linux-kernel folks
> that this problem is coming and offering a work-around.
Why don't you report the "problem" to Jim or ask Red Hat to
patch their RawHide package.
--
0@pervalidus.{net, {dyndns.}org} Tel: 55-21-2717-2399 (Niterói-RJ BR)
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] "make modules_install" breaks with new /bin/cp
@ 2001-11-19 22:00 John Ellson
2001-11-19 22:28 ` Richard Gooch
0 siblings, 1 reply; 4+ messages in thread
From: John Ellson @ 2001-11-19 22:00 UTC (permalink / raw)
To: linux-kernel
linux-2.4.15-pre6, fileutils-4.1.1-1.i386.rpm
With my configuration (details not important), "make modules_install" results in:
mkdir -p /lib/modules/2.4.15-pre6/kernel/drivers/sound/
cp soundcore.o sound.o cs4232.o ad1848.o pss.o ad1848.o mpu401.o cs4232.o uart401.o ad1848.o mpu401.o uart6850.o
v_midi.o btaudio.o /lib/modules/2.4.15-pre6/kernel/drivers/sound/
cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/ad1848.o' with `ad1848.o'
cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/cs4232.o' with `cs4232.o'
cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/ad1848.o' with `ad1848.o'
cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/mpu401.o' with `mpu401.o'
make[2]: *** [_modinst__] Error 1
This hasn't been a problem with earlier version of /bin/cp (upto fileutils-4.1-4.i386.rpm in RH7.2),
but /bin/cp from fileutils-4.1.1-1.i386.rpm (in the Rawhide collection) is more pedantic about
multiple copies of the same file.
This patch works around this "feature". It would be better if the Makefiles were changed to only
install modules once, but thats a deeper problem.
--- Rules.make.orig Mon Nov 19 16:49:55 2001
+++ Rules.make Mon Nov 19 16:50:20 2001
@@ -173,7 +173,7 @@
_modinst__: dummy
ifneq "$(strip $(ALL_MOBJS))" ""
mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)
-
cp $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)
+
for i in $(ALL_MOBJS);do cp $$i $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET);done
endif
.PHONY: modules_install
--
John Ellson (ellson@lucent.com) Lucent Technologies, Holmdel, NJ, 07733
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] "make modules_install" breaks with new /bin/cp
2001-11-19 22:00 John Ellson
@ 2001-11-19 22:28 ` Richard Gooch
2001-11-20 3:20 ` John Ellson
0 siblings, 1 reply; 4+ messages in thread
From: Richard Gooch @ 2001-11-19 22:28 UTC (permalink / raw)
To: John Ellson; +Cc: linux-kernel
John Ellson writes:
> linux-2.4.15-pre6, fileutils-4.1.1-1.i386.rpm
>
> With my configuration (details not important), "make modules_install" results in:
>
> mkdir -p /lib/modules/2.4.15-pre6/kernel/drivers/sound/
> cp soundcore.o sound.o cs4232.o ad1848.o pss.o ad1848.o mpu401.o cs4232.o uart401.o ad1848.o mpu401.o uart6850.o
> v_midi.o btaudio.o /lib/modules/2.4.15-pre6/kernel/drivers/sound/
> cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/ad1848.o' with `ad1848.o'
> cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/cs4232.o' with `cs4232.o'
> cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/ad1848.o' with `ad1848.o'
> cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/mpu401.o' with `mpu401.o'
> make[2]: *** [_modinst__] Error 1
>
> This hasn't been a problem with earlier version of /bin/cp (upto
> fileutils-4.1-4.i386.rpm in RH7.2), but /bin/cp from
> fileutils-4.1.1-1.i386.rpm (in the Rawhide collection) is more
> pedantic about multiple copies of the same file.
>
> This patch works around this "feature". It would be better if the
> Makefiles were changed to only install modules once, but thats a
> deeper problem.
No, the fix is to upgrade to fileutils-4.1-4.i386.rpm. cp should not
be complaining unless you ask it to. The default should be to do what
you ask. For the same reason, cp does not have "cp -i" as the default
behaviour.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] "make modules_install" breaks with new /bin/cp
2001-11-19 22:28 ` Richard Gooch
@ 2001-11-20 3:20 ` John Ellson
0 siblings, 0 replies; 4+ messages in thread
From: John Ellson @ 2001-11-20 3:20 UTC (permalink / raw)
To: Richard Gooch; +Cc: linux-kernel
Richard Gooch wrote:
>John Ellson writes:
>
>>linux-2.4.15-pre6, fileutils-4.1.1-1.i386.rpm
>>
>>With my configuration (details not important), "make modules_install" results in:
>>
>>mkdir -p /lib/modules/2.4.15-pre6/kernel/drivers/sound/
>>cp soundcore.o sound.o cs4232.o ad1848.o pss.o ad1848.o mpu401.o cs4232.o uart401.o ad1848.o mpu401.o uart6850.o
>>v_midi.o btaudio.o /lib/modules/2.4.15-pre6/kernel/drivers/sound/
>>cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/ad1848.o' with `ad1848.o'
>>cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/cs4232.o' with `cs4232.o'
>>cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/ad1848.o' with `ad1848.o'
>>cp: will not overwrite just-created `/lib/modules/2.4.15-pre6/kernel/drivers/sound/mpu401.o' with `mpu401.o'
>>make[2]: *** [_modinst__] Error 1
>>
>>This hasn't been a problem with earlier version of /bin/cp (upto
>>fileutils-4.1-4.i386.rpm in RH7.2), but /bin/cp from
>>fileutils-4.1.1-1.i386.rpm (in the Rawhide collection) is more
>>pedantic about multiple copies of the same file.
>>
>>This patch works around this "feature". It would be better if the
>>Makefiles were changed to only install modules once, but thats a
>>deeper problem.
>>
>
>No, the fix is to upgrade to fileutils-4.1-4.i386.rpm. cp should not
>be complaining unless you ask it to. The default should be to do what
>you ask. For the same reason, cp does not have "cp -i" as the default
>behaviour.
>
Unfortunately 4.1.1 comes after 4.1, so what you suggest is a downgrade.
If you want to argue with the fileutils maintainers, please go ahead.
I'm just giving a heads-up to
linux-kernel folks that this problem is coming and offering a work-around.
I could agree that any behavior change to a 30 year old utility is a
bug, even if some argue that
it is an improvement. However, this is not the place to argue about cp.
I'm more concerned about the Makefile bug that installs modules multiple
times. Perhaps this is
fixed by Eric's CML, in which case all that is needed is a work-around
for a while.
John
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-20 4:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-20 4:39 [PATCH] "make modules_install" breaks with new /bin/cp =?unknown-8bit?B?RnLpZOlyaWMgTC4gVy4=?= Meunier
-- strict thread matches above, loose matches on Subject: below --
2001-11-19 22:00 John Ellson
2001-11-19 22:28 ` Richard Gooch
2001-11-20 3:20 ` John Ellson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox