Morten Gulbrandsen wrote:
Frank Heckenbach wrote:
Morten Gulbrandsen wrote:
Hello pascal programmers, this is interesting for me, it solves some problems I have.
I have unzipped gpc.fiff-emil2.gz but I don't know how to apply the patch.
You probably need GNU patch (since I made a unidiff; maybe other diffs understand it too, but I'm not sure).
Then go into the .../p directory and do `patch -p1 < gpc.diff-emil2' (options for GNU patch, if you're trying another diff, options might vary, or you might have to go one directory above).
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
Thank you, I tried.
su-2.04# pwd /usr/ports/lang/gpc/work/gpc/p
Just to be sure: This is the directory where, e.g., gpc.c and subdirectories like doc and rts are?
Hmm... Looks like a unified diff to me... The text leading up to this was:
|diff -p -r -U3 -N -X /home/gpc/p/script/gpcdiff.exclude orig/p/doc/en/todo.texi p/doc/en/todo.texi |--- orig/p/doc/en/todo.texi Thu Dec 20 21:07:45 2001 |+++ p/doc/en/todo.texi Fri Dec 28 05:49:06 2001
File to patch:
what do I type now ?
You could enter doc/en/todo.texi. But if this file exists, patch should have found it by itself (I don't know what's wrong then), and if it doesn't, you're in the wrong directory, anyway.
BTW, you did this in the source directory, not in the build directory (with the object files), didn't you?
Oh, I see in your other mail:
gpc version 19990118, based on gcc-2.8.1
This is a rather old version. Of course, the patch won't apply against that version. You need the current GPC sources first.
What kind of version for GNU Patch do you have ?
I have 2.5.4 here.
Do I have to compile, ./configure, make or install after patching ?
I general, all of them. In this particular case, a new ./configure is not required. Just make and install.
Frank