Trent Shea wrote: > 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" > I created the structure as above. First time created /mnt/lfs/packagename. Copied sources/glibc-2.5.tar.bz2. Ran the patch. "can't find file to patch at input line 16" Created /home/lfs/glibc-2.5/ Copied the source. Ran the patch. Same error.
Is it possible that my file is corrupted? Essentially, I opened the file in Chapter 3.3 and saved it using FF 2.0.0.6 to sources. Reading your reply, I moved all patches to the patches dir. > 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. > What I don't get is using the syntax "../" implies being down the tree one level. If that's the case, where am I? I made a dir at sources/glibc-2.5, copied the tarball and ran the patch using the ../ Still got the same error. Burt -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
