LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   How to apply patches in lfs 7.0? (http://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-apply-patches-in-lfs-7-0-a-925219/)

Atharv Patil 01-23-2012 06:00 AM

How to apply patches in lfs 7.0?
 
I looked fos the answer using google but it gave results for older versions. I looked in the respective book but did not find it. I think that i might over looked it, can any body help me?

spiky0011 01-23-2012 06:05 AM

Hi what problem do you have with the patches

Atharv Patil 01-23-2012 06:17 AM

I want to know how to apply patches to there respective packages. I looked for it in the book but i didn't find it. Can you tell me how to?

spiky0011 01-23-2012 06:26 AM

Copy the patch onto source dir then the book has all that you need to do, wha chapter are you on

magiknight 01-23-2012 11:30 AM

The source or the built binary? If you mean the source then the above will work... you can't however patch a built binary with a source code patch, these patches are meant to patch uncompiled source only.

spiky0011 01-23-2012 12:17 PM

Hi

The Patches are listed in Chapter 3 Find the patch you need copy it into /mnt/lfs/soucres

Untar the package you are working on cd /mnt/lfs/sources/Package-name.

Code:

patch -Np1 -i ../Package
The "../" means it will lookin the previous dir "Sources" for the patch.

I was at work when I posted earlier


All times are GMT -5. The time now is 12:10 AM.