LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Hunk FAILED error while patching binutils-2.18 (https://www.linuxquestions.org/questions/linux-from-scratch-13/hunk-failed-error-while-patching-binutils-2-18-a-701311/)

Vardhaman 01-31-2009 04:00 PM

Hunk FAILED error while patching binutils-2.18
 
LFS 6.4 | OpenSUSE 11.1 | Section 5.4.1 |

This is the error i am getting:

Code:

lfs:/mnt/lfs/sources$ patch -Np1 -i binutils-2.18-configure-1.patch
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Matt Burgess (matthew at linuxfromscratch dot org)
|Date: 2007-11-19
|Initial Package Version: 2.18
|Origin: Upstream (http://sourceware.org/cgi-bin/cvsweb.cgi/src/configure.diff?r1=1.268&r2=1.268.2.1&cvsroot=src)
|Upstream Status: Applied
|Description: Fixes the configure script to correctly dictate Texinfo > 4.9.
|
|diff -Naur binutils-2.18.orig/configure binutils-2.18/configure
|--- /mnt/lfs/sources/binutils-2.18.orig/configure      2007-08-06 20:29:40.000000000 +0000
|+++ /mnt/lfs/sources/binutils-2.18/configure  2007-11-18 22:37:58.000000000 +0000
--------------------------
File to patch: /mnt/lfs/sources/binutils-2.18.tar.tar
patching file /mnt/lfs/sources/binutils-2.18.tar.tar
Hunk #1 FAILED at 6128.
1 out of 1 hunk FAILED -- saving rejects to file /mnt/lfs/sources/binutils-2.18.tar.tar.rej
lfs:/mnt/lfs/sources$

i have modified the binutils-2.18-configure-1.patch to include the path to binutils-2.18 package.
even after that, the compiler is not modifying the package by itself.
i still have to enter the package path and name during the execution of the path.


and finally when it seems on its way to patching,it is giving me this error:
Hunk #1 FAILED at 6128.
1 out of 1 hunk FAILED

what seems to be the problem?

knudfl 02-01-2009 05:30 AM

*
Looks like you have the same problem as here :

http://www.linuxquestions.org/questi...s-help-701266/

....

( Don't modify the patch, and don't do complicated commands,
will just increase the risk for errors. )
....


All times are GMT -5. The time now is 05:57 PM.