From owner-freebsd-ports@FreeBSD.ORG Mon Aug 20 02:06:34 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FBC81065673 for ; Mon, 20 Aug 2012 02:06:34 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.49.45]) by mx1.freebsd.org (Postfix) with ESMTP id 01A0E8FC16 for ; Mon, 20 Aug 2012 02:06:33 +0000 (UTC) Received: by syn.atarininja.org (Postfix, from userid 1001) id 8FF935C48; Sun, 19 Aug 2012 22:06:33 -0400 (EDT) Date: Sun, 19 Aug 2012 22:06:33 -0400 From: Wesley Shields To: HU Dong Message-ID: <20120820020633.GA13975@atarininja.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org Subject: Re: Qestion about patching X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2012 02:06:34 -0000 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