On Sunday 19 August 2007 09:49, Burt Alcantara wrote:
> When you run this patch, where dir are you running it from and
> what is your directory structure in general?

Directory structure:
Sources: /mnt/lfs/sources
Patches: /mnt/lfs/sources/patches
Unpacked Sources: /home/lfs/packagename
Build Directory: /home/lfs/packagename-build

Command:
cd /home/lfs/packagename 
patch -Np1 -i /mnt/lfs/sources/patches/"patchname"


>  When I run the command, as in
> the book, from the sources dir it can't find the patch so I'm not
> getting something here.

If you are in the sources directory you will be running something 
like "patch -Np1 -i ../blah" the reason it's not finding the patch file 
is you're looking in "$LFS" for the file not "$LFS/sources". Even if 
you find the file (patch -Np1 ./blah) it won't work; you need to be in 
the source directory of the program you're trying to patch for patch to 
find the files that it's trying to patch, at least with the current 
flags.


Trent.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to