Thread: Problems applying the patch
Brought to you by:
aeb,
bencollins
From: Michael S. (a. M. S. <mi...@mi...> - 2001-02-01 22:54:17
|
I am using RedHat Linux 7.0 with a 2.2.16 kernel. following the instructions exactly, I have: cd /usr/src/ downloaded ieee1394-2.2.18-20001223 ln -s linux-2.2.16/ linux-2.2 zcat ieee1394-2.2.18-20001223 | patch -p1 It tells me: [root@pancakes src]# zcat ieee1394-2.2.18-20001223 | patch -p1 can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ruN linux-2.2.orig/CREDITS linux-2.2/CREDITS |--- linux-2.2.orig/CREDITS Sat Dec 23 03:54:34 2000 |+++ linux-2.2/CREDITS Sat Dec 23 03:56:18 2000 -------------------------- File to patch: What do I do? Here is what I have in my directory. [root@pancakes src]# ls -l total 108 -rw-rw-r-- 1 mike mike 87909 Feb 1 17:31 ieee1394-2.2.18-20001223 lrwxrwxrwx 1 root root 12 Sep 25 13:49 linux -> linux-2.2.16 lrwxrwxrwx 1 root root 13 Feb 1 17:43 linux-2.2 -> linux-2.2.16/ drwxr-xr-x 18 root root 4096 Jan 31 23:02 linux-2.2.16 drwxr-xr-x 18 root root 4096 Jan 31 23:02 linux-2.2.16.old drwxr-xr-x 7 root root 4096 Sep 25 13:54 redhat -- Thank you in advance, Mike Spice (Michael Spiceland) - http://www.mikespice.com KLUG President (Knoxville Linux User Group) - http://web.utk.edu/~klug IgWig Solutions (owner) - http://www.mikespice.com/igwig/ |
From: Matteo M. <mat...@ti...> - 2001-02-02 10:05:53
|
"Michael Spiceland (aka Mike Spice)" wrote: > I am using RedHat Linux 7.0 with a 2.2.16 kernel. > > following the instructions exactly, I have: > cd /usr/src/ > downloaded ieee1394-2.2.18-20001223 > ln -s linux-2.2.16/ linux-2.2 > zcat ieee1394-2.2.18-20001223 | patch -p1 > > It tells me: > [root@pancakes src]# zcat ieee1394-2.2.18-20001223 | patch -p1 > can't find file to patch at input line 4 > Perhaps you used the wrong -p or --strip option? > Dang! :-) ...he's just told you what the problem is: wrong -p option. Either you go: [root@pancakes src]# zcat ../ieee1394-2.2.18-20001223 | patch -p1 from within /usr/src/linux or [root@pancakes src]# zcat ieee1394-2.2.18-20001223 | patch -p0 from /usr/src but after symlinking your linux source directory to linux-2.2.orig (see below why) too. Greetings , Matteo PS: Be sure to use a "vanilla" kernel source, not a distribution-customized one. > The text leading up to this was: > -------------------------- > |diff -ruN linux-2.2.orig/CREDITS linux-2.2/CREDITS > |--- linux-2.2.orig/CREDITS Sat Dec 23 03:54:34 2000 > |+++ linux-2.2/CREDITS Sat Dec 23 03:56:18 2000 > -------------------------- > See? The patch expects to be applied on a tree named "linux-2.2.orig", which isn't the usual name for a linux source directory. That's why everyone patches using the -p1 option from "one step forward" down the directory tree. > File to patch: > > What do I do? Here is what I have in my directory. > [root@pancakes src]# ls -l > total 108 > -rw-rw-r-- 1 mike mike 87909 Feb 1 17:31 ieee1394-2.2.18-20001223 > lrwxrwxrwx 1 root root 12 Sep 25 13:49 linux -> linux-2.2.16 > lrwxrwxrwx 1 root root 13 Feb 1 17:43 linux-2.2 -> linux-2.2.16/ > drwxr-xr-x 18 root root 4096 Jan 31 23:02 linux-2.2.16 > drwxr-xr-x 18 root root 4096 Jan 31 23:02 linux-2.2.16.old > drwxr-xr-x 7 root root 4096 Sep 25 13:54 redhat > > -- > Thank you in advance, > Mike Spice (Michael Spiceland) - http://www.mikespice.com > KLUG President (Knoxville Linux User Group) - http://web.utk.edu/~klug > IgWig Solutions (owner) - http://www.mikespice.com/igwig/ > > _______________________________________________ > mailing list Lin...@li... > http://lists.sourceforge.net/lists/listinfo/linux1394-user |
From: Dan D. <dde...@co...> - 2001-02-02 17:16:07
|
This has come up several times. I think the directions on the website need to fixed or made more clear. That's my job, will do. From: "Matteo Morini" <mat...@ti...> > "Michael Spiceland (aka Mike Spice)" wrote: > > > I am using RedHat Linux 7.0 with a 2.2.16 kernel. > > > > following the instructions exactly, I have: > > cd /usr/src/ > > downloaded ieee1394-2.2.18-20001223 > > ln -s linux-2.2.16/ linux-2.2 > > zcat ieee1394-2.2.18-20001223 | patch -p1 > > > > It tells me: > > [root@pancakes src]# zcat ieee1394-2.2.18-20001223 | patch -p1 > > can't find file to patch at input line 4 > > Perhaps you used the wrong -p or --strip option? > > > > Dang! :-) ...he's just told you what the problem is: wrong -p option. Either > you go: > > [root@pancakes src]# zcat ../ieee1394-2.2.18-20001223 | patch -p1 > > from within /usr/src/linux or > > [root@pancakes src]# zcat ieee1394-2.2.18-20001223 | patch -p0 > from /usr/src but after symlinking your linux source directory to linux-2.2.orig > (see below why) too. > > Greetings , Matteo > > PS: Be sure to use a "vanilla" kernel source, not a distribution-customized one. > > > The text leading up to this was: > > -------------------------- > > |diff -ruN linux-2.2.orig/CREDITS linux-2.2/CREDITS > > |--- linux-2.2.orig/CREDITS Sat Dec 23 03:54:34 2000 > > |+++ linux-2.2/CREDITS Sat Dec 23 03:56:18 2000 > > -------------------------- > > > > See? The patch expects to be applied on a tree named "linux-2.2.orig", which > isn't the usual name for a linux source directory. That's why everyone patches > using the -p1 option from "one step forward" down the directory tree. > > > File to patch: > > > > What do I do? Here is what I have in my directory. > > [root@pancakes src]# ls -l > > total 108 > > -rw-rw-r-- 1 mike mike 87909 Feb 1 17:31 ieee1394-2.2.18-20001223 > > lrwxrwxrwx 1 root root 12 Sep 25 13:49 linux -> linux-2.2.16 > > lrwxrwxrwx 1 root root 13 Feb 1 17:43 linux-2.2 -> linux-2.2.16/ > > drwxr-xr-x 18 root root 4096 Jan 31 23:02 linux-2.2.16 > > drwxr-xr-x 18 root root 4096 Jan 31 23:02 linux-2.2.16.old > > drwxr-xr-x 7 root root 4096 Sep 25 13:54 redhat > > > > -- > > Thank you in advance, > > Mike Spice (Michael Spiceland) - http://www.mikespice.com > > KLUG President (Knoxville Linux User Group) - http://web.utk.edu/~klug > > IgWig Solutions (owner) - http://www.mikespice.com/igwig/ > > > > _______________________________________________ > > mailing list Lin...@li... > > http://lists.sourceforge.net/lists/listinfo/linux1394-user > > > _______________________________________________ > mailing list Lin...@li... > http://lists.sourceforge.net/lists/listinfo/linux1394-user > |