Elegant way to hack port source

Alejandro Imass ait at p2ee.org
Fri Mar 19 17:43:19 UTC 2010

On Fri, Mar 19, 2010 at 1:01 PM, Roland Smith <rsmith at xs4all.nl> wrote:
> On Fri, Mar 19, 2010 at 12:35:30PM -0400, Alejandro Imass wrote:
>> Hi,
>> I need to modify a file from a port before building. Specifically, the
> Add the patch to the files/ directory of the port. The patch should be
> relative to the main source directory of the port, e.g. work/foo-x.y for the
> foo port. Use a name for the patch that doesn't exist yet.
> After creating the patch, use chflags to set the uschg and uunlnk flags for
> your patch. This way, if the port is updated, your patch cannot be
> removed. But you might need to update it.

Thanks! Worked like a charm!!!
Nevertheless, now there is another bug :-(

Alejandro Imass

> Roland
> --
> R.F.Smith                                   http://www.xs4all.nl/~rsmith/
> [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
> pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

More information about the freebsd-questions mailing list