patch doesn't "do" anything, I have to control c

patch doesn't "do" anything, I have to control c

Post by Robert Larki » Tue, 16 Apr 2002 14:08:08



I'm trying to patch a kernel to make a win4lin kernel.  I want to use
the 2.4.18 kernel but the closest patch available from netraverse is for
2.4.17.  So I downloaded the patch "2.4.18" from kernel.org and the
2.4.17 kernel.  After extracting and copying the patch to the same
directory I cd to that directory and

patch -p1 patch-2.4.18

and absolutely nothing happens.  So I tried

patch -p1 --verbose patch-2.4.18

and nothing happens.  In each case I have to control c.  I also can't
find anything similar to this anywhere, but it seems to me that I should
get "something" out of patch at least a Hmmm or an error message.  What
am I doing wrong?

Rob

 
 
 

patch doesn't "do" anything, I have to control c

Post by Jarmo Paavilaine » Mon, 15 Apr 2002 18:13:06


...

Quote:> patch -p1 --verbose patch-2.4.18

> and nothing happens.  In each case I have to control c.  I also can't

"man patch" is your friend.

What you meant to do is:

patch -p1 <patch-2.4.18

Note the '<'. You might want to test it first with the "--dry-run"
switch (to check that nothing goes wrong, before doing the real thing).

// Jarmo

 
 
 

1. Why doesn't echo "text" 'command' "more text" work?

                 ^                                        ^
Wrong quotes, should be -
   echo "You have" `grep Subject: /usr/spool/mail/me | wc -l` "messages."
or -
   echo "You have `grep Subject: /usr/spool/mail/me | wc -l` messages."

But, another problem is, if you've no mail, /usr/spool/mail/me does not
exist, leading grep to say:
   grep: can't open /usr/spool/mail/me
Wc will still report 0.

You might try -
   sh -c 'echo "You have `grep 2>/dev/null Subject: /usr/spool/mail/me | wc -l` messages."'

Hope this helps.

2. Melissa -- a good thing?!?

3. Raw mode devices

4. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

5. Rhobot test software

6. GETSERVBYNAME()????????????????????"""""""""""""

7. 100% CPU during a mouse button press?

8. "cat /proc/mtrr" doesn't display anything?

9. kfm: "Open with...." doesn't show anything to open with

10. Screen doesn't unblank with "screenblank" and "xlock" under 2.3

11. my PC doesn't reboot after "reboot" or "ctrl-alt-del"

12. newly built kernel "loads" but doesn't "uncompress"