Originally Posted by francois.e
I hope this could be the place to make this post.
Actually this is not the correct place: This is an old thread and although your question is about a patch, it isn't related to the original question.
You also need to give us some basic information: Which LFS version are you building? Why this old version?
It seems that this is not LFS related, but BLFS and, depending on what you are doing, probably the wrong BLFS version (6.3 is old and doesn't work with the current, 6.4 and newer, LFS versions). You need to build the development version.
I am trying to apply a patch espgs-8.15.4-bov_fix-1.patch to the espgs-8.15.4-source.tar.bz2. I have unpacked the latter. The patch comes in a text form:
I already have the /root/Downloads/espgs-8.15.4 folder. I attempted to copy/paste the text file into a file named espgs-8.15.4-bov_fix-1.patch in this folder, and gave executing permission to the file. This does not work as I get the error code:
bash-4.1# patch -Np1 -i ../espgs-8.15.4-bov_fix-1.patch && sed -i "s/bbox.dev$/x11.dev/" Makefile.in && ./configure --prefix=/usr --enable-threads --without-omni && make
patch: **** Can't open patch file ../espgs-8.15.4-bov_fix-1.patch : No such file or directory
What would you suggest?
You need to follow the book. Where does it state that you must move the patch to the package source directory? The patch command also shows that it looks for the patch in the underlying directory. This shouldn't be a surprise, you have done this multiple times when building LFS.
If you extracted the package in /root/Downloads/espgs-8.15.4, the patch should reside in /root/Downloads/
Hope this helps.