Re: Qestion about patching

2012-08-19 Thread HU Dong
On Mon, Aug 20, 2012 at 10:06 AM, Wesley Shields  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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Qestion about patching

2012-08-19 Thread Wesley Shields
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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Qestion about patching

2012-08-19 Thread HU Dong
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?

--
B.R.
HU Dong
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"