Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2012 22:06:33 -0400
From:      Wesley Shields <wxs@FreeBSD.org>
To:        HU Dong <itechbear@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Qestion about patching
Message-ID:  <20120820020633.GA13975@atarininja.org>
In-Reply-To: <CAA96eVsc_6bQZ-aVYGvTp_Hju4nTyP_HZYs7mBdVX5KsuCNj9Q@mail.gmail.com>
References:  <CAA96eVsc_6bQZ-aVYGvTp_Hju4nTyP_HZYs7mBdVX5KsuCNj9Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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