LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   binutils patch error (https://www.linuxquestions.org/questions/linux-from-scratch-13/binutils-patch-error-773969/)

eshi14 12-07-2009 07:14 AM

binutils patch error
 
hi,

I got the following error in 5.4 binutils-2.18 pass 1
I am using lfs version-6.4

lfs@ubuntu:/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....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
|--- binutils-2.18.orig/configure 2007-08-06 20:29:40.000000000 +0000
|+++ binutils-2.18/configure 2007-11-18 22:37:58.000000000 +0000
--------------------------
File to patch:

druuna 12-07-2009 07:20 AM

Hi,

You need to do the patch command from the packet source directory.

Code:

tar jxf binutils-2.18.tar.bz2
cd binutils-2.18

patch -Np1 -i binutils-2.18-configure-1.patch

mkdir -v ../binutils-build
cd ../binutils-build

../binutils-2.18/configure <options>

Hope this helps.

Post is edited: patch step is now in the correct place (thanks to exvor for pointing this out).

exvor 12-07-2009 05:33 PM

Actually druuna you wouldent do this int he binutils-build directory but rather in the unpacked source directory.

this assumes you have the patch file in your sources.

Code:


cd binutils-2.18
patch -Np1 -i ../binutils-2.18-configure-1.patch


druuna 12-07-2009 05:48 PM

@exvor: You are correct, I overlooked that step....

I'll rectify my earlier post for future references/reading.

Thanks for pointing this out.

exvor 12-07-2009 05:49 PM

lol no worries


All times are GMT -5. The time now is 04:09 PM.