Skip to contentSkip to conversation

Applying 2.5.4-pre1 patch

DISCUSSION Pierre Rousselet 4 participants 9 messages Feb 6, 2002

lore
Share & tools
lore
#0 lore raw

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

Pierre

Signature · 3 lines
------------------------------------------------
 Pierre Rousselet <[email protected]>
------------------------------------------------
#1 lore raw
Quoted 3 lines · Pierre Rousselet

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

In my case has been

- untar 2.5.3 in /usr/src/linux
- cd linux; ln -s linux a
- patch
- cd /usr/src; mv b/drivers/input/* /usr/src/linux/drivers/input
- build

I only have to reboot and see if it works :)

--alessandro

"If your heart is a flame burning brightly
you'll have light and you'll never be cold
And soon you will know that you just grow / You're not growing old"
(Husker Du, "Flexible Flyer")

#2 lore raw
In reply to Pierre Rousselet
Quoted 8 lines · Alessandro Suardi
Quoted 3 lines · Pierre Rousselet

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

In my case has been

Quoted 8 lines

- untar 2.5.3 in /usr/src/linux
- cd linux; ln -s linux a
- patch
- cd /usr/src; mv b/drivers/input/* /usr/src/linux/drivers/input
- build

I only have to reboot and see if it works :)

Hmm - oops on boot :( maybe later I'll have some time to repeat,

 copy down oops and decode it.

--alessandro

"If your heart is a flame burning brightly
you'll have light and you'll never be cold
And soon you will know that you just grow / You're not growing old"
(Husker Du, "Flexible Flyer")

#3 lore raw
In reply to Pierre Rousselet
Quoted 3 lines · Pierre Rousselet

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

/dev/null indicates a new, or a removed, file.

Signature · 3 lines
Jeff Garzik      | "I went through my candy like hot oatmeal
Building 1024    |  through an internally-buttered weasel."
MandrakeSoft     |             - goats.com
#4 lore raw
In reply to Pierre Rousselet
Quoted 7 lines · Jeff Garzik
Quoted 3 lines · Pierre Rousselet

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

/dev/null indicates a new, or a removed, file.

'patch -p0 < patch' is confused by this : "sure you want to delete this file ?"

Are there some arguments to add on the cmd line ?

Pierre

Signature · 3 lines
------------------------------------------------
 Pierre Rousselet <[email protected]>
------------------------------------------------
#5 lore raw
In reply to Pierre Rousselet
Quoted 8 lines · Pierre Rousselet
Quoted 6 lines · Jeff Garzik
Quoted 3 lines · Pierre Rousselet

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

Quoted 6 lines
Quoted 1 line

/dev/null indicates a new, or a removed, file.

'patch -p0 < patch' is confused by this : "sure you want to delete this file ?"

Are there some arguments to add on the cmd line ?

Use patch -p1. Also, make sure you are using an up to date version of patch.

--

Brian Gerst

#6 lore raw
In reply to Pierre Rousselet
Quoted 4 lines · Pierre Rousselet
Quoted 2 lines · Jeff Garzik

Pierre Rousselet wrote:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

/dev/null indicates a new, or a removed, file.

'patch -p0 < patch' is confused by this : "sure you want to delete this file ?"

Linus's patches should be applied with -p1.

Signature · 3 lines
Jeff Garzik      | "I went through my candy like hot oatmeal
Building 1024    |  through an internally-buttered weasel."
MandrakeSoft     |             - goats.com
#7 lore raw
In reply to Pierre Rousselet
Quoted 11 lines · Jeff Garzik
Quoted 9 lines · Pierre Rousselet
Quoted 7 lines · Jeff Garzik
Quoted 4 lines · Pierre Rousselet

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

/dev/null indicates a new, or a removed, file.

'patch -p0 < patch' is confused by this : "sure you want to delete this file ?"

Linus's patches should be applied with -p1.

OK, it works. But you cannot use the patch-file outside of the linux directory. It means also the patch-kernel script is dead.

Pierre

Signature · 3 lines
------------------------------------------------
 Pierre Rousselet <[email protected]>
------------------------------------------------
#8 lore raw
In reply to Pierre Rousselet
Quoted 15 lines · Pierre Rousselet
Quoted 13 lines · Jeff Garzik
Quoted 11 lines · Pierre Rousselet
Quoted 9 lines · Jeff Garzik
Quoted 4 lines · Pierre Rousselet

Patching drivers/char/gameport with /dev/null doesn't work for me. What is the trick ?

/dev/null indicates a new, or a removed, file.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

'patch -p0 < patch' is confused by this : "sure you want to delete this file ?"

Linus's patches should be applied with -p1.

OK, it works. But you cannot use the patch-file outside of the linux directory.

This is normal with everybody else's patches, such as Alan's. Linus is just sorta catching up.

Quoted 1 line

It means also the patch-kernel script is dead.

Did you actually try patch-kernel, from inside the kernel dir? It appears to use 'p1' to apply patches.

Jeff

Signature · 3 lines
Jeff Garzik      | "I went through my candy like hot oatmeal
Building 1024    |  through an internally-buttered weasel."
MandrakeSoft     |             - goats.com