"patch" command hangs when trying to patch kernel sources
yellowdog-general@lists.terrasoftsolutions.com
yellowdog-general@lists.terrasoftsolutions.com
Fri Sep 26 02:14:01 2003
On Thu, Sep 25, 2003 at 11:08:42PM -0700, Robert Persson wrote:
>
> I downloaded the 2.4.22 kernel sources and the ppc patch and have been
> trying to apply the patch to the sources. I place the 2.4.22 source
> directory and the patch file in the same directory and type "patch -p0
> linuxppc-2.4.22.patch", but nothing happens.
I must admit to having only a vague understanding of patch, but the
command used seems to depends on the form of the patch and the
directory names. For the BenH patch-2.4.22-ben2 which starts with the
lines:
diff -uNr linux-2.4.22/CHANGES linux-2.4.22-ben2/CHANGES
--- linux-2.4.22/CHANGES 1970-01-01 01:00:00.000000000 +0100
+++ linux-2.4.22-ben2/CHANGES 2003-08-31 11:40:07.000000000 +0200
I applied the patch with the command:
patch -d linux-2.4.22 -p1 < /usr/local/src/patch-2.4.22-ben2
The -pnum command may be critical here since it affects path name
handling. If your patch is the benh one, or uses similar filename
syntax to the above then I am at a loss. If, on the other hand, it
uses a complete pathname syntax then you will need to chose the -pnum
to strip the appropiate number of levels from the paths in the patch.
Look at the man page (`man patch') to see the effect of -pnum.
--
Stephen Harker Stephen.Harker@spme.monash.edu.au
School of Physics & Materials Engineering
Monash University http://www.ph.adfa.edu.au/s-harker/
Baloney Baffles brains: Eric Frank Russell