LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 12-22-2009, 11:11 AM   #1
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Patching fails in LFS 6.5


I'm in step 5.26. Applying the patch to Patch (>__>) fails with this message:

Code:
$ patch -Np1 -i ../patch-2.5.9-fixes-1.patch
patching file pch.c
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 355 (offset -11 lines).
Hunk #3 succeeded at 392 (offset -23 lines).
1 out of 3 hunks FAILED -- saving rejects to file pch.c.rej
$ cat pch.c.rej
***************
*** 1,6 ****
  /* reading patches */
  
- /* $Id: pch.c,v 1.44 2003/05/20 14:03:17 eggert Exp $ */
  
  /* Copyright (C) 1986, 1987, 1988 Larry Wall
  
--- 1,6 ----
  /* reading patches */
  
+ /* $Id: pch.c,v 1.45 2003/07/02 22:19:21 eggert Exp $ */
  
  /* Copyright (C) 1986, 1987, 1988 Larry Wall
Everything until now worked fine. Any idea what could be the problem?


BTW, an unrelated question. I recently found out about DIY Linux. Apparently, the difference with LFS is that the former is more advanced so that you will get a more fleshed out Linux, with package management and stuff. Is that so?
 
Old 12-23-2009, 04:34 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

That should work (just tried it again):
Code:
~/Tmp> tar zxf patch-2.5.9.tar.gz
~/Tmp> cd patch-2.5.9/
~/Tmp/patch-2.5.9> patch -Np1 -i ../patch-2.5.9-fixes-1.patch
patching file pch.c
~/Tmp>
Are you sure that:

1) The patch itself is not corrupt?
2) You used the patch.2.5.9 tarball together with the patch-2.5.9-fixes-1.patch? (version being the important part)

Hope this helps.

PS: I don't have any experience with DIY Linux.
 
Old 12-23-2009, 10:42 AM   #3
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
Oh, right, thanks. I had downloaded 2.5.4 instead of 2.5.9, since the LFS mirror I was using had that version. I'll download it from the GNU site, should work.
 
Old 12-23-2009, 10:44 AM   #4
ReyJavikVI
Member
 
Registered: Jun 2009
Posts: 67

Original Poster
Rep: Reputation: 16
Yeah, it worked.
 
  


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
lfs 6.4 chroot fails jason87x Linux From Scratch 5 08-06-2009 10:38 PM
lfs 6.4 chroot fails jason87x Linux - Software 1 07-01-2009 10:50 PM
cc dummy.c fails - chap. 6.12 of LFS 6.1.1 - please help juras Linux From Scratch 1 04-18-2006 08:06 AM
Patching 2.6.6 kernel with swsusp2: fails with no /proc/swsusp interface sdo Fedora - Installation 0 07-12-2004 08:47 PM
patching kernel fails.. IamDaniel Linux - Software 9 01-02-2004 05:54 PM


All times are GMT -5. The time now is 06:00 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration