From owner-freebsd-ports@FreeBSD.ORG Mon Aug 20 02:33:24 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 16DB61065673; Mon, 20 Aug 2012 02:33:24 +0000 (UTC) (envelope-from itechbear@gmail.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id B13FA8FC08; Mon, 20 Aug 2012 02:33:23 +0000 (UTC) Received: by ghrr13 with SMTP id r13so5869696ghr.13 for ; Sun, 19 Aug 2012 19:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MXgkEJ4FB84W2hOjGZZJVGQAI6z8NJiEqr1cSR1quTY=; b=bVLJsZamChfk3EeQsD1QyiqBQlQTeDlYkKPI8q2NZVJwXZHHpBXbMUAhw0REgCjyqR kBM7ZIMe1zgSGmB6lGpecuBOsPqnSBkyxFsubYqWgDlgWrHZVUmKSrqBw8evksnDYEJV TTS2D4l1XQXEF+ET/1n4A7DyHIfZabypHK6FdGWMRyQ4SJroUE6Zwf6xKXHA/JZGypcJ oKXtJilSLEb5hItIo6X6owUisoX+XVung8ah6VRFH9eMOUGysYerXyE+vopdNNNAY5gH y5cf2sf21jJWl5e1uqoRypsXgCDNEKLlnkyXq7yRydOIye0re8ck0hGoE0FA9DxyvvRG MNUA== MIME-Version: 1.0 Received: by 10.50.184.198 with SMTP id ew6mr8516053igc.27.1345429996665; Sun, 19 Aug 2012 19:33:16 -0700 (PDT) Received: by 10.231.202.208 with HTTP; Sun, 19 Aug 2012 19:33:16 -0700 (PDT) In-Reply-To: <20120820020633.GA13975@atarininja.org> References: <20120820020633.GA13975@atarininja.org> Date: Mon, 20 Aug 2012 10:33:16 +0800 Message-ID: From: HU Dong To: Wesley Shields Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:33:24 -0000 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