EXTRA_PATCHES considered harmful?
Adam Weinberger
adamw at adamw.org
Sat Sep 23 22:37:30 UTC 2017
> On 23 Sep, 2017, at 15:39, Julian Elischer <julian at freebsd.org> wrote:
>
> currently if you set EXTRA_PATCHES and the port you are making decides to build a second port as a dependency, EXTRA_PATCHES is passed to the second port which them obiously fails to patch it.
>
> e.g. cd /usr/ports/emulators/open-vm-tools-nox11; Make EXTRA_PATCHES=/foo/bar/patch1
>
> will fail when it tries to apply the patch files to each dependency.
>
> AM I doing something wrong here?
Hi Julian,
I think EXTRA_PATCH_TREE is a better option for what you're looking for. You put patches in there in a tree that gets essentially overlaid on the ports tree.
EXTRA_PATCH_TREE=/usr/patches
Then put your patch1 in /usr/patches/emulators/open-vm-tools-nox11
# Adam
--
Adam Weinberger
adamw at adamw.org
https://www.adamw.org
More information about the freebsd-ports
mailing list