Re: [mpls-linux-general] Problem with patch iptables.diff
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2007-09-14 14:52:50
|
On Fri, Sep 14, 2007 at 12:17:44PM +0200, al...@li... wrote: > Hello,=20 > I am a student italian (I speak a little english), I have a problem. I mu= st apply the patch mpls to iptables. I have the version of iptables v1.3.5.= The patch is iptables.diff and ,later have moved it in the folder iptables= -1.3.5, I have thrown the command: >=20 > [root@localhost src]# patch -p1 iptables.c. iptables.diff I noticed a flaw with the patch, but it can be ignored. Try this: [koko6 9:45am jleu]~/clients/tmp-> ls iptables-1.3.5.tar.bz2 mpls-linux/ [koko6 9:45am jleu]~/clients/tmp-> tar -jxvf iptables-1.3.5.tar.bz2=20 iptables-1.3.5/./ iptables-1.3.5/./libipq/ iptables-1.3.5/./iptables-standalone.c <snip> iptables-1.3.5/./ip6tables.c iptables-1.3.5/./iptables-multi.c iptables-1.3.5/./iptables.8.in [koko6 9:45am jleu]~/clients/tmp-> cd iptables-1.3.5 [koko6 9:45am jleu]~/clients/tmp/iptables-1.3.5-> patch -p1 < ../mpls-linux= /patches/iptables.diff=20 patching file extensions/libip6t_mpls.c patching file extensions/libipt_mpls.c patching file extensions/Makefile patching file include/linux/mpls.h patching file iptables.c Hunk #2 succeeded at 2150 (offset -5 lines). can't find file to patch at input line 550 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -uNr --exclude=3D.p4config iptables/make-rpm-jleu iptables-mpls/make-= rpm-jleu |--- iptables/make-rpm-jleu 2006-08-09 22:06:54.000000000 -0500 |+++ iptables-mpls/make-rpm-jleu 2006-08-09 22:07:24.000000000 -0500 -------------------------- File to patch:=20 Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 559 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -uNr --exclude=3D.p4config iptables/redhat/iptables.spec iptables-mpl= s/redhat/iptables.spec |--- iptables/redhat/iptables.spec 2007-01-22 21:14:25.000000000 -0600 |+++ iptables-mpls/redhat/iptables.spec 2007-01-22 21:17:46.000000000 -0600 -------------------------- File to patch:=20 Skip this patch? [y] y Skipping patch. 1 out of 1 hunk ignored patching file update-from-kernel.sh [koko6 9:45am jleu]~/clients/tmp/iptables-1.3.5-> As you can see it tries to patch redhat/iptables.spec and make-rpm-jleu which do not exist in the iptables distributionl, just skip the patch. BTW why are you trying to compile iptables, why not use the RPMs I distribute? Or at the minimum use the SRPMs to build your own. --=20 James R. Leu jl...@mi... |