How do I add a local patch to a port?

Shaun T. Erickson ste at ste-land.com
Tue Mar 9 10:41:41 PST 2004


Alexander Haderer wrote:

> At 13:04 09.03.2004 -0500, Shaun T. Erickson wrote:
> 
>> Shaun T. Erickson wrote:
>>
>> ...
>> I looked at the porter's handbook, and it says that simply dropping 
>> the patch into the files directory should get it automatically 
>> applied, but it's not. The patch is named patch-aa and is relative to 
>> the WRKSRC directory.
>>
>> Suggestions?
> 
> 
> Patching the wrong file?
> 
> Patching an already patched file?
> 
> Patching in wrong direction: old <---> new exchanged by accident?
> 
> directory for patch ok? shouldn't it be relative to extracted sources
> dir within WRKSRC?

Well, cd'ing into the work directory and then into the source directory 
and saying:

patch < patchfile

correctly patches the file ./dir/file2bepatched

So, if patchfile is in the files directory, it ough to just work, yes? 
But it isn't.

	-ste



More information about the freebsd-questions mailing list