LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2004, 07:12 PM   #1
frogboy
LQ Newbie
 
Registered: Oct 2004
Posts: 13

Rep: Reputation: 0
usermode linux malformed patch for 2.6 kernel


I need to patch my usermode linux kernel cos the host is using 2.6. When I try:

patch -p1 --dry-run < patch1.2

I get the following:

patching file arch/um/os-Linux/process.c

patch: **** malformed patch at line 11: @@ -87,7 +88,8 @@

===================================================

The patch is below & from http://usermodelinux.org/modules.php...ticle&sid=142. I've tried
tr -d '\r' < patchfile > tempfile, but no luck.

====================================================

--- 1.5/arch/um/os-Linux/process.c Sat Jan 18 12:29:27 2003
+++ 1.6/arch/um/os-Linux/process.c Thu Oct 2 14:27:57 2003
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <errno.h>
#include <signal.h>
+ #include <linux/unistd.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include "os.h"
@@ -87,7 +88,8 @@
void os_usr1_process(int pid)
{
- kill(pid, SIGUSR1);
+ syscall(__NR_tkill, pid, SIGUSR1);
+/* tkill(pid, SIGUSR1);*/
}

int os_getpid(void)
 
Old 10-26-2004, 11:25 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
you might try............
Code:
 patch -Np1 -i --dry-run < patch1.2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is a linux kernel patch for? mandana Linux - Newbie 6 08-05-2005 03:56 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 07:33 AM
updating the linux kernel with a patch? behmjoe Linux - General 5 04-22-2005 10:29 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 02:21 PM
usermode linux (UML) rc5 Arch 0 03-15-2004 02:48 AM


All times are GMT -5. The time now is 07:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration