Qestion about patching

HU Dong itechbear at gmail.com
Mon Aug 20 02:33:24 UTC 2012


On Mon, Aug 20, 2012 at 10:06 AM, Wesley Shields <wxs at freebsd.org> wrote:

> 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
>

It's really a smart way. Thank you!

-- 
B.R.
HU Dong


More information about the freebsd-ports mailing list