Mikkel Christensen wrote:

How do I add a patch to a certain port?
Usually I would use the "patch" program to add the patch to the source code.
But when using ports the system begins compiling right after rewtrieving the source. 
> not giving me a change to apply the patch.
I've seen a folder named "files" in which patches part of the port seem to be located.
> But just adding the patchfile here apperently wont do much good.
I've tried using the "PATCHFILES" variable in the Makefile but then the system complains
> the my patchfile does not have a matching MD5 hash.
Does anyone know how to handle this issue?

The manual way to patch stuff is this:

make extract
cd work/<any other subdirs you need to cd into>
<patch the source>
cd <back to the port dir>

"make extract" will fetch the tarball and extract it into the work directory.  There 
can patch it to your heart's content and return to do "make" when done.  You can also
do "make patch" instead of "make extract" - this will do the extract step and also 
any patches provided by FreeBSD.  It's a matter of whether you want to apply your 
before or after the FreeBSD patches.

Bill Moran
Potential Technologies
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to