LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Patching kernel using patch-o-matic (https://www.linuxquestions.org/questions/linux-kernel-70/patching-kernel-using-patch-o-matic-753664/)

ceco91 09-08-2009 04:21 PM

Patching kernel using patch-o-matic
 
So the problem is that when I am trying to apply a patch, e.g IPMARK, I am receiving an error:
Quote:

-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y
unable to find ladd slot in src /tmp/pom-2459/net/ipv4/netfilter/Makefile (./patchlets/IPMARK/linux-2.6/./net/ipv4/netfilter/Makefile.ladd)
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?]
The thing I did before:
Quote:

./runme download
and followed README to install ipset.
I am calling patch-o-matic with this command:
Quote:

./runme IPMARK --kernel-path=/usr/src/linux --iptables-path=/usr/src/iptables
The kernel tree is 2.6.30.4.
The iptables' one is 1.4.0.

xtothat 10-01-2009 03:47 AM

Hi there. I'm not entirely sure I can be much use, but hopefully I can point you in the right direction...

It sounds to me like the patch it's trying to apply isn't suitable for the kernel you're running. This kind of thing will happen when manually patching the kernel if you've used an incorrect patch version or applied the patch from the wrong place in the tree.

First stage is to check that the "/tmp/pom-2459/net/ipv4/netfilter/Makefile" file exists.

Next have a look inside the patch file (./patchlets/IPMARK/linux-2.6/./net/ipv4/netfilter/Makefile.ladd) and see if you can make head or tail of what it's trying to do.

If you can work out what it's supposed to do, then have a look at the contents of the first file and check that the code chunk where it's trying to insert the patch is identical in format to the way in which it is displayed in the .ladd file.

Unfortunately I don't know anything about the program you're using to apply the patch, so I can't really help on that front, but hopefully this has given you a couple of ideas.

X-T

jayjwa 10-01-2009 05:28 PM

As far as I know, POM is super-old and outdated. I used it for a long time way back when, but slowly the patches either stopped with the current kernel or merged into it. I'm talking pre-2.6.20-ish if I remember correctly. I'd stick with the in-kernel stuff. There's quite alot in the current 2.6.31.1.


All times are GMT -5. The time now is 08:41 PM.