Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2012 10:33:16 +0800
From:      HU Dong <itechbear@gmail.com>
To:        Wesley Shields <wxs@freebsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Qestion about patching
Message-ID:  <CAA96eVtb7qR6F27SX2YNGXWvBAo4SBh2RbR66_kkgy46ZGFhHw@mail.gmail.com>
In-Reply-To: <20120820020633.GA13975@atarininja.org>
References:  <CAA96eVsc_6bQZ-aVYGvTp_Hju4nTyP_HZYs7mBdVX5KsuCNj9Q@mail.gmail.com> <20120820020633.GA13975@atarininja.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 20, 2012 at 10:06 AM, Wesley Shields <wxs@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA96eVtb7qR6F27SX2YNGXWvBAo4SBh2RbR66_kkgy46ZGFhHw>