Qestion about patching

Wesley Shields wxs at FreeBSD.org
Mon Aug 20 02:06:34 UTC 2012


On Mon, Aug 20, 2012 at 10:03:54AM +0800, HU Dong wrote:
> Hi!
>     The porter's handbook says that "Note that if the path of a patched
> file contains an underscore (_) character, the patch needs to have two
> underscores instead in its name. For example, to patch a file named
> src/freeglut_joystick.c, the corresponding patch should be named
> patch-src-freeglut__joystick.c."
> 
>     Question: What if the file contains -
> charactor(src/freeglut-joystick.c)? Should the patch be
> patch-src-freeglut-joystick.c or patch-src-freeglut--joystick.c?

When applying a patch I get from upstream I apply it manually in
${WRKSRC} and then use 'make makepatch' from the port directory to
generate the appropriate filename in files for me.

-- WXS


More information about the freebsd-ports mailing list