Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel patching problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 548
Location: Hawaii

PostPosted: Mon Mar 17, 2003 2:59 am    Post subject: kernel patching problem Reply with quote

I am doing something wrong when applying .bz2 kernel patches. I bunzip2 the patch, link the kernel source dir to /usr/src/linux and run:
patch -p1 < patch

I get an error about possibly using the wrong -p or --strip options and a promt asking for the file to patch. A little help please.
_________________
MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 2070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Mon Mar 17, 2003 11:32 pm    Post subject: Reply with quote

Try using -p0.

The number after p gives the default path reduction parameter. I.e how it chops off parts of the path in the patch file. Normally you should use -p0 when INSIDE the source tree and -p1 from the level above.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 548
Location: Hawaii

PostPosted: Wed Mar 19, 2003 6:10 am    Post subject: I'll try again Reply with quote

But I thought I was running -p1 from /usr/src, when the sources were in /usr/src/linux. Thanks, by the way.
_________________
MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 2070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum